From 29b97b40d94bd3bcb191802640a22548711d807b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Apr 2012 23:03:22 +0300 Subject: [PATCH] improve ally news + edit allianz.php and spieler.php + more little update for goldclub --- GameEngine/Alliance.php | 16 +-- GameEngine/config.php | 254 ++++++++++++++++++++++++++++++++++++++ Templates/Build/16.tpl | 2 +- Templates/Build/16_99.tpl | 2 +- Templates/Plus/3.tpl | 2 +- allianz.php | 2 +- build.php | 2 + 7 files changed, 268 insertions(+), 12 deletions(-) create mode 100644 GameEngine/config.php diff --git a/GameEngine/Alliance.php b/GameEngine/Alliance.php index f70fd0d6..46021a5d 100644 --- a/GameEngine/Alliance.php +++ b/GameEngine/Alliance.php @@ -155,10 +155,10 @@ foreach($this->inviteArray as $invite) { if($invite['id'] == $get['d']) { $database->removeInvitation($get['d']); - $database->insertAlliNotice($session->alliance, '' . $session->username . ' has deleted an invitation.'); + $database->insertAlliNotice($invite['alliance'], '' . $session->username . ' has rejected the invitation.'); } } - //header("Location: build.php?id=".$get['id']); + header("Location: build.php?id=".$get['id']); } /***************************************** @@ -169,11 +169,11 @@ $inviteArray = $database->getAliInvitations($session->alliance); foreach($inviteArray as $invite) { if($invite['id'] == $get['d']) { + $invitename = $database->getUserArray($invite['uid'], 1); $database->removeInvitation($get['d']); - $database->insertAlliNotice($session->alliance, '' . $session->username . ' has deleted an invitation.'); + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has deleted the invitation for ' . $invitename['username'] . '.'); } } - //header("Location: build.php?id=".$get['id']); } /***************************************** @@ -222,7 +222,7 @@ // Asign Permissions $database->createAlliPermissions($database->RemoveXSS($session->uid), $database->RemoveXSS($aid), 'Alliance founder', '1', '1', '1', '1', '1', '1', '1', '1'); // log the notice - $database->insertAlliNotice($session->alliance, 'The alliance has been founded by ' . $session->username . ''); + $database->insertAlliNotice($aid, 'The alliance has been founded by ' . $session->username . '.'); header("Location: build.php?id=" . $post['id']); } } @@ -274,7 +274,7 @@ } else { $database->submitAlliProfile($database->RemoveXSS($session->alliance), $database->RemoveXSS($post['be2']), $database->RemoveXSS($post['be1'])); // log the notice - $database->insertAlliNotice($session->alliance, '' . $session->username . ' has changed the alliance description'); + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has changed the alliance description.'); } } @@ -333,8 +333,8 @@ $database->deleteAlliPermissions($session->uid); // log the notice $database->deleteAlliance($session->alliance); - $database->insertAlliNotice($session->alliance, '' . $session->username . ' has quit the alliance'); - header("Location: dorf1.php"); + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has quit the alliance.'); + header("Location: spieler.php?uid=".$session->uid); } } diff --git a/GameEngine/config.php b/GameEngine/config.php new file mode 100644 index 00000000..812857a8 --- /dev/null +++ b/GameEngine/config.php @@ -0,0 +1,254 @@ + diff --git a/Templates/Build/16.tpl b/Templates/Build/16.tpl index d6985289..b29444db 100644 --- a/Templates/Build/16.tpl +++ b/Templates/Build/16.tpl @@ -8,7 +8,7 @@ Overview | Send troops | Combat Simulator goldclub==1){ ?>| - Farmlist + Gold Club goldclub) { Overview | Send troops | Combat Simulator goldclub==1){ ?>| - Farmlist + Gold Club diff --git a/Templates/Plus/3.tpl b/Templates/Plus/3.tpl index fed9c886..4fd30282 100644 --- a/Templates/Plus/3.tpl +++ b/Templates/Plus/3.tpl @@ -455,7 +455,7 @@ if (mysql_num_rows($MyGold)) { Gold Club
-Gold Club including: farmlist, merchants run three times, crop finder, master builder, trade routes and automatic send away troops before an attack. +Gold Club including: farmlist, merchants run three times, crop finder, master builder, trade routes, raid statistics and automatic send away troops before an attack. diff --git a/allianz.php b/allianz.php index de7ea319..df98af46 100644 --- a/allianz.php +++ b/allianz.php @@ -277,5 +277,5 @@ if($_GET['aid'] or $session->alliance!=0){ uid); } \ No newline at end of file diff --git a/build.php b/build.php index 325a0d74..34b5a6e4 100644 --- a/build.php +++ b/build.php @@ -180,6 +180,8 @@ if(isset($_GET['id'])) { include("Templates/Build/".$village->resarray['f'.$_GET['id'].'t'].".tpl"); } } +}else{ +header("Location: dorf1.php"); } ?>