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

0

if (($n1==$n2)or($n1==$n3)or($n1==$n4)or($n1==$n5)or($n1==$n6)or($n1==$n7)or($n1==$n8)or($n1==$n9)
or($n2==$n3)or($n2==$n4)or($n2==$n5)or($n2==$n6)or($n2==$n7)or($n2==$n8)or($n2==$n9)
or($n3==$n4)or($n3==$n5)or($n3==$n6)or($n3==$n7)or($n3==$n8)or($n3==$n9)
or($n4==$n5)or($n4==$n6)or($n4==$n7)or($n4==$n8)or($n4==$n9)
or($n5==$n6)or($n5==$n7)or($n5==$n8)or($n5==$n9)
or($n6==$n7)or($n6==$n8)or($n6==$n9)
or($n7==$n8)or($n7==$n9)
or($n8==$n9))
 

anonymous

0

function _open_tasks_get_needed_doc_list() {
	$needed_documents = array(
//		1 => 4,
//		2 => 6,
//		3 => 5,
//		10 => 12,
//		11 => 13,
//		4 => 2,
		5 => 1,
//		6 => 11,
		7 => 8,
//		8 => 3,
//		9 => 10,
		12 => 14,
		1 => 15,
	);
	return $needed_documents;
}
 

anonymous

+2

// Beautiful control flow. Taken from binutils bfd/elf64-alpha.c

  /* Some compilers warn about a Boolean-looking expression being
     used in a switch.  The explicit cast silences them.  */
  switch ((int) (!dynamic && !bfd_link_pic (info->link_info)))
    {
    case 1:
      {
        bfd_vma tp_base;
        bfd_signed_vma disp;

        BFD_ASSERT (elf_hash_table (info->link_info)->tls_sec != NULL);
        tp_base = alpha_get_tprel_base (info->link_info);
        disp = symval - tp_base;

        if (disp >= -0x8000 && disp < 0x8000)
          {
            insn = (OP_LDA << 26) | (tlsgd_reg << 21) | (31 << 16);
            bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
            bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]);

            irel[0].r_offset = pos[0] - info->contents;
            irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPREL16);
            irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE);
            break;
          }
        else if (disp >= -(bfd_signed_vma) 0x80000000
                 && disp < (bfd_signed_vma) 0x7fff8000
                 && pos[0] + 4 == pos[1])
          {
            insn = (OP_LDAH << 26) | (tlsgd_reg << 21) | (31 << 16);
            bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
            insn = (OP_LDA << 26) | (tlsgd_reg << 21) | (tlsgd_reg << 16);
            bfd_put_32 (info->abfd, (bfd_vma) insn, pos[1]);

            irel[0].r_offset = pos[0] - info->contents;
            irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPRELHI);
            irel[1].r_offset = pos[1] - info->contents;
            irel[1].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPRELLO);
            break;
          }
      }
      /* FALLTHRU */

    default:
      use_gottprel = TRUE;

      insn = (OP_LDQ << 26) | (tlsgd_reg << 21) | (29 << 16);
      bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
      bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]);

      irel[0].r_offset = pos[0] - info->contents;
      irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_GOTTPREL);
      irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE);
      break;
    }
 

anonymous

-1

<?php 

function to_epoch_time($date_str){
	$hours = date('H', strtotime($date_str));
	$minutes = date('i', strtotime($date_str));
	$seconds = date('s', strtotime($date_str));
	$month = date('n', strtotime($date_str));
	$day = date('j', strtotime($date_str));
	$year = date('Y', strtotime($date_str));
	$is_dst = 0;
        return mktime($hours, $minutes, $seconds, $month, $day, $year, $is_dst);
}
 

anonymous

-1

{% if sep is not defined %}
{% set sep=";" %}
{% endif %}
{% if quot is not defined %}
{% set quot="\"" %}
{% endif %}
{% for col in header %}{{ col }}{% if not loop.last %}{{ sep }}{% endif %}{% endfor %}

{% for row in data %}
{% for col in row %}{{ quot|raw }}{{ col|replace({ '"': '""' })|raw }}{{ quot|raw }}{% if not loop.last %}{{ sep }}{% endif %}{% endfor %}

{% endfor %}
{{ "\n" }}
 

+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