mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Update db_MYSQL.php
This commit is contained in:
@@ -2717,6 +2717,16 @@ class MYSQL_DB {
|
||||
return mysql_fetch_assoc($result);
|
||||
}
|
||||
|
||||
function getOasisEnforce($ref, $mode=0) {
|
||||
if (!$mode) {
|
||||
$q = "SELECT e.*,o.conqured FROM ".TB_PREFIX."enforcement as e LEFT JOIN ".TB_PREFIX."odata as o ON e.vref=o.wref where o.conqured = $ref AND e.from !=$ref";
|
||||
}else{
|
||||
$q = "SELECT e.*,o.conqured FROM ".TB_PREFIX."enforcement as e LEFT JOIN ".TB_PREFIX."odata as o ON e.from=o.wref where o.conqured = $ref AND e.vref !=$ref";
|
||||
}
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function getEnforceControllTroops($vid) {
|
||||
$q = "SELECT * from " . TB_PREFIX . "enforcement where vref = $vid";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
|
||||
Reference in New Issue
Block a user