made a lock to prevent from people logging in to early

main
hecht 13 years ago
parent 22df503494
commit 3300e7bf91

@ -41,14 +41,17 @@ include_once (ROOT_PATH . '/include/usergroup.inc.php');
$name = validateName($_COOKIE['name']);
$passwort = validateString($_COOKIE['passwort']);
$usergroups = array();
$usergroups = getUserGroups($name);
if(!isUserInGroup($usergroups, ADMIN) && time() < mktime(18, 0, 0, 1, 6, 2012)) {
$passwort = null;
}
if(!checkCookiePassword($name, $passwort)){
$POLOE = 1;
$user_ida = array();
} else {
$user_ida = mysql_fetch_assoc(mysql_query("SELECT * FROM user WHERE nickname='$name' LIMIT 1"));
$usergroups = getUserGroups($name);
mysql_query('UPDATE user SET ip=\'' . $_SERVER['REMOTE_ADDR'] . '\', online_zeit=now() WHERE id='.$user_ida['id']);
if ($online_rekord_1_0['anzahl'] < $online_r) {
mysql_query('UPDATE online SET anzahl='.$online_r.', datum=now() WHERE id=1');

Loading…
Cancel
Save