From a8892d50fff3200c3269040485c86adc14d951d5 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 1 Apr 2013 12:27:32 +0300 Subject: [PATCH] fix beginner protection when register before server start time --- GameEngine/Database/db_MYSQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index 0a7c4c07..03f7273b 100644 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -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);