Update db_MYSQL.php

This commit is contained in:
Shadow
2013-11-18 07:35:18 +02:00
parent 11154c14fb
commit e1ec6e3a0d
+10
View File
@@ -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);