Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
//Note: PHP < 4.2.0 only
$user = $_POST['user'];
$pass = $_POST['pass'];
if ($user->login($user, $pass)) {
$loggedIn = true;
if ($user->isAdmin()) {
$priv = 1;
}
}
// ...
if (!$loggedIn) {
include("login.php");
} else if ($priv > 0) {
include("admin.php");
} else {
include("intro.php");
}
?>
@evandrix

This comment has been minimized.

Copy link

evandrix commented Jan 7, 2013

register_globals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.