mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 05:36:10 +00:00
more updates
This commit is contained in:
@@ -20,11 +20,11 @@ class MYSQL_DB {
|
||||
|
||||
function register($username, $password, $email, $tribe, $act) {
|
||||
$time = time();
|
||||
$timep = time() + PROTECTION;
|
||||
$stime = strtotime(START_DATE)+strtotime(START_TIME)-time();
|
||||
$stime = strtotime(START_DATE)-strtotime(date('m/d/Y'))+strtotime(START_TIME);
|
||||
if($stime > time()){
|
||||
$time = $stime;
|
||||
}
|
||||
$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(mysql_query($q, $this->connection)) {
|
||||
return mysql_insert_id($this->connection);
|
||||
|
||||
@@ -23,11 +23,11 @@ class MYSQLi_DB {
|
||||
|
||||
function register($username, $password, $email, $tribe, $act) {
|
||||
$time = time();
|
||||
$timep = time() + PROTECTION;
|
||||
$stime = strtotime(START_DATE)+strtotime(START_TIME)-time();
|
||||
$stime = strtotime(START_DATE)-strtotime(date('m/d/Y'))+strtotime(START_TIME);
|
||||
if($stime > time()){
|
||||
$time = $stime;
|
||||
}
|
||||
$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(mysql_query($this->connection, $q)) {
|
||||
return mysql_insert_id($this->connection);
|
||||
|
||||
Reference in New Issue
Block a user