r8conf2016/register_process.php
Consider simplifying this complex logical expression. Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
{
echo '<div class="entry"><strong>All of the required fields were not filled out. Please try again.</strong></div>';
} else {
$insert = "INSERT INTO `conf_contact_information` (firstname, lastname, email, tel1, tel2, tel3, password, shirt, allergytext, housing, chapter1, chapter2, chapter3, guests, payment, reg_date, reg_time) VALUES('$fname','$lname', '$email', '$tel1', '$tel2', '$tel3', '$password', '$shirt', '$allergytext', '$housing', '$chapter1', '$chapter2', '$chapter3', '$guests', '$payment', '$reg_date', '$reg_time')";
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
Open
$subject = "(" . $resultcount['COUNT(*)'] . ") " . $fname . " " . $lname . " has registered for the APO Epsilon Region VIII Conference";
- Exclude checks
Line exceeds 120 characters; contains 414 characters Open
Open
$insert = "INSERT INTO `conf_contact_information` (firstname, lastname, email, tel1, tel2, tel3, password, shirt, allergytext, housing, chapter1, chapter2, chapter3, guests, payment, reg_date, reg_time) VALUES('$fname','$lname', '$email', '$tel1', '$tel2', '$tel3', '$password', '$shirt', '$allergytext', '$housing', '$chapter1', '$chapter2', '$chapter3', '$guests', '$payment', '$reg_date', '$reg_time')";
- Exclude checks
Line exceeds 120 characters; contains 210 characters Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
Line exceeds 120 characters; contains 329 characters Open
Open
die('There has an been error with your registration. This may be because the email address you supplied is already in use, or there may be other technical problems. If the error persists, please contact the webmaster at <a href="mailto:apo.epsilon.webmaster@gmail.com">apo.epsilon.webmaster@gmail.com.</a>' . mysqli_error());
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
Open
$query2 = $db->query($insert) or die('<br><div class="entry"><strong>Your username is already taken. Please try again.</strong></div>');
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
Open
echo '<div class="entry"><strong>All of the required fields were not filled out. Please try again.</strong></div>';
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('session.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->Subject = $subject;
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('../PasswordHash.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->Port = 587;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->AddAddress("apo.epsilon.conferencechair@gmail.com", "APO Epsilon Conference Chair");
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 2 Open
Open
exit;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->SMTPAuth = true;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->Host = "smtp.gmail.com"; // specify main server
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$resultcount = mysqli_fetch_array($db->query("SELECT COUNT(*) FROM conf_contact_information;"));
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 2 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
require("..includes/PHPMailer/class.phpmailer.php");
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->SMTPSecure = "tls";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->Username = "apo.epsilon.webmaster@gmail.com";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->Password = "alphaphiomega";
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('../mysql_access.php');
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail = new PHPMailer();
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
echo <<<END
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$result = $db->query($insert);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
if (!$result) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->FromName = "Alpha Phi Omega Epsilon";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$subject = "(" . $resultcount['COUNT(*)'] . ") " . $fname . " " . $lname . " has registered for the APO Epsilon Region VIII Conference";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
die('There has an been error with your registration. This may be because the email address you supplied is already in use, or there may be other technical problems. If the error persists, please contact the webmaster at <a href="mailto:apo.epsilon.webmaster@gmail.com">apo.epsilon.webmaster@gmail.com.</a>' . mysqli_error());
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$emailToSend = "Name: " . $fname . " " . $lname . "\n" .
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
if(!$mail->Send()) {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
} else {
- Exclude checks
Expected 1 space after closing parenthesis; found 5 Open
Open
if ($fname == NULL || $lname == NULL || $email == NULL || $tel1 == NULL || $tel2 == NULL || $tel3 == NULL || $password == NULL || $shirt == NULL || $housing == NULL || $chapter1 == NULL || $payment == NULL)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->IsSMTP(); // set mailer to use SMTP
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
Open
if(!$mail->Send()) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
$mail->Body = $emailToSend;
- Exclude checks