Advertisement
droidus

Untitled

Jun 9th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. else {  // If account is in bad standing
  2.                 for ($i=0; $i>0; $i++) {$errors[$i]="Your account has been temporarily/permanently disabled, or terminated. Please contact us for more details."; } echo "hi";
  3.             }
  4.            
  5.             if ($row['activated'] == 1) {
  6.                 mysql_close($result);
  7.                 $_SESSION[$user] = $loginUsername;
  8.                 header('Location: users/' . $row['uname'] . '/index.php');
  9.                 exit;
  10.             }
  11.             else {for ($i=$i; $i>0; $i++) {$errors[$i] = "your account is not yet activated.";} echo " hi2";}
  12.         }
  13.     }
  14. }
  15. ?>
  16.  
  17. <?php
  18. if (isset($errors) && !empty($errors)) {
  19.     for ($i=0; $i>0; $i++) {
  20.         echo "<p class='errors'>$errors[$i]<br></p>";
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement