Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. $sql_admin = "SELECT * FROM users WHERE username='$username' AND hashed_password='$pass_admin' AND lvl = 1 LIMIT 1";
  2.         $active_admin = $row['active'];
  3.  
  4.         if($pass = $db_password && $active == 1) {
  5.             $_SESSION['id'] = $id;
  6.             redirect_to("index");
  7.         } elseif($pass_admin = $db_password_admin && $active_admin=1) {
  8.             $_SESSION['id'] = $id_admin;
  9.             redirect_to("admin");
  10.         } elseif($pass_admin=$db_password_admin && $active_admin=0) {
  11.             //nemáte aktivovaný účet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement