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

<?php
$a=1;$b=0;
if(!$a<$b) echo 'yes'; 
?>
 

+5

if (q.exec('SELECT * FROM admins WHERE username LIKE :username AND password LIKE :password', user, pass).num() > 0) {
 ... giving admin privileges ...
 

+11

Pager::~Pager()
{    
	data = NULL;
	delete [] data;
};
 

+9

for ( j=0; j<array_len; j+ =8 ) { 
  total += array[j+0]; 
  total += array[j+1]; 
  total += array[j+2]; /* Main body of 
  total += array[j+3]; * loop is unrolled 
  total += array[j+4]; * for greater speed. 
  total += array[j+5]; */ 
  total += array[j+6]; 
  total += array[j+7]; 
}
 

+23

            } 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 {
(...)
 

anonymous

-9

// fun starts here
#define true (rand() <10)
 

anonymous

+2

while (1=1)
{
    int i;
    Thread.Sleep(100);
    i++;
    if(i==10)
    {
        break;
    }
}
 

anonymous

-2

// fun starts here
#define true (rand() <10)
 

anonymous

+23

if ($x == 10) {
 // CODE
}
else if ($x != 10) {
 // MORE CODE
}
else {
 // MORE CODE, AGAIN
}

// Thanks, phpclasses.net...
 

+8

public boolean isNegative(int i) {
    String s = Integer.parseInt(i);
    return s.startsWith("-");
}