r8conf2016/login_updatepw.php
Blank line found at start of control structure Open
Open
} else {
- Exclude checks
Blank line found at start of control structure Open
Open
if (!isset($_SESSION['sessionConfID'])) {
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
Blank line found at start of control structure Open
Open
if (isset($_POST['update_password'])) {
- Exclude checks
Blank line found at start of control structure Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($_POST['new_password_1'] == $_POST['new_password_2']) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (mysqli_affected_rows($db) == 1) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$sql = "UPDATE `conf_contact_information` SET `password` = '".$hash."' WHERE `id` = ".$user_id." LIMIT 1";
- Exclude checks
Line exceeds 120 characters; contains 156 characters Open
Open
echo "Your password was not changed. Did you input the correct old password? Click <a href='./login_updatepw.php'>here</a> to try again.";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (isset($_POST['update_password'])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo "Your password has been updated.";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$_POST = array_map('mysql_real_escape_string', $_POST);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$result = $db->query($sql);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<div class="entry">You need to login before you can use this page.</div>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo "Your password was not changed. Did you input the correct old password? Click <a href='./login_updatepw.php'>here</a> to try again.";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$user_id = $_SESSION['sessionConfID'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Update Information
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo "Your new passwords did not match. Click <a href='./login_updatepw.php'>here</a> to try again.";
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('session.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('../PasswordHash.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
require_once ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 0 Open
Open
echo<<<END
- Exclude checks