mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 12:24:20 +00:00
MySQLi database update
This commit is contained in:
@@ -19,7 +19,7 @@ class MYSQLi_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(mysqli_query($this->connection, $q)) {
|
||||
return mysqli_insert_id($this->connection);
|
||||
@@ -2150,7 +2150,7 @@ class MYSQLi_DB {
|
||||
}
|
||||
|
||||
function getARanking() {
|
||||
$q = "SELECT id,name,tag,oldrank FROM " . TB_PREFIX . "alidata where id != '' ORDER BY id DESC";
|
||||
$q = "SELECT id,name,tag,oldrank,Aap,Adp FROM " . TB_PREFIX . "alidata where id != '' ORDER BY id DESC";
|
||||
$result = mysqli_query($this->connection, $q);
|
||||
return $this->mysqli_fetch_all($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user