fix beginner protection when register before server start time

This commit is contained in:
unknown
2013-04-01 12:27:32 +03:00
parent 800f61e54e
commit a8892d50ff
+1 -1
View File
@@ -20,7 +20,7 @@ class MYSQL_DB {
function register($username, $password, $email, $tribe, $act) {
$time = time();
$timep = (time() + PROTECTION);
$timep = (strtotime(START_TIME) + PROTECTION);
$q = "INSERT INTO " . TB_PREFIX . "users (username,password,access,email,timestamp,tribe,act,protect,lastupdate,regtime) VALUES ('$username', '$password', " . USER . ", '$email', $time, $tribe, '$act', $timep, $time, $time)";
if(mysql_query($q, $this->connection)) {
return mysql_insert_id($this->connection);