mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-12 15:46:06 +00:00
more fixes
This commit is contained in:
@@ -22,8 +22,11 @@ class MYSQLi_DB {
|
||||
}
|
||||
|
||||
function register($username, $password, $email, $tribe, $act) {
|
||||
$time = time();
|
||||
$timep = (strtotime(START_TIME) + PROTECTION);
|
||||
$time = time();
|
||||
if(strtotime(START_TIME) > time()){
|
||||
$time = strtotime(START_TIME);
|
||||
}
|
||||
$timep = ($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(mysqli_query($this->connection, $q)) {
|
||||
return mysqli_insert_id($this->connection);
|
||||
|
||||
Reference in New Issue
Block a user