mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 13:51:00 +00:00
The first release of the refactored version
It's still a work in progress, there are a lot of things that will change in the final release
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<Files ~ "\.tpl$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
||||
@@ -0,0 +1,143 @@
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php include("menu.tpl"); ?>
|
||||
<form action="spieler.php" method="POST">
|
||||
<input type="hidden" name="ft" value="p3">
|
||||
<table cellpadding="1" cellspacing="1" id="change_pass" class="account">
|
||||
<thead><tr>
|
||||
<th colspan="2">Change password</th>
|
||||
</tr></thead><tbody>
|
||||
<tr>
|
||||
<th>Old password</th>
|
||||
<td><input class="text" type="password" name="pw1" maxlength="30" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>New password</th>
|
||||
<td><input class="text" type="password" name="pw2" maxlength="30" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>New password</th>
|
||||
<td><input class="text" type="password" name="pw3" maxlength="30" /></td>
|
||||
</tr></tbody></table>
|
||||
<?php
|
||||
if(!empty($passError = $form->getError("pw"))) {
|
||||
echo "<span class=\"error\">".$passError."</span>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="change_mail" class="account"><thead><tr>
|
||||
<th colspan="2">Change email</th>
|
||||
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td class="note" colspan="2">Please enter your old and your new e-mail addresses. You will then receive a code snippet at both e-mail addresses which you have to enter here.</td></tr>
|
||||
<tr>
|
||||
<th>Old email</th>
|
||||
<td><input class="text" type="text" name="email_alt" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>New email</th>
|
||||
<td><input class="text" type="text" name="email_neu" /></td>
|
||||
</tr></tbody></table>
|
||||
<?php
|
||||
if(!empty($emailError = $form->getError("email"))) {
|
||||
echo "<span class=\"error\">".$emailError."</span>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="sitter" class="account"><thead>
|
||||
<tr>
|
||||
<th colspan="2">Account sitters</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td class="note" colspan="2">A sitter can log into your account by using your name and his/her password. You can have up to two sitters.</td>
|
||||
</tr>
|
||||
<?php
|
||||
$count = 0;
|
||||
if($session->userinfo['sit1'] != 0) $count +=1; if($session->userinfo['sit2'] !=0) $count += 1;
|
||||
if($count < 2) {
|
||||
?>
|
||||
<tr>
|
||||
<th>Name of the sitter</th>
|
||||
<td><input class="text" type="text" name="v1" maxlength="15"><span class="count">(<?php echo $count; ?>/2)</span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?><tr><td colspan="2" class="sitter">
|
||||
<?php if($count == 0) { echo "<span class=\"none\">You have no sitters.</span></td>"; }
|
||||
if($session->userinfo['sit1'] != 0) {
|
||||
echo "<div>";
|
||||
echo "<a href=\"spieler.php?s=3&e=3&id=".$session->userinfo['sit1']."&a=".$session->checker."&type=1\"><img class=\"del\" src=\"img/x.gif\" title=\"Remove sitters\" alt=\"Remove sitters\" /></a>";
|
||||
echo "<a href=\"spieler.php?uid=".$session->userinfo['sit1']."\">".$database->getUserField($session->userinfo['sit1'],"username",0)."</a>";
|
||||
echo "</div>";
|
||||
}
|
||||
if($session->userinfo['sit2'] != 0) {
|
||||
echo "<div>";
|
||||
echo "<a href=\"spieler.php?s=3&e=3&id=".$session->userinfo['sit2']."&a=".$session->checker."&type=2\"><img class=\"del\" src=\"img/x.gif\" title=\"Remove sitters\" alt=\"Remove sitters\" /></a>";
|
||||
echo "<a href=\"spieler.php?uid=".$session->userinfo['sit2']."\">".$database->getUserField($session->userinfo['sit2'],"username",0)."</a>";
|
||||
echo "</div>";
|
||||
}
|
||||
?></tr>
|
||||
<tr><td class="note" colspan="2">You have been entered as sitter on the following accounts. You can cancel this by clicking the red X.</td></tr><tr><td colspan="2" class="sitter">
|
||||
<?php
|
||||
$sitee = $database->getSitee($session->uid);
|
||||
if(count($sitee) == 0) {
|
||||
echo "<span class=\"none\">You have no sitters.</span>";
|
||||
}
|
||||
else {
|
||||
foreach($sitee as $sit) {
|
||||
echo "<div>";
|
||||
echo "<a href=\"spieler.php?s=3&e=2&id=".$sit['id']."&a=".$session->checker."\"><img class=\"del\" src=\"img/x.gif\" title=\"Remove sitters\" alt=\"Remove sitters\" /></a>";
|
||||
echo "<a href=\"spieler.php?uid=".$sit['id']."\">".$database->getUserField($sit['id'],"username",0)."</a>";
|
||||
echo "</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td></tr></table>
|
||||
<?php
|
||||
if(!empty($sitterError = $form->getError("sit"))) {
|
||||
echo "<span class=\"error\">".$sitterError."</span>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="del_acc" class="account"><thead>
|
||||
<tr>
|
||||
<th colspan="2">Delete account</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="note" colspan="2">You can delete your account here. After starting the cancellation it will take three days to complete the cancellation of your account. You can cancel this process within the first 24 hours.</td>
|
||||
</tr><tr>
|
||||
<?php
|
||||
$timestamp = $database->isDeleting($session->uid);
|
||||
if($timestamp) {
|
||||
echo "<td colspan=\"2\" class=\"count\">";
|
||||
echo "<a href=\"spieler.php?s=3&id=".$session->uid."&a=1&e=4\"><img
|
||||
class=\"del\" src=\"img/x.gif\" alt=\"Cancel process\"
|
||||
title=\"Cancel process\" /> </a>";
|
||||
$time=$generator->getTimeFormat(($timestamp-time()));
|
||||
echo "The account will be deleted in <span
|
||||
class=\"timer\">".$time."</span> .</td>";
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<th>Delete account?</th>
|
||||
<td class="del_selection">
|
||||
<label><input class="radio" type="radio" name="del" value="1" /> Yes</label>
|
||||
<label><input class="radio" type="radio" name="del" value="0" checked /> No</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Confirm with password:</th>
|
||||
|
||||
<td><input class="text" type="password" name="del_pw" maxlength="30" /></td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php
|
||||
if(!empty($deleteError = $form->getError("del"))) {
|
||||
echo "<span class=\"error\">".$deleteError."</span>";
|
||||
}
|
||||
?>
|
||||
<p class="btn"><input type="image" value="" name="s1" id="btn_save" class="dynamic_img" src="img/x.gif" alt="save" /></p>
|
||||
</form>
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php if(GP_ENABLE) {
|
||||
?>
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php include("menu.tpl"); ?>
|
||||
<?php if(isset($_POST["custom_url"])) {
|
||||
$database->updateUserField($session->uid,gpack,$_POST["custom_url"],1);
|
||||
} ?>
|
||||
<?php if(isset($_GET["custom_url"])) {
|
||||
?>
|
||||
<link href="<?php echo $_GET["custom_url"]; ?>lang/en/gp_check.css" rel="stylesheet" type="text/css">
|
||||
<div id="gpack_popup">
|
||||
|
||||
<div id="gpack_error">
|
||||
<img class="logo unknown" src="img/x.gif" alt="unknown" title="unknown"><span class="error">Graphic Pack could not be found. This could be due to the following reasons:</span><br>
|
||||
<ul>
|
||||
<li>The path must be set to the folder that contains the file '<b>travian.css</b>' and the folders '<b>img</b>', '<b>lang</b>' and '<b>modules</b>'.</li>
|
||||
<li>Your browser does not support Graphic Packs hosted on your computer and needs them to be online, with a path starting with '<b>http://</b>'.</li>
|
||||
</ul> <form action="spieler.php" method="post">
|
||||
<input type="hidden" name="s" value="4">
|
||||
<div class="btn"><button alt="OK" value="ok" class="trav_buttons" id="btn_ok"> OK </button></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="gpack_activate">
|
||||
<span class="info">Graphic Pack found.</span><br>
|
||||
<img id="preview" src="img/x.gif"><br>
|
||||
|
||||
The path '<span class="path"><?php echo $_GET["custom_url"]; ?></span>' shows an allowed Graphic Pack. Save your choice to activate the Graphic Pack. You can change this setting at any time.
|
||||
|
||||
<form action="spieler.php" method="post">
|
||||
<input type="hidden" name="s" value="4">
|
||||
<input type="hidden" name="custom_url" value="<?php echo $_GET["custom_url"]; ?>">
|
||||
<div class="btn"><button alt="save" value="save" class="trav_buttons" id="btn_save" name="gp_activate_button"> Save </button></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<form action="spieler.php" method="post" name="gp_selection">
|
||||
<input type="hidden" name="s" value="4" />
|
||||
<table cellpadding="1" cellspacing="1" id="gpack">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Graphic pack settings</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="info">
|
||||
With a graphic pack you can alter the appearance of Travian. You can choose one from the list or provide the path to a graphic pack on your computer. By using a local graphic pack you may reduce page loading time for every page request.<br />
|
||||
<span class="alert">ATTENTION! Use only trustworthy graphic packs</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="empty"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>
|
||||
|
||||
<input type="radio" class="radio" name="gp_type" value="custom" checked="checked" />
|
||||
User-defined graphic pack </label>
|
||||
<input class="text" type="text" name="custom_url" value="<?php echo $session->gpack; ?>" onclick="document.gp_selection.gp_type[1].checked = true" /><br />
|
||||
<div class="example">Example: <span class="path">file:///C:/Travian/gpack/</span> or <span class="path">http://www.travian.org/user/gpack/</span></div>
|
||||
<center><div class="example">Default: <span class="path"><?php echo GP_LOCATE; ?></span></div></center>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="btn"><button alt="OK" name="gp_selection_button" value="ok" class="trav_buttons" id="btn_ok" /> OK </button></p>
|
||||
</form>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="download">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th colspan="4">More graphic packs</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Size in MB</td>
|
||||
<td>Activate</td>
|
||||
<td>Download</td>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="nam">Travian Default</td>
|
||||
<td class="size">4</td>
|
||||
<td class="act"><a href="spieler.php?s=4&gp_type=custom&custom_url=gpack/travian_default/">Activate</a></td>
|
||||
|
||||
<td class="down"><a href="gpack/download/travian_default.zip" target="_blank">Download</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?uid=".$session->uid);
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,198 @@
|
||||
<?php
|
||||
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 01.09.2013 ##
|
||||
## Filename medal.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## Fixed by: Shadow / Skype : cata7007 ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
//gp link
|
||||
$separator=isset($separator)? $separator:"";
|
||||
$gpack_load=isset($user['gpack'])? $user['gpack']:$database->getUserField($_SESSION['username'], 'gpack', 1);
|
||||
if($gpack_load== null || GP_ENABLE == false) {
|
||||
$gpack= $separator.GP_LOCATE;
|
||||
} else {
|
||||
$gpack= $separator.$gpack_load;
|
||||
}
|
||||
|
||||
//de bird
|
||||
if($displayarray['protect'] > time()){
|
||||
$secondsDiff = $displayarray['protect'] - time();
|
||||
$remainingDay = floor($secondsDiff/(3600*24));
|
||||
|
||||
$left = \App\Utils\DateTime::getTimeFormat($secondsDiff);
|
||||
$profiel = preg_replace("/\[#0]/is",'<img src="'.$gpack.'img/t/tn.gif" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>This player has '.$left.' hours of beginners protection left.</td></tr></table>\')">', $profiel, 1);
|
||||
} else {
|
||||
$geregistreerd=date('d.m.Y', ($displayarray['regtime']));
|
||||
$profiel = preg_replace("/\[#0]/is",'<img src="'.$gpack.'img/t/tnd.gif" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>This player registered his account on '.$geregistreerd.'.</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
//natar image
|
||||
if($displayarray['username'] == "Natars"){
|
||||
$profiel = preg_replace("/\[#natars]/is",'<img src="'.$gpack.'img/t/t10_2.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Natar account</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#WW]/is",'<img src="'.$gpack.'img/t/g40_11-ltr.png" width="250" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official World Wonder Village</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if(NEW_FUNCTIONS_TRIBE_IMAGES){
|
||||
if($displayarray['tribe'] == "1"){
|
||||
$profiel = preg_replace("/\[#roman]/is",'<img src="'.$gpack.'../../img/rpage/Roman1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Romans : Because of its high level of social and technological development the Romans are masters at building and its coordination. Also, their troops are part of the elite in Travian. They are very balanced and useful in attacking and defending.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['tribe'] == "2"){
|
||||
$profiel = preg_replace("/\[#teuton]/is",'<img src="'.$gpack.'../../img/rpage/Teuton1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Teutons : The Teutons are the most aggressive tribe. Their troops are notorious and feared for their rage and frenzy when they attack. They move around as a plundering horde, not even afraid of death. </td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['tribe'] == "3"){
|
||||
$profiel = preg_replace("/\[#gaul]/is",'<img src="'.$gpack.'../../img/rpage/Gaul1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Gauls : The Gauls are the most peaceful of all three tribes in Travian. Their troops are trained for an excellent defence, but their ability to attack can still compete with the other two tribes. The Gauls are born riders and their horses are famous for their speed. This means that their riders can hit the enemy exactly where they can cause the most damage and swiftly take care of them.</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
//Shadow image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($displayarray['username'] == "Shadow"){
|
||||
$profiel = preg_replace("/\[#SHADOW]/is",'<img src="'.$gpack.'img/t/shadow.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Administrator</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#EVENT]/is",'<img src="'.$gpack.'img/t/t10_1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>You played on Travian Hammelburg Event. Congrats !</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
// WW Winner IMAGES - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($displayarray['username'] == "Shadow"){
|
||||
$profiel = preg_replace("/\[#WWBUILDER]/is",'<img src="'.$gpack.'img/t/builderWW.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Country:</td><td>Romania</td></tr><tr><td>Category:</td><td>World of Wonder</td></tr><tr><td>Name:</td><td>Shadow</td></tr><tr><td>Tribe:</td><td>Romans</td></tr><tr><td>WW LEVEL:</td><td>80</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#WINNERWW]/is",'<img src="'.$gpack.'img/t/winnerww.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Country:</td><td>Romania</td></tr><tr><td>Category:</td><td>World of Wonder</td></tr><tr><td>Name:</td><td>Shadow</td></tr><tr><td>Tribe:</td><td>Romans</td></tr><tr><td>WW LEVEL:</td><td>100</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#OFFENSIVE]/is",'<img src="'.$gpack.'img/t/Offensive_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Country:</td><td>Romania</td></tr><tr><td>Category:</td><td>Offensive</td></tr><tr><td>Name:</td><td>Shadow</td></tr><tr><td>Tribe:</td><td>Romans</td></tr><tr><td>Rank:</td><td>1</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#DEFENSIVE]/is",'<img src="'.$gpack.'img/t/Defensive_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Country:</td><td>Romania</td></tr><tr><td>Category:</td><td>Defensive</td></tr><tr><td>Name:</td><td>Shadow</td></tr><tr><td>Tribe:</td><td>Romans</td></tr><tr><td>Rank:</td><td>1</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#POPULATION]/is",'<img src="'.$gpack.'img/t/Population_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Country:</td><td>Romania</td></tr><tr><td>Category:</td><td>Population</td></tr><tr><td>Name:</td><td>Shadow</td></tr><tr><td>Tribe:</td><td>Romans</td></tr><tr><td>Rank:</td><td>1</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if(NEW_FUNCTIONS_MHS_IMAGES){
|
||||
if($displayarray['access'] == "9"){
|
||||
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'<img src="'.$gpack.'img/t/t6_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Global Multihunter</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['access'] == "8"){
|
||||
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'<img src="'.$gpack.'img/t/t6_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Global Multihunter</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
//NATURE image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($displayarray['username'] == "Nature"){
|
||||
$profiel = preg_replace("/\[#NATURE]/is",'<img src="'.$gpack.'img/t/nature.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Natures troops are the animals living in unoccupied oases. You can use the combat simulator to see whether you have enough troops to defeat the animals in an oasis you want to conquer, but remember that you can only raid oasis. Keep in mind that all the animals above Bear can kill its contemporary max tier travian troop in single combat. </td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
//Taskmaster image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($displayarray['username'] == "Taskmaster"){
|
||||
$profiel = preg_replace("/\[#TASKMASTER]/is",'<img src="'.$gpack.'img/t/taskmaster.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Taskmaster Account</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
//de lintjes
|
||||
/******************************
|
||||
INDELING CATEGORIEEN:
|
||||
===============================
|
||||
== 1. Aanvallers top 10 ==
|
||||
== 2. Defence top 10 ==
|
||||
== 3. Klimmers top 10 ==
|
||||
== 4. Overvallers top 10 ==
|
||||
== 5. In att en def tegelijk ==
|
||||
== 6. in top 3 - aanval ==
|
||||
== 7. in top 3 - verdediging ==
|
||||
== 8. in top 3 - klimmers ==
|
||||
== 9. in top 3 - overval ==
|
||||
******************************/
|
||||
|
||||
foreach($varmedal as $medal) {
|
||||
|
||||
switch ($medal['categorie']) {
|
||||
case "1":
|
||||
$titel="Attackers of the Week";
|
||||
$woord="Points";
|
||||
break;
|
||||
case "2":
|
||||
$titel="Defenders of the Week";
|
||||
$woord="Points";
|
||||
break;
|
||||
case "3":
|
||||
$titel="Pop Climbers of the week";
|
||||
$woord="Pop";
|
||||
break;
|
||||
case "4":
|
||||
$titel="Robbers of the week";
|
||||
$woord="Resources";
|
||||
break;
|
||||
case "5":
|
||||
$titel="Receiving this medal shows that you where in the top 10 of both Attackers and Defenders of the week.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "6":
|
||||
$titel="Receiving this medal shows that you were in the top 3 Attackers of the week ".$medal['points']." in a row";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "7":
|
||||
$titel="Receiving this medal shows that you were in the top 3 Defenders of the week ".$medal['points']." in a row";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "8":
|
||||
$titel="Receiving this medal shows that you were in the top 3 Pop Climbers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "9":
|
||||
$titel="Receiving this medal shows that you were in the top 3 Robbers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "10":
|
||||
$titel="Rank Climbers of the week.";
|
||||
$woord="Ranks";
|
||||
break;
|
||||
case "11":
|
||||
$titel="Receiving this medal shows that you were in the top 3 Rank Climbers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "12":
|
||||
$titel="Receiving this medal shows that you were in the top 10 Attackers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "13":
|
||||
$titel="Receiving this medal shows that you were in the top 10 Defenders of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "14":
|
||||
$titel="Receiving this medal shows that you were in the top 10 Pop Climbers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "15":
|
||||
$titel="Receiving this medal shows that you were in the top 10 Robbers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
case "16":
|
||||
$titel="Receiving this medal shows that you were in the top 10 Rank Climbers of the week ".$medal['points']." in a row.";
|
||||
$bonus[$medal['id']]=1;
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(isset($bonus[$medal['id']])){
|
||||
$profiel = preg_replace("/\[#".$medal['id']."]/is",'<img src="'.$gpack.'img/t/'.$medal['img'].'.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>'.$titel.'<br /><br />Received in week: '.$medal['week'].'</td></tr></table>\')">', $profiel, 1);
|
||||
} else {
|
||||
$profiel = preg_replace("/\[#".$medal['id']."]/is",'<img src="'.$gpack.'img/t/'.$medal['img'].'.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Category:</td><td>'.$titel.'</td></tr><tr><td>Week:</td><td>'.$medal['week'].'</td></tr><tr><td>Rank:</td><td>'.$medal['plaats'].'</td></tr><tr><td>'.$woord.':</td><td>'.$medal['points'].'</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<div id="textmenu">
|
||||
<a href="spieler.php?uid=<?php if(isset($_GET['uid'])) { echo $_GET['uid']; } else { echo $session->uid; } ?>" <?php if(isset($_GET['uid'])) { echo "class=\"selected\""; } ?>>Overview</a>
|
||||
| <a href="spieler.php?s=1" <?php if(isset($_GET['s']) && $_GET['s'] == 1) { echo "class=\"selected\""; } ?>>Profile</a>
|
||||
| <a href="spieler.php?s=2" <?php if(isset($_GET['s']) && $_GET['s'] == 2) { echo "class=\"selected\""; } ?>>Preferences</a>
|
||||
| <a href="spieler.php?s=3" <?php if(isset($_GET['s']) && $_GET['s'] == 3) { echo "class=\"selected\""; } ?>>Account</a>
|
||||
<?php
|
||||
if(NEW_FUNCTIONS_VACATION){
|
||||
?>
|
||||
| <a href="spieler.php?s=5" <?php if(isset($_GET['s']) && $_GET['s'] == 5) { echo "class=\"selected\""; } ?>>Vacation</a>
|
||||
<?php
|
||||
}
|
||||
if(GP_ENABLE) {
|
||||
?>
|
||||
| <a href="spieler.php?s=4" <?php if(isset($_GET['s']) && $_GET['s'] == 4) { echo "class=\"selected\""; } ?>>Graphic pack</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<div id="textmenu">
|
||||
<a href="spieler.php?uid=<?php if(isset($_GET['uid'])) { echo $_GET['uid']; } else { echo $session->uid; } ?>" <?php if(isset($_GET['uid'])) { echo "class=\"selected\""; } ?>>Overview</a>
|
||||
| <span class=none><b>Profile</b></span>
|
||||
| <span class=none><b>Preferences</b></span>
|
||||
| <span class=none><b>Account</b></span>
|
||||
<?php
|
||||
if(GP_ENABLE) {
|
||||
?>
|
||||
| <span class=none><b>Graphic pack</b></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
header("Location: dorf1.php");
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 01.09.2013 ##
|
||||
## Filename overview.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## Fixed by: Shadow / Skype : cata7007 ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: http://github.com/Shadowss/TravianZ/ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
$ranking->procRankReq($_GET, $session->uid, $village->wid);
|
||||
$_GET['uid'] = preg_replace("/[^0-9]/","",$_GET['uid']);
|
||||
$displayarray = $database->getUserArray($_GET['uid'],1);
|
||||
|
||||
|
||||
$varmedal = $database->getProfileMedal($_GET['uid']);
|
||||
|
||||
$profiel="".$displayarray['desc1']."".md5('skJkev3')."".$displayarray['desc2']."";
|
||||
require("medal.php");
|
||||
$profiel=explode("".md5('skJkev3')."", $profiel);
|
||||
|
||||
$varray = $database->getProfileVillages($_GET['uid']);
|
||||
$totalpop = 0;
|
||||
foreach($varray as $vil) {
|
||||
$totalpop += $vil['pop'];
|
||||
}
|
||||
?>
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php
|
||||
if($_GET['uid'] == $session->uid) {
|
||||
if($session->sit == 0){
|
||||
include("menu.tpl");
|
||||
}else{
|
||||
include("menu2.tpl");
|
||||
}
|
||||
}
|
||||
?>
|
||||
<table id="profile" cellpadding="1" cellspacing="1" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Player <?php echo $displayarray['username']; ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
if($displayarray['access'] == ADMIN) echo "<tr><th colspan='2'><font color='Red'><center><b>This player is Admin.</b></font></center></th></tr>";
|
||||
if($displayarray['access'] == MULTIHUNTER) echo "<tr><th colspan='2'><font color='Blue'><center><b>This player is Multihunter.</b></font></center></th></tr>";
|
||||
if($displayarray['access'] == BANNED) echo "<tr><th colspan='2'><font color='Green'><center><b>This player is BANNED.</b></font></center></th></tr>";
|
||||
if($displayarray['vac_mode'] == 1) echo "<tr><th colspan='2'><font color='Maroon'><center><b>This player is on VACATION.</b></font></center></th></tr>";
|
||||
?>
|
||||
<tr>
|
||||
<td>Details</td>
|
||||
<td>Description</td>
|
||||
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="empty"></td><td class="empty"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
|
||||
<?php if($displayarray['access'] == BANNED){ echo "<tr><td colspan='2'><center><b>Banned</b></center></td></tr>"; } ?>
|
||||
|
||||
<tr>
|
||||
|
||||
<th>Rank</th>
|
||||
<td><?php echo $ranking->getUserRank($displayarray['id']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tribe</th>
|
||||
<td><?php
|
||||
$tribeArrays = [TRIBE1, TRIBE2, TRIBE3, TRIBE4, TRIBE5];
|
||||
echo $tribeArrays[$displayarray['tribe'] - 1];
|
||||
?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Alliance</th>
|
||||
<td><?php
|
||||
if($displayarray['alliance'] == 0) echo "-";
|
||||
else
|
||||
{
|
||||
$displayalliance = $database->getAllianceName($displayarray['alliance']);
|
||||
echo "<a href=\"allianz.php?aid=".$displayarray['alliance']."\">".$displayalliance."</a>";
|
||||
} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Villages</th>
|
||||
<td><?php echo count($varray);?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Population</th>
|
||||
<td><?php echo $totalpop; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
//Date of Birth
|
||||
if(isset($displayarray['birthday']) && $displayarray['birthday'] != 0) {
|
||||
$age = date('Y') - substr($displayarray['birthday'], 0, 4);
|
||||
if ((date('m') - substr($displayarray['birthday'], 5, 2)) < 0) $age --;
|
||||
elseif ((date('m') - substr($displayarray['birthday'], 5, 2)) == 0){
|
||||
if(date('d') < substr($displayarray['birthday'], 8, 2)) $age --;
|
||||
}
|
||||
echo "<tr><th>Age</th><td>$age</td></tr>";
|
||||
}
|
||||
//Gender
|
||||
if(isset($displayarray['gender']) && $displayarray['gender'] != 0) {
|
||||
$gender = ($displayarray['gender']== 1)? "Male" : "Female";
|
||||
echo "<tr><th>Gender</th><td>".$gender."</td></tr>";
|
||||
}
|
||||
//Location
|
||||
if($displayarray['location'] != "") {
|
||||
echo "<tr><th>Location</th><td>".$displayarray['location']."</td></tr>";
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2" class="empty"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if(preg_replace("/[^0-9]/","",$_GET['uid']) == $session->uid) {
|
||||
if($session->sit == 0){
|
||||
echo "<td colspan=\"2\"> <a href=\"spieler.php?s=1\">» Change profile</a></td>";
|
||||
}else{
|
||||
echo "<td colspan=\"2\"> <span class=none><b>» Change profile</b></span></td>";
|
||||
}
|
||||
} else {
|
||||
echo "<td colspan=\"2\"> <a href=\"nachrichten.php?t=1&id=".$_GET['uid']."\">» Write message</a></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<!--<tr><td colspan="2"><a href="nachrichten.php?t=1&id=0"><font color="Red">» Report Player</font></a></td></tr>-->
|
||||
<tr>
|
||||
<td colspan="2" class="desc2">
|
||||
<div class="desc2div"><?php echo nl2br($profiel[0]); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td class="desc1" >
|
||||
<div class="desc1div"><?php echo nl2br($profiel[1]); ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="villages">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="<?php echo NEW_FUNCTIONS_OASIS ? 4 : 3; ?>">Villages</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<?php if(NEW_FUNCTIONS_OASIS){ ?>
|
||||
<td>Oasis</td>
|
||||
<?php } ?>
|
||||
<td>Inhabitants</td>
|
||||
<td>Coordinates</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($varray as $vil) {
|
||||
$hasArtifact = $database->villageHasArtefact($vil['wref']);
|
||||
$coor = $database->getCoor($vil['wref']);
|
||||
echo "<tr><td class=\"nam\"><a href=\"karte.php?d=".$vil['wref']."&c=".$generator->getMapCheck($vil['wref'])."\">".$vil['name']."</a>";
|
||||
if($vil['capital'] == 1) echo "<span class=\"none3\"> (capital)</span>";
|
||||
if(NEW_FUNCTIONS_DISPLAY_ARTIFACT){
|
||||
if($hasArtifact) echo "<span class=\"none3\"> (artifact)</span>";
|
||||
}
|
||||
|
||||
if(NEW_FUNCTIONS_OASIS){
|
||||
echo "<td class=\"hab\">";
|
||||
$oases = $database->getOasis($vil['wref']);
|
||||
foreach ($oases as $oasis) {
|
||||
switch ($oasis['type']) {
|
||||
case 1:
|
||||
case 2:
|
||||
echo "<img class='r100' src='img/x.gif' title='+25% Lumber'> ";
|
||||
break;
|
||||
case 3:
|
||||
echo "<img class='r200' src='img/x.gif' title='+25% Lumber +25% Crop'> ";
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
echo "<img class='r400' src='img/x.gif' title='+25% Clay'> ";
|
||||
break;
|
||||
case 6:
|
||||
echo "<img class='r500' src='img/x.gif' title='+25% Clay +25% Crop'> ";
|
||||
break;
|
||||
case 7:
|
||||
case 8:
|
||||
echo "<img class='r700' src='img/x.gif' title='+25% Iron'> ";
|
||||
break;
|
||||
case 9:
|
||||
echo "<img class='r800' src='img/x.gif' title='+25% Iron +25% Crop'> ";
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
echo "<img class='r1000' src='img/x.gif' title='+25% Crop'> ";
|
||||
break;
|
||||
case 12:
|
||||
echo "<img class='r1100' src='img/x.gif' title='+50% Crop'> ";
|
||||
break;
|
||||
}
|
||||
}
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td class=\"hab\">".$vil['pop']."</td><td class=\"aligned_coords\">";
|
||||
echo "<div class=\"cox\">(".$coor['x']."</div><div class=\"pi\">|</div><div class=\"coy\">".$coor['y'].")</div></td></tr>";
|
||||
}
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
@@ -0,0 +1,248 @@
|
||||
<?php
|
||||
if(isset($_GET['del']) && is_numeric($_GET['del'])){
|
||||
$database->removeLinks($_GET['del'],$session->uid);
|
||||
header("Location: spieler.php?s=2");
|
||||
exit;
|
||||
}
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 01.09.2013 ##
|
||||
## Filename preference.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## Fixed by: Shadow / Skype : cata7007 ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
// Save new link or just edit a link
|
||||
if($_POST) {
|
||||
$links = [];
|
||||
|
||||
// let's do some complicated code x'D
|
||||
foreach($_POST as $key => $value) {
|
||||
if(substr($key, 0, 2) == 'nr') {
|
||||
$i = substr($key, 2);
|
||||
$links[$i]['nr'] = mysqli_real_escape_string($database->dblink, $value);
|
||||
}
|
||||
|
||||
if(substr($key, 0, 2) == 'id') {
|
||||
$i = substr($key, 2);
|
||||
$links[$i]['id'] = mysqli_real_escape_string($database->dblink, $value);
|
||||
}
|
||||
|
||||
if(substr($key, 0, 8) == 'linkname') {
|
||||
$i = substr($key, 8);
|
||||
$links[$i]['linkname'] = mysqli_real_escape_string($database->dblink, $value);
|
||||
}
|
||||
|
||||
if(substr($key, 0, 8) == 'linkziel') {
|
||||
$i = substr($key, 8);
|
||||
$links[$i]['linkziel'] = mysqli_real_escape_string($database->dblink, $value);
|
||||
}
|
||||
}
|
||||
|
||||
// Save
|
||||
foreach($links as $link) {
|
||||
settype($link['nr'], 'int');
|
||||
|
||||
if(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) == '') {
|
||||
// Add new link
|
||||
$userid = (int) $session->uid;
|
||||
$query = mysqli_query($database->dblink,'INSERT INTO `' . TB_PREFIX . 'links` (`userid`, `name`, `url`, `pos`) VALUES (' . $userid . ', \'' . $link['linkname'] . '\', \'' . $link['linkziel'] . '\', ' . $link['nr'] . ')');
|
||||
|
||||
} elseif(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) != '') {
|
||||
// Update link
|
||||
$query = mysqli_query($database->dblink,'SELECT userid FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']);
|
||||
$data = mysqli_fetch_assoc($query);
|
||||
|
||||
// May the user update this entry?
|
||||
if($data['userid'] == $session->uid) {
|
||||
$query2 = mysqli_query($database->dblink,'UPDATE `' . TB_PREFIX . 'links` SET `name` = \'' . $link['linkname'] . '\', `url` = \'' . $link['linkziel'] . '\', `pos` = ' . $link['nr'] . ' WHERE `id` = ' . $link['id']);
|
||||
}
|
||||
} elseif(trim($link['nr']) == '' AND trim($link['linkname']) == '' AND trim($link['linkziel']) == '' AND trim($link['id']) != '') {
|
||||
// Delete entry
|
||||
$query = mysqli_query($database->dblink,'SELECT userid FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']);
|
||||
$data = mysqli_fetch_assoc($query);
|
||||
|
||||
// May the user delete this entry?
|
||||
if($data['userid'] == $session->uid) {
|
||||
$query2 = mysqli_query($database->dblink,'DELETE FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
echo '<meta http-equiv="refresh" content="0">';
|
||||
}
|
||||
|
||||
|
||||
// Fetch all links
|
||||
$query = mysqli_query($database->dblink,'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . (int) $session->uid . ' ORDER BY `pos` ASC') or die(mysqli_error($database->dblink));
|
||||
$links = [];
|
||||
while($data = mysqli_fetch_assoc($query)) $links[] = $data;
|
||||
?>
|
||||
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php include("menu.tpl"); ?>
|
||||
<form action="spieler.php?s=2" method="POST">
|
||||
<input type="hidden" name="ft" value="p2">
|
||||
<table cellpadding="1" cellspacing="1" id="links">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">Direct links</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Delete</td>
|
||||
<td>No.</td>
|
||||
<td>Link name</td>
|
||||
<td>Link target</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 0; foreach($links as $link): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="spieler.php?del=<?php echo $link['id']; ?>&s=2"><img class="del" src="img/x.gif" alt="delete" title="delete"></a>
|
||||
</td>
|
||||
<td class="nr"><input <?php if(!$session->plus){echo"disabled";} ?> class="text" type="text" name="nr<?php print $i; ?>" value="<?php print $link['pos']; ?>" size="1" maxlength="3" /><input type="hidden" name="id<?php print $i; ?>" value="<?php print $link['id']; ?>" /></td>
|
||||
<td class="nam"><input <?php if(!$session->plus){echo"disabled";} ?> class="text" type="text" name="linkname<?php print $i; ?>" value="<?php print $link['name']; ?>" maxlength="30" /></td>
|
||||
<td class="txt"><input <?php if(!$session->plus){echo"disabled";} ?> class="text" type="text" name="linkziel<?php print $i; ?>" value="<?php print $link['url']; ?>" maxlength="255" /></td>
|
||||
</tr>
|
||||
<?php ++$i; $last_pos = $link['pos']; endforeach; ?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="nr"><input <?php if(!$session->plus){echo"disabled";} ?> class="text" type="text" name="nr<?php print $i; ?>" value="<?php print ($last_pos + 1); ?>" size="1" maxlength="3"></td>
|
||||
<td class="nam"><input <?php if(!$session->plus){echo"disabled";} ?> class="text" type="text" name="linkname<?php print $i; ?>" value="" maxlength="30"></td>
|
||||
<td class="txt"><input <?php if(!$session->plus){echo"disabled";} ?> class="text" type="text" name="linkziel<?php print $i; ?>" value="" maxlength="255"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"><input type="image" value="" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="completion" class="set"><thead>
|
||||
<tr>
|
||||
<th colspan="2">Auto completion</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Used for rally point and marketplace:</td>
|
||||
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="v1" value="1" checked></td>
|
||||
<td>own villages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="v2" value="1" ></td>
|
||||
|
||||
<td>villages of the surroundings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="v3" value="1" ></td>
|
||||
<td>villages from players of the alliance</td>
|
||||
</tr>
|
||||
</tbody></table><table cellpadding="1" cellspacing="1" id="big_map" class="set"><thead>
|
||||
<tr>
|
||||
|
||||
<th colspan="2">Large map</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="map" ></td>
|
||||
<td>Show the large map in an extra window.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table><table cellpadding="1" cellspacing="1" id="report_filter" class="set"><thead>
|
||||
<tr>
|
||||
<th colspan="2">Report filter</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="v4" value="1" ></td>
|
||||
<td>No reports for transfers to own villages.</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="v5" value="1" ></td>
|
||||
<td>No reports for transfers to foreign villages.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sel"><input class="check" type="checkbox" name="v6" value="1" ></td>
|
||||
<td>No reports for transfers from foreign villages.</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><table cellpadding="1" cellspacing="1" id="time" class="set"><thead>
|
||||
<tr>
|
||||
<th colspan="2">Time preferences</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Here you can change Travian's displayed time to fit your time zone.</td>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
|
||||
<tr>
|
||||
<th>Time zones</th>
|
||||
<td><select name="timezone" class="dropdown">
|
||||
<optgroup label="local time zones"><option value="495">Europe</option>
|
||||
<option value="99" selected="selected">UK</option>
|
||||
<option value="492">Turkey</option>
|
||||
<option value="328">Asia/Kolkata</option>
|
||||
<option value="345">Asia/Bangkok</option>
|
||||
|
||||
<option value="257">USA/New York</option>
|
||||
<option value="189">USA/Chicago</option>
|
||||
<option value="474">New Zealand</option></optgroup><optgroup label="general time zones"><option value="12">UTC-11</option>
|
||||
<option value="13">UTC-10</option>
|
||||
<option value="14">UTC-9</option>
|
||||
<option value="15">UTC-8</option>
|
||||
<option value="16">UTC-7</option>
|
||||
|
||||
<option value="17">UTC-6</option>
|
||||
<option value="18">UTC-5</option>
|
||||
<option value="19">UTC-4</option>
|
||||
<option value="20">UTC-3</option>
|
||||
<option value="21">UTC-2</option>
|
||||
<option value="22">UTC-1</option>
|
||||
|
||||
<option value="23">UTC</option>
|
||||
<option value="0">UTC+1</option>
|
||||
<option value="1">UTC+2</option>
|
||||
<option value="2">UTC+3</option>
|
||||
<option value="3">UTC+4</option>
|
||||
<option value="4">UTC+5</option>
|
||||
|
||||
<option value="5">UTC+6</option>
|
||||
<option value="6">UTC+7</option>
|
||||
<option value="7">UTC+8</option>
|
||||
<option value="8">UTC+9</option>
|
||||
<option value="9">UTC+10</option>
|
||||
<option value="10">UTC+11</option>
|
||||
|
||||
<option value="11">UTC+12</option>
|
||||
|
||||
</optgroup></select>
|
||||
|
||||
</td>
|
||||
</tr><tr>
|
||||
<th>Date</th>
|
||||
<td>
|
||||
<label><input class="radio" type="Radio" name="tformat" value="0" checked> EU (dd.mm.yy 24h)</label><br />
|
||||
|
||||
<label><input class="radio" type="Radio" name="tformat" value="1"> US (mm/dd/yy 12h)</label><br />
|
||||
<label><input class="radio" type="Radio" name="tformat" value="2"> UK (dd/mm/yy 12h)</label><br />
|
||||
<label><input class="radio" type="Radio" name="tformat" value="3"> ISO (yy/mm/dd 24h)</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><p class="btn"><input type="image" value="" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 01.09.2013 ##
|
||||
## Filename profile.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## Fixed by: Shadow / Skype : cata7007 ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
$varmedal = $database->getProfileMedal($session->uid);
|
||||
|
||||
include("menu.tpl"); ?>
|
||||
<form action="spieler.php" method="POST">
|
||||
<input type="hidden" name="ft" value="p1" />
|
||||
<input type="hidden" name="id" value="<?php echo (isset($id) ? $id : ''); ?>" />
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="edit" ><thead>
|
||||
<tr>
|
||||
<th colspan="3">Player <?php echo $session->username; ?> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Details</td>
|
||||
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" class="empty"></td><td class="empty"></td></tr>
|
||||
<tr>
|
||||
<?php
|
||||
if($session->userinfo['birthday'] != 0) {
|
||||
$bday = explode("-",$session->userinfo['birthday']);
|
||||
}
|
||||
else {
|
||||
$bday = array('','','');
|
||||
}
|
||||
?>
|
||||
<th>Birthday</th><td class="birth"><input tabindex="1" class="text day" type="text" name="tag" value="<?php echo $bday[2]; ?>" maxlength="2" /> <select tabindex="2" name="monat" size="" class="dropdown">
|
||||
|
||||
<option value="0"></option><option value="1" <?php if($bday[1] == 1) { echo "selected"; } ?>>Jan</option><option value="2"<?php if($bday[1] == 2) { echo "selected"; } ?>>Feb</option><option value="3"<?php if($bday[1] == 3) { echo "selected"; } ?>>Mar</option><option value="4"<?php if($bday[1] == 4) { echo "selected"; } ?>>Apr</option><option value="5"<?php if($bday[1] == 5) { echo "selected"; } ?>>May</option><option value="6"<?php if($bday[1] == 6) { echo "selected"; } ?>>June</option><option value="7"<?php if($bday[1] == 7) { echo "selected"; } ?>>July</option><option value="8"<?php if($bday[1] == 8) { echo "selected"; } ?>>Aug</option><option value="9"<?php if($bday[1] == 9) { echo "selected"; } ?>>Sep</option><option value="10"<?php if($bday[1] == 10) { echo "selected"; } ?>>Oct</option><option value="11"<?php if($bday[1] == 11) { echo "selected"; } ?>>Nov</option><option value="12"<?php if($bday[1] == 12) { echo "selected"; } ?>>Dec</option></select> <input tabindex="3" type="text" name="jahr" value="<?php echo $bday[0]; ?>" maxlength="4" class="text year"></td>
|
||||
<?php
|
||||
$varray = $database->getProfileVillages($session->uid);
|
||||
$rowspan = 7+count($varray);
|
||||
?>
|
||||
<td rowspan="<?php echo $rowspan; ?>" class="desc1"><textarea tabindex="7" name="be1"><?php echo $session->userinfo['desc2']; ?></textarea></td></tr>
|
||||
|
||||
<tr><th>Gender</th>
|
||||
<td class="gend">
|
||||
<label><input class="radio" type="radio" name="mw" value="0" <?php if($session->userinfo['gender'] == 0) { echo "checked"; } ?> tabindex="4">n/a</label>
|
||||
<label><input class="radio" type="radio" name="mw" value="1" <?php if($session->userinfo['gender'] == 1) { echo "checked"; } ?> >m</label>
|
||||
<label><input class="radio" type="radio" name="mw" value="2" <?php if($session->userinfo['gender'] == 2) { echo "checked"; } ?> >f</label>
|
||||
</td></tr>
|
||||
|
||||
<tr><th>Location</th><td><input tabindex="5" type="text" name="ort" value="<?php echo $session->userinfo['location']; ?>" maxlength="30" class="text"></td></tr>
|
||||
|
||||
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<?php
|
||||
for($i=0;$i<=count($varray)-1;$i++) {
|
||||
echo "<tr><th>Village name</th><td><input tabindex=\"6\" type=\"text\" name=\"dname$i\" value=\"".$varray[$i]['name']."\" maxlength=\"30\" class=\"text\"></td></tr>";
|
||||
}
|
||||
?>
|
||||
<tr><td colspan="2" class="desc2"><textarea tabindex="8" name="be2"><?php echo $session->userinfo['desc1']; ?></textarea></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p>
|
||||
<table cellspacing="1" cellpadding="2" class="tbg">
|
||||
<tr><td class="rbg" colspan="4">Medals</td></tr>
|
||||
<tr>
|
||||
<td>Category</td>
|
||||
<td>Rank</td>
|
||||
<td>Week</td>
|
||||
<td>BB-Code</td>
|
||||
</tr>
|
||||
<?php
|
||||
/******************************
|
||||
MEDAL CATEGORY:
|
||||
===============================
|
||||
== 1. Attackers top 10 ==
|
||||
== 2. Defender top 10 ==
|
||||
== 3. Climbers top 10 ==
|
||||
== 4. Robbers top 10 ==
|
||||
== 5. In att and def simultaneously ==
|
||||
== 6. in top 3 - Attacker ==
|
||||
== 7. in top 3 - Defender ==
|
||||
== 8. in top 3 - Climbers ==
|
||||
== 9. in top 3 - Robbers ==
|
||||
******************************/
|
||||
|
||||
|
||||
foreach($varmedal as $medal) {
|
||||
$titel="Bonus";
|
||||
switch ($medal['categorie']) {
|
||||
case "1":
|
||||
$titel="Attacker of the Week";
|
||||
break;
|
||||
case "2":
|
||||
$titel="Defender of the Week";
|
||||
break;
|
||||
case "3":
|
||||
$titel="Pop Climber of the week";
|
||||
break;
|
||||
case "4":
|
||||
$titel="Robber of the week";
|
||||
break;
|
||||
case "5":
|
||||
$titel="Top 10 of both Attackers and Defenders";
|
||||
break;
|
||||
case "6":
|
||||
$titel="Top 3 of Attackers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "7":
|
||||
$titel="Top 3 of Defenders of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "8":
|
||||
$titel="Top 3 of Pop climbers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "9":
|
||||
$titel="Top 3 of Robbers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "10":
|
||||
$titel="Rank Climber of the week";
|
||||
break;
|
||||
case "11":
|
||||
$titel="Top 3 of Rank climbers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "12":
|
||||
$titel="Top 10 of Attackers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "13":
|
||||
$titel="Top 10 of Defenders of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "14":
|
||||
$titel="Top 10 of Pop climbers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "15":
|
||||
$titel="Top 10 of Robbers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
case "16":
|
||||
$titel="Top 10 of Rank climbers of week ".$medal['points']." in a row";
|
||||
break;
|
||||
}
|
||||
echo"<tr>
|
||||
<td> ".$titel."</td>
|
||||
<td>".$medal['plaats']."</td>
|
||||
<td>".$medal['week']."</td>
|
||||
<td>[#".$medal['id']."]</td>
|
||||
</tr>";
|
||||
} ?>
|
||||
<tr>
|
||||
<td>Beginners Protection</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>[#0]</td>
|
||||
</tr>
|
||||
<?php
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if(NEW_FUNCTIONS_TRIBE_IMAGES){
|
||||
if($session->userinfo['tribe'] == 1){
|
||||
echo"<tr><td>Tribe Romans</td><td></td><td></td><td>[#roman]</td></tr>";
|
||||
}elseif($session->userinfo['tribe'] == 2){
|
||||
echo"<tr><td>Tribe Teutons</td><td></td><td></td><td>[#teuton]</td></tr>";
|
||||
}elseif($session->userinfo['tribe'] == 3){
|
||||
echo"<tr><td>Tribe Gauls</td><td></td><td></td><td>[#gaul]</td></tr>";
|
||||
}
|
||||
}
|
||||
if(NEW_FUNCTIONS_MHS_IMAGES){
|
||||
if($session->userinfo['access'] == 9){
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#MULTIHUNTER]</td></tr>";
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
}elseif($session->userinfo['access'] == 8){
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#MULTIHUNTER]</td></tr>";
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
}
|
||||
}
|
||||
if($session->userinfo['username'] == "Shadow"){
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#SHADOW]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#EVENT]</td></tr>";
|
||||
}?>
|
||||
</table></p>
|
||||
|
||||
|
||||
<p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename special.tpl ##
|
||||
## Developed by: Dzoki ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
?>
|
||||
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="support_mh">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Support and Multihunter</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>Support:</b><br>The support is a group of experienced players who will answer your questions gladly.<br />
|
||||
<a href="nachrichten.php?t=1&id=1">» Write message</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Multihunter:</b><br>The Multihunters are responsible for the compliance with the <a href="rules.php"><b><?php echo GAME_RULES;?></b></a>. If you have questions about the rules or want to report a violation, you can message a Multihunter.<br />
|
||||
<a href="nachrichten.php?t=1&id=0">» Write message</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php if(NEW_FUNCTIONS_VACATION){
|
||||
?>
|
||||
<h1>Player profile</h1>
|
||||
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 01.09.2013 ##
|
||||
## Filename vacation.php ##
|
||||
## Developed by: Advocaite ##
|
||||
## Fixed by: Shadow / Skype : cata7007 ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include("menu.tpl"); ?>
|
||||
<form action="spieler.php" method="POST">
|
||||
<input type="hidden" name="ft" value="p4">
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="del_acc" class="account"><thead>
|
||||
<tr>
|
||||
<th colspan="2">Vacation Mode</th>
|
||||
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="note" colspan="2">If you plan on being away for an extended period of time and do not wish to set a sitter, you can set your account to Holiday Mode. During this time your account will stop produceing resource , CP , research , trops , etc , and stop receiving attacks , reinforcements, raid , essentially freezing your account. Remember, this just freezes your Travian, not time. If you are a member of Gold Club it will run out during this time and if you have automatic renewal selected, the automatic renewal feature will be cancelled while in Holiday Mode.Please Note you must set min of 2 days vaction mode and NO MORE THEN 14 days.</td>
|
||||
</tr><tr>
|
||||
|
||||
|
||||
<div>
|
||||
<h4 class="round">General description</h4>
|
||||
Use vacation mode to protect your villages during you are away.<br/>
|
||||
During the vacation will be inactive next actions:<br/>
|
||||
<ul>
|
||||
<li>Send or receive troops</li>
|
||||
<li>Start new construction order</li>
|
||||
<li>Use market</li>
|
||||
<li>Train new troops</li>
|
||||
<li>Join to an alliance</li>
|
||||
<li>Delete account</li>
|
||||
</ul></div>
|
||||
|
||||
<h4 class="round">Conditions</h4>
|
||||
<ul>
|
||||
<li>No troops in movement</li>
|
||||
<li>No troops on way to other villages</li>
|
||||
<li>No troops send to reinforcements other villages</li>
|
||||
<li>No player have reinforcements on your villages</li>
|
||||
<li>Do not have Wonder World</li>
|
||||
<li>Do not have any artefacts</li>
|
||||
<li>You are no longer in player protections</li>
|
||||
<li>Do not have any troops in your traps</li>
|
||||
<li>Your account is not in deletion process.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<th>Want to activate Vacation Mode?</th>
|
||||
<td class="del_selection">
|
||||
<label><input class="radio" type="radio" name="vac" value="1" /> Yes</label>
|
||||
<label><input class="text" type="text" name="vac_days" value="2" /></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody></table>
|
||||
<?php
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($form->getError("vac") != "") {
|
||||
echo "<span class=\"error\">".$form->getError("vac")."</span>";
|
||||
}
|
||||
?>
|
||||
<p class="btn"><input type="image" value="" name="s1" id="btn_save" class="dynamic_img" src="img/x.gif" alt="save" /></p>
|
||||
</form>
|
||||
<?php
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?uid=".$session->uid);
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user