Posted by Anonymous Mon 12th Mar 2007 07:46 - Syntax is PHP - 139 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
-
-
//main
-
if ($_SESSION['is_admin'] == 1) {
-
}
-
else {
-
echo "not logged!";
-
}
-
?>
-
-
-
/* logout */ session_start(); session_destroy(); header("Location: ../login"); ?>
-
-
-
// login success script
-
include ('../../db/database.php');
-
$query = "SELECT COUNT(*) FROM users WHERE user = '$escape_user' AND password=password('$escape_password');";
-
$_SESSION['is_admin'] = 1;
-
}
-
else {
-
// error message here.
-
}
-
?>
-
PermaLink to this entry https://pastebin.co.uk/11710
Posted by Anonymous Mon 12th Mar 2007 07:46 - Syntax is PHP - 139 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
Comments: 0