[X]
donkeydiver is being very abusive,
but none of the admins are paying attention.
Please block his account but don't delete it.
<?php
// ...
include("user.inc");
$user = new user();
if (isset($_GET['register'])) {
$tmp_user = $_POST['user'];
$tmp_pass = $_POST['pass'];
$user->register($tmp_user, $tmp_pass);
}
if (isset($_GET['out'])) {
$user->logout();
}
if (isset($_GET['login'])) {
$tmp_user = $_POST['user'];
$tmp_pass = $_POST['pass'];
$user->login($tmp_user, $tmp_pass);
}
$user->check();
// ...
if ($user->loggedIn) {
// ...
if (isset($_GET['block']) && $user->isAdmin()) {
// ...
}
} else {
// ...
}
?>