Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql_admin = "SELECT * FROM users WHERE username='$username' AND hashed_password='$pass_admin' AND lvl = 1 LIMIT 1";
- $active_admin = $row['active'];
- if($pass = $db_password && $active == 1) {
- $_SESSION['id'] = $id;
- redirect_to("index");
- } elseif($pass_admin = $db_password_admin && $active_admin=1) {
- $_SESSION['id'] = $id_admin;
- redirect_to("admin");
- } elseif($pass_admin=$db_password_admin && $active_admin=0) {
- //nemáte aktivovaný účet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement