/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

+19

protected void refreshLayout() {
// We are forcing scroll bar refreshing too
composite.getParent().getParent().getParent().getParent().getParent().getParent().pack(true);
composite.getParent().getParent().getParent().getParent().getParent().getParent().getParent().layout();
}
 

anonymous

+19

public static object ToNull(this object o)
{
return null;
}
 

anonymous

+19

if(isCompleted == true)
{
    return true;
}
else
{
    return false;
}
 

anonymous

+19

$foo = $foo; // DO NOT remove this, it will break EVERYTHING
// ... Fuck, that really did break everything
 

+18

stop(); // Hammertime!
 

anonymous

+18

	function obtenerAdjuntoImagen01() { return (!empty($this->_arrAdjuntos[0]) ? $this->_arrAdjuntos[0] : ''); }
	function obtenerAdjuntoImagen02() { return (!empty($this->_arrAdjuntos[1]) ? $this->_arrAdjuntos[1] : ''); }
	function obtenerAdjuntoImagen03() { return (!empty($this->_arrAdjuntos[2]) ? $this->_arrAdjuntos[2] : ''); }
	function obtenerAdjuntoImagen04() { return (!empty($this->_arrAdjuntos[3]) ? $this->_arrAdjuntos[3] : ''); }
	function obtenerAdjuntoImagen05() { return (!empty($this->_arrAdjuntos[4]) ? $this->_arrAdjuntos[4] : ''); }
	function obtenerAdjuntoImagen06() { return (!empty($this->_arrAdjuntos[5]) ? $this->_arrAdjuntos[5] : ''); }
	function obtenerAdjuntoImagen07() { return (!empty($this->_arrAdjuntos[6]) ? $this->_arrAdjuntos[6] : ''); }
	function obtenerAdjuntoImagen08() { return (!empty($this->_arrAdjuntos[7]) ? $this->_arrAdjuntos[7] : ''); }
	function obtenerAdjuntoImagen09() { return (!empty($this->_arrAdjuntos[8]) ? $this->_arrAdjuntos[8] : ''); }
	function obtenerAdjuntoImagen10() { return (!empty($this->_arrAdjuntos[9]) ? $this->_arrAdjuntos[9] : ''); }
	function obtenerAdjuntoImagen11() { return (!empty($this->_arrAdjuntos[10])? $this->_arrAdjuntos[10]: ''); }
	function obtenerAdjuntoImagen12() { return (!empty($this->_arrAdjuntos[11])? $this->_arrAdjuntos[11]: ''); }
	function obtenerAdjuntoImagen13() { return (!empty($this->_arrAdjuntos[12])? $this->_arrAdjuntos[12]: ''); }
	function obtenerAdjuntoImagen14() { return (!empty($this->_arrAdjuntos[13])? $this->_arrAdjuntos[13]: ''); }
	function obtenerAdjuntoImagen15() { return (!empty($this->_arrAdjuntos[14])? $this->_arrAdjuntos[14]: ''); }
	function obtenerAdjuntoImagen16() { return (!empty($this->_arrAdjuntos[15])? $this->_arrAdjuntos[15]: ''); }
	function obtenerAdjuntoImagen17() { return (!empty($this->_arrAdjuntos[16])? $this->_arrAdjuntos[16]: ''); }
	function obtenerAdjuntoImagen18() { return (!empty($this->_arrAdjuntos[17])? $this->_arrAdjuntos[17]: ''); }
	function obtenerAdjuntoImagen19() { return (!empty($this->_arrAdjuntos[18])? $this->_arrAdjuntos[18]: ''); }
	function obtenerAdjuntoImagen20() { return (!empty($this->_arrAdjuntos[19])? $this->_arrAdjuntos[19]: ''); }
 

anonymous

+18

int getElement(int index, vector<int> arr){
  int result;
  for(int i = 0; i < arr.size(); i++) {
    result = arr[i];
    if(i == index) {
      break;
    }
  }

  return result;
}
 

anonymous

+16

... ? true : false
 

anonymous

+16

function _menu_parents_recurse($menu_name, $type = 'menu', $lang = 'en', $path = false){

	$q = db_query("SELECT * FROM menu_links WHERE menu_name = '{$menu_name}' ORDER BY depth, weight ASC");
	$languages_list = locale_language_list();
	$menu_name_read = db_fetch_object(db_query("SELECT title FROM menu_custom WHERE menu_name = '{$menu_name}' LIMIT 1"));
	$menu_structure = array();
	while($data = db_fetch_object($q))
	{
		$lang_un = unserialize($data->options);
		if(isset($lang_un['langcode']) && $lang_un['langcode'] == $lang){

			switch($data->depth)
			{
				case 1:
					$menu[$data->p1] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 2:
					$menu[$data->p1]['childrens'][$data->p2] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 3:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 4:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3]['childrens'][$data->p4] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 5:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3]['childrens'][$data->p4]['childrens'][$data->p5] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 6:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3]['childrens'][$data->p4]['childrens'][$data->p5]['childrens'][$data->p6] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 7:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3]['childrens'][$data->p4]['childrens'][$data->p5]['childrens'][$data->p6]['childrens'][$data->p7] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 8:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3]['childrens'][$data->p4]['childrens'][$data->p5]['childrens'][$data->p6]['childrens'][$data->p7]['childrens'][$data->p8] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
				case 9:
					$menu[$data->p1]['childrens'][$data->p2]['childrens'][$data->p3]['childrens'][$data->p4]['childrens'][$data->p5]['childrens'][$data->p6]['childrens'][$data->p7]['childrens'][$data->p8]['childrens'][$data->p9] = array('name' => $data->link_title, 'path' => $data->link_path);
				break;
			}

		}
	}

	if(!$path)
		$menu_structure[$menu_name.':0'] = '<'.t($menu_name_read->title).'>';
	else
		$menu_structure[''] = '<'.t($menu_name_read->title).'>';

	if($menu){
		foreach($menu as $mlid => $menu_item)
		{
			if($menu_item['name']) $menu_structure[(!$path) ? $menu_name.':'.$mlid : $menu_item['path']] = '-- '.$menu_item['name'];

			if(isset($menu_item['childrens']))
			{
				foreach($menu_item['childrens'] as $children_mlid => $children)
				{
					if($children['name']) $menu_structure[$menu_name.':'.$children_mlid] = '---- '.$children['name'];

					if(isset($children['childrens'])){

						foreach($children['childrens'] as $children2_mlid => $children2)
						{
							if($children2['name']) $menu_structure[$menu_name.':'.$children2_mlid] = '------ '.$children2['name'];

							if(isset($children2['childrens'])){

								foreach($children2['childrens'] as $children3_mlid => $children3)
								{
									if($children3['name']) $menu_structure[$menu_name.':'.$children3_mlid] = '-------- '.$children3['name'];

									if(isset($children3['childrens'])){

										foreach($children3['childrens'] as $children4_mlid => $children4)
										{
											if($children4['name']) $menu_structure[$menu_name.':'.$children4_mlid] = '---------- '.$children4['name'];

											if(isset($children4['childrens'])){

												foreach($children4['childrens'] as $children5_mlid => $children5)
												{
													if($children5['name']) $menu_structure[$menu_name.':'.$children5_mlid] = '------------ '.$children5['name'];

													if(isset($children5['childrens'])){

														foreach($children5['childrens'] as $children6_mlid => $children6)
														{
															if($children6['name']) $menu_structure[$menu_name.':'.$children6_mlid] = '-------------- '.$children6['name'];

															if(isset($children6['childrens'])){

																foreach($children6['childrens'] as $children7_mlid => $children7)
																{
																	if($children7['name']) $menu_structure[$menu_name.':'.$children7_mlid] = '-------------- '.$children7['name'];
																}
															}

														}
													}

												}
											}

										}
									}

								}
							}
						}

					}
				}
			}
		}
	}

	return $menu_structure;
}
 

anonymous

+16

if (test()) {
   return true;
}
else {
   return false;
}