diff --git a/Templates/News/newsbox2.tpl b/Templates/News/newsbox2.tpl index 3434cc3f..407a621d 100644 --- a/Templates/News/newsbox2.tpl +++ b/Templates/News/newsbox2.tpl @@ -1,6 +1,5 @@ areArtifactsSpawned(), $database->areWWVillagesSpawned(), $database->areArtifactsSpawned(true)]; @@ -12,8 +11,8 @@ $areSpawned = [$database->areArtifactsSpawned(), $database->areWWVillagesSpawned
| Villages | +Villages | |||||
|---|---|---|---|---|---|---|
| Name | - +Oasis | Inhabitants | Coordinates | "; + + // OASIS PART - must to be activated from install part + + $prefix = "".TB_PREFIX."odata"; + $uid = $_GET['uid']; $wref = $vil['wref']; + $sql = mysqli_query("SELECT * FROM $prefix WHERE owner = $uid AND conqured = $wref"); + while($row = mysqli_fetch_array($sql)){ + $type = $row["type"]; + switch($type) { + case 1: + case 2: + echo " | ".$vil['pop']." | ";
echo " (".$coor['x']." | ".$coor['y'].") | ";
}