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 @@ - + - + @@ -178,7 +184,47 @@ include("menu2.tpl"); if($vil['capital'] == 1) { echo " (capital)"; } - echo ""; + echo ""; + + // 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 ""; + break; + case 3: + echo ""; + break; + case 4: + case 5: + echo ""; + break; + case 6: + echo ""; + case 7: + case 8: + echo ""; + break; + case 9: + echo ""; + break; + case 10: + case 11: + case 12: + echo ""; + break; + } + } + + // OASIS PART - must to be activated from install part + + echo ""; echo ""; } From 29cf71f95f6476a00a7dba6f1474c893c47f4990 Mon Sep 17 00:00:00 2001 From: Vladyslav Date: Sat, 9 Jun 2018 11:16:26 +0300 Subject: [PATCH 2/2] A small fix of newsbox 2 --- Templates/News/newsbox2.tpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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
VillagesVillages
NameOasis Inhabitants Coordinates
".$vil['pop'].""; echo "
(".$coor['x']."
|
".$coor['y'].")
: