From 02c05f677d914f3015b3a122f4e6880a20ba46f1 Mon Sep 17 00:00:00 2001 From: Catalin Novgorodschi <1140613+Shadowss@users.noreply.github.com> Date: Sat, 9 Jun 2018 09:32:11 +0300 Subject: [PATCH 1/2] Added oasis part +must to be coded to activate from the install section --- Templates/Profile/overview.tpl | 58 ++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 6 deletions(-) diff --git a/Templates/Profile/overview.tpl b/Templates/Profile/overview.tpl index da44f481..d13accda 100644 --- a/Templates/Profile/overview.tpl +++ b/Templates/Profile/overview.tpl @@ -1,11 +1,17 @@
| 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'].") | ";
}
From 29cf71f95f6476a00a7dba6f1474c893c47f4990 Mon Sep 17 00:00:00 2001
From: Vladyslav
| : | ||||||