mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 07:07:14 +00:00
update
This commit is contained in:
@@ -221,7 +221,7 @@ class MYSQL_DB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setDeleting($uid, $mode) {
|
function setDeleting($uid, $mode) {
|
||||||
$time = time() + 5 * 3600;
|
$time = time() + 72 * 3600;
|
||||||
if(!$mode) {
|
if(!$mode) {
|
||||||
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
|
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
|
||||||
} else {
|
} else {
|
||||||
@@ -1320,7 +1320,7 @@ class MYSQL_DB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getAllianceWar2($aid){
|
function getAllianceWar2($aid){
|
||||||
$q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli2 = '$aid' or alli1 = '$aid' AND accepted = '1'";
|
$q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '3' OR alli2 = '$aid' AND type = '3' AND accepted = '1'";
|
||||||
$result = mysql_query($q, $this->connection);
|
$result = mysql_query($q, $this->connection);
|
||||||
return $this->mysql_fetch_all($result);
|
return $this->mysql_fetch_all($result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user