Update Units.php

This commit is contained in:
Shadow
2013-11-19 12:11:19 +02:00
parent 1fda83599a
commit 31b6eb1670
+10
View File
@@ -669,6 +669,16 @@ if($session->access != BANNED){
}else{
header("Location: banned.php");
}
}
function getOasisEnforceArray($id, $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 e.id = $id";
}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 e.id =$id";
}
$result = mysql_query($q, $this->connection);
return mysql_fetch_assoc($result);
}
public function Settlers($post) {