mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
vacation mode but i will disable it just implemented but will be disabled
This commit is contained in:
@@ -27,9 +27,12 @@ if($checkexist){
|
||||
$villageOwner = $database->getVillageField($getwref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
}
|
||||
// Function vacation mode by Shadow
|
||||
$userVacation = $database->getUserField($villageOwner,'vac_mode',0);
|
||||
}
|
||||
$maxcarry = $market->maxcarry;
|
||||
$maxcarry *= $market->merchantAvail();
|
||||
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist && $userAccess == 2){
|
||||
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist && $userAccess == 2 && $userVacation == 0){
|
||||
?>
|
||||
<form method="POST" name="snd" action="build.php">
|
||||
<input type="hidden" name="ft" value="mk1">
|
||||
@@ -215,6 +218,8 @@ if(isset($_POST['ft'])=='check'){
|
||||
$error = '<span class="error"><b>You cannot send resources to the same village</b></span>';
|
||||
}elseif($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){
|
||||
$error = '<span class="error"><b>Player is Banned. You cannot send resources to him.</b></span>';
|
||||
}elseif($userVacation == '1') {
|
||||
$error = '<span class="error"><b>Player is on vacation mode. You cannot send resources to him.</b></span>';
|
||||
}elseif($_POST['r1']==0 && $_POST['r2']==0 && $_POST['r3']==0 && $_POST['r4']==0){
|
||||
$error = '<span class="error"><b>Resources not selected.</b></span>';
|
||||
}elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
| <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>
|
||||
| <a href="spieler.php?s=5" <?php if(isset($_GET['s']) && $_GET['s'] == 5) { echo "class=\"selected\""; } ?>>Vacation</a>
|
||||
<?php
|
||||
if(GP_ENABLE) {
|
||||
?>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php
|
||||
<?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="#" target="_blank">game rules</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,49 @@
|
||||
<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">
|
||||
<input type="hidden" name="uid" value="<?php echo $session->uid; ?>" />
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
Reference in New Issue
Block a user