From 31b6eb167049ae28d36dcef8a3139dcd866b4b6f Mon Sep 17 00:00:00 2001 From: Shadow Date: Tue, 19 Nov 2013 12:11:19 +0200 Subject: [PATCH] Update Units.php --- GameEngine/Units.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/GameEngine/Units.php b/GameEngine/Units.php index 2fe060d6..a02d7dcf 100644 --- a/GameEngine/Units.php +++ b/GameEngine/Units.php @@ -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) {