fix WW villages and buildingplan create

This commit is contained in:
unknown
2012-08-03 15:22:39 +03:00
parent 98ecb39984
commit b6d9dc3370
6 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -36,13 +36,14 @@ if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
<center><b>Create WW Buildingplan villages?</b></center>
<center><br /><input class="give_gold" name="vill_amount" id="vill_amount" value="20" maxlength="4">&nbsp;<font color="gray" size="1">insert number of Villages and press 'enter'</center></form>
<center><br /><input class="give_gold" name="vill_amount" id="vill_amount" value="20" maxlength="4">&nbsp;<font color="gray" size="1">insert number of Villages and press 'enter'</center>
<tr>
<td><label><input class="radio" type="radio" name="kid" value="1" checked>&nbsp;<?php echo NW; ?> <b>(-|+)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="2">&nbsp;<?php echo NE; ?> <b>(+|+)</b></label></td>
<td><label><input class="radio" type="radio" name="kid" value="3">&nbsp;<?php echo SW; ?> <b>(-|-)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="4">&nbsp;<?php echo SE; ?> <b>(+|-)</b></label></td>
</tr>
</form>
<?php
if(isset($_GET['g'])) {
+2 -1
View File
@@ -36,13 +36,14 @@ if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
<center><b>Create World Wonder villages?</b></center>
<center><br /><input class="give_gold" name="vill_amount" id="vill_amount" value="20" maxlength="4">&nbsp;<font color="gray" size="1">insert number of Wonders and press 'enter'</center></form>
<center><br /><input class="give_gold" name="vill_amount" id="vill_amount" value="20" maxlength="4">&nbsp;<font color="gray" size="1">insert number of Wonders and press 'enter'</center>
<tr>
<td><label><input class="radio" type="radio" name="kid" value="1" checked>&nbsp;<?php echo NW; ?> <b>(-|+)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="2">&nbsp;<?php echo NE; ?> <b>(+|+)</b></label></td>
<td><label><input class="radio" type="radio" name="kid" value="3">&nbsp;<?php echo SW; ?> <b>(-|-)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="4">&nbsp;<?php echo SE; ?> <b>(+|-)</b></label></td>
</tr>
</form>
<?php
if(isset($_GET['g'])) {
@@ -68,6 +68,7 @@ NOTE: If the above criteria is not met during the attack, the next attack on tha
To build a Treasure Chamber (Treasury), you will need a Main Building level 10 and the village MUST NOT be a Capital or contain a World Wonder.
To build a World Wonder, you must own the Construction Plans yourself (you = the World Wonder Village Owner) from level 0 to 50, and then from level 51 to 100 you will need an additional set of Construction Plans in your Alliance! Two sets of Construction Plans in the World Wonder Village Account will not work!" ,$text);
$text = utf8_encode($text);
fwrite($fh, $text);
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";
+1 -1
View File
@@ -1,4 +1,4 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
+1
View File
@@ -449,6 +449,7 @@ To build a WW, you must own a plan yourself (you = the WW village owner) from lv
The construction plans are conquerable immediately when they appear to the server.
There will be a countdown in game, showing the exact time of the release, 5 days prior to the launch." ,$text);
$text = utf8_encode($text);
fwrite($fh, $text);
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";
+1
View File
@@ -43,6 +43,7 @@ if (@isset($_POST['confirm']))
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: templates/text.tpl");
$text = file_get_contents("Templates/text_format.tpl");
$text = preg_replace("'%TEKST%'",$_SESSION['m_message'] ,$text);
$text = utf8_encode($text);
fwrite($fh, $text);
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";