/** * 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)
      

+2

//This keeps going for 50k lines, not my source code.

if (ItemName == "Silver Hammer")
{
	this.SetDefaults(7, false);
	this.color = new Color(180, 180, 180, 100);
	this.useAnimation = 29;
	this.useTime = 19;
	this.scale = 1.25f;
	this.damage = 9;
	this.hammer = 45;
	this.value = 4000;
	this.netID = -11;
}
else
{
	if (ItemName == "Silver Bow")
	{
		this.SetDefaults(99, false);
		this.useAnimation = 27;
		this.useTime = 27;
		this.color = new Color(180, 180, 180, 100);
		this.damage = 9;
		this.value = 3500;
		this.netID = -12;
	}
	else
	{
		if (ItemName == "Copper Pickaxe")
		{
			this.SetDefaults(1, false);
			this.color = new Color(180, 100, 45, 80);
			this.useTime = 15;
			this.pick = 35;
			this.useAnimation = 23;
			this.damage = 4;
			this.scale = 0.9f;
			this.tileBoost = -1;
			this.value = 500;
			this.netID = -13;
		}
		else
		{
			if (ItemName == "Copper Broadsword")
			{
				this.SetDefaults(4, false);
				this.color = new Color(180, 100, 45, 80);
				this.useAnimation = 23;
				this.damage = 8;
				this.value = 450;
				this.netID = -14;
			}
        }
 

anonymous

0

private void SetLabelText()
{
    Label1.Text = dateFirst.ToShortDateString();
            Label2.Text = dateFirst.AddDays(1).ToShortDateString();
            Label3.Text = dateFirst.AddDays(2).ToShortDateString();
            Label4.Text = dateFirst.AddDays(3).ToShortDateString();
            Label5.Text = dateFirst.AddDays(4).ToShortDateString(); 
            Label6.Text = dateFirst.AddDays(5).ToShortDateString();
            Label7.Text = dateFirst.AddDays(6).ToShortDateString();
            Label8.Text = dateFirst.AddDays(7).ToShortDateString();
            Label9.Text = dateFirst.AddDays(8).ToShortDateString();
            Label10.Text = dateFirst.AddDays(9).ToShortDateString();
            Label11.Text = dateFirst.AddDays(10).ToShortDateString();
            Label12.Text = dateFirst.AddDays(11).ToShortDateString();
            Label13.Text = dateFirst.AddDays(12).ToShortDateString();
            Label14.Text = dateFirst.AddDays(13).ToShortDateString();
            Label15.Text = dateFirst.AddDays(14).ToShortDateString();
            Label16.Text = dateFirst.AddDays(15).ToShortDateString();
            Label17.Text = dateFirst.AddDays(16).ToShortDateString();
            Label18.Text = dateFirst.AddDays(17).ToShortDateString();
            Label19.Text = dateFirst.AddDays(18).ToShortDateString();
            Label20.Text = dateFirst.AddDays(19).ToShortDateString();
            Label21.Text = dateFirst.AddDays(20).ToShortDateString();
            Label22.Text = dateFirst.AddDays(21).ToShortDateString();
            Label23.Text = dateFirst.AddDays(22).ToShortDateString();
            Label24.Text = dateFirst.AddDays(23).ToShortDateString();
            Label25.Text = dateFirst.AddDays(24).ToShortDateString();
            Label26.Text = dateFirst.AddDays(25).ToShortDateString();
            Label27.Text = dateFirst.AddDays(26).ToShortDateString();
            Label28.Text = dateFirst.AddDays(27).ToShortDateString();
            Label29.Text = dateFirst.AddDays(28).ToShortDateString();
            Label30.Text = dateFirst.AddDays(29).ToShortDateString();
            Label31.Text = dateFirst.AddDays(30).ToShortDateString()

}

private void setLabelVisibility()
{

             xrLabel1.Visible = Label1.Visible = (iCounter >= 1);
            xrLabel2.Visible = Label2.Visible = (iCounter >= 2);
            xrLabel3.Visible = Label3.Visible = (iCounter >= 3);
            xrLabel4.Visible = Label4.Visible = (iCounter >= 4);
            xrLabel5.Visible = Label5.Visible = (iCounter >= 5);
            xrLabel6.Visible = Label6.Visible = (iCounter >= 6);
            xrLabel7.Visible = Label7.Visible = (iCounter >= 7);
            xrLabel8.Visible = Label8.Visible = (iCounter >= 8);
            xrLabel9.Visible = Label9.Visible = (iCounter >= 9);
            xrLabel10.Visible = Label10.Visible = (iCounter >= 10);
            xrLabel11.Visible = Label11.Visible = (iCounter >= 11);
            xrLabel12.Visible = Label12.Visible = (iCounter >= 12);
            xrLabel13.Visible = Label13.Visible = (iCounter >= 13);
            xrLabel14.Visible = Label14.Visible = (iCounter >= 14);
            xrLabel15.Visible = Label15.Visible = (iCounter >= 15);
            xrLabel16.Visible = Label16.Visible = (iCounter >= 16);
            xrLabel17.Visible = Label17.Visible = (iCounter >= 17);
            xrLabel18.Visible = Label18.Visible = (iCounter >= 18);
            xrLabel19.Visible = Label19.Visible = (iCounter >= 19);
            xrLabel20.Visible = Label20.Visible = (iCounter >= 20);
            xrLabel21.Visible = Label21.Visible = (iCounter >= 21);
            xrLabel22.Visible = Label22.Visible = (iCounter >= 22);
            xrLabel23.Visible = Label23.Visible = (iCounter >= 23);
            xrLabel24.Visible = Label24.Visible = (iCounter >= 24);
            xrLabel25.Visible = Label25.Visible = (iCounter >= 25);
            xrLabel26.Visible = Label26.Visible = (iCounter >= 26);
            xrLabel27.Visible = Label27.Visible = (iCounter >= 27);
            xrLabel28.Visible = Label28.Visible = (iCounter >= 28);
            xrLabel29.Visible = Label29.Visible = (iCounter >= 29);
            xrLabel30.Visible = Label30.Visible = (iCounter >= 30);
            xrLabel31.Visible = Label31.Visible = (iCounter >= 31);
}
 

anonymous

+1

<a href="#" onclick="location.href='Account/ForgotPassword.aspx'"></a>
 

anonymous

0

while ($row = mysql_fetch_array($result)){

			

					$array[$row['id']] =  array(  'id'=>$row['id'],

									    'id_central'=>$row['id_central'],

										'descripcion_1'=> $row['descripcion_1'],

										'descripcion_2'=> $row['descripcion_2'],

										'descripcion_3'=> $row['descripcion_3'],

										'descripcion_4'=> $row['descripcion_4'],

										'descripcion_5'=> $row['descripcion_5'],

										'descripcion_6'=> $row['descripcion_6'],

										'descripcion_7'=> $row['descripcion_7'],

										'descripcion_8'=> $row['descripcion_8'],

										'descripcion_9'=> $row['descripcion_9'],

										'descripcion_10'=> $row['descripcion_10'],

										'descripcion_11'=> $row['descripcion_11'],

										'descripcion_12'=> $row['descripcion_12'],

										'descripcion_13'=> $row['descripcion_13'],

										'descripcion_14'=> $row['descripcion_14'],

										'descripcion_15'=> $row['descripcion_15'],

										'descripcion_16'=> $row['descripcion_16'],

										'descripcion_17'=> $row['descripcion_17'],

										'descripcion_18'=> $row['descripcion_18'],

										'descripcion_19'=> $row['descripcion_19'],

										'descripcion_20'=> $row['descripcion_20'],

										'descripcion_21'=> $row['descripcion_21'],

										'descripcion_22'=> $row['descripcion_22'],

										'descripcion_23'=> $row['descripcion_23'],

										'descripcion_24'=> $row['descripcion_24'],

										'descripcion_25'=> $row['descripcion_25'],	

										

	

										'nombre_1'=> $row['nombre_1'],

										'nombre_2'=> $row['nombre_2'],

										'nombre_3'=> $row['nombre_3'],

										'nombre_4'=> $row['nombre_4'],

										'nombre_5'=> $row['nombre_5'],

										'nombre_6'=> $row['nombre_6'],

										'nombre_7'=> $row['nombre_7'],

										'nombre_8'=> $row['nombre_8'],

										'nombre_9'=> $row['nombre_9'],

										'nombre_10'=> $row['nombre_10'],

										'nombre_11'=> $row['nombre_11'],

										'nombre_12'=> $row['nombre_12'],

										'nombre_13'=> $row['nombre_13'],

										'nombre_14'=> $row['nombre_14'],

										'nombre_15'=> $row['nombre_15'],

										'nombre_16'=> $row['nombre_16'],

										'nombre_17'=> $row['nombre_17'],

										'nombre_18'=> $row['nombre_18'],

										'nombre_19'=> $row['nombre_19'],

										'nombre_20'=> $row['nombre_20'],

										'nombre_21'=> $row['nombre_21'],

										'nombre_22'=> $row['nombre_22'],

										'nombre_23'=> $row['nombre_23'],

										'nombre_24'=> $row['nombre_24'],

										'nombre_25'=> $row['nombre_25']

									   

									   

										) ;



					

			} 	
 

anonymous

+1

   ''' <summary>
   ''' Convert an int (1 to 26) into an uppercase char
   ''' </summary>
   ''' <param name="val">value</param>
   ''' <returns>uppercase character</returns>
   Private Shared Function IntToLetter(val As UInteger) As String
      If val > 0 And val <= 26 Then
         Select Case val
            Case 1
               Return "A"
            Case 2
               Return "B"
            Case 3
               Return "C"
            Case 4
               Return "D"
            Case 5
               Return "E"
            Case 6
               Return "F"
            Case 7
               Return "G"
            Case 8
               Return "H"
            Case 9
               Return "I"
            Case 10
               Return "J"
            Case 11
               Return "K"
            Case 12
               Return "L"
            Case 13
               Return "M"
            Case 14
               Return "N"
            Case 15
               Return "O"
            Case 16
               Return "P"
            Case 17
               Return "Q"
            Case 18
               Return "R"
            Case 19
               Return "S"
            Case 20
               Return "T"
            Case 21
               Return "U"
            Case 22
               Return "V"
            Case 23
               Return "W"
            Case 24
               Return "X"
            Case 25
               Return "Y"
            Case 26
               Return "Z"
            Case Else
               Return ""
         End Select
      Else
         Throw New Exception("invalid value")
      End If
   End Function
 

anonymous

-2

/* This is how somebody chose to centre the content of a page. */

@media (min-width: 800px) {
    html { padding-left: 0px; }
}

@media (min-width: 1024px) {
    html { padding-left: 5%; }
}

@media (min-width: 1200px) {
    html { padding-left: 10%; }
}

@media (min-width: 1400px) {
    html { padding-left: 20%; }
}
 

anonymous

0

$weight = ((float)('0.'.( $weight < 10 ? '0' : '').$weight));
 

+2

//production search code to return all results
searchQuery = queryBuilder.BuildQuery(
                            "a OR b OR c OR d OR e OR f OR g OR h OR i OR j OR k OR l OR m OR n OR o OR p OR q OR r OR s OR t OR u OR v OR w OR x OR y OR z",
                            new[] { "Title" });
 

anonymous

+4

try 
{
    /* lines of code */
}
catch (Exception ex) 
{
    throw ex;
}
 

anonymous

0

- readable inline sql in java annotation:
SELECT TRIM(CONCAT(TRIM(CONCAT(TRIM(CONCAT(TRIM(CONCAT(TRIM(CONCAT(TRIM(CONCAT(COALESCE(...