mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
more updates
This commit is contained in:
@@ -3825,7 +3825,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
foreach($harray as $hdata){
|
||||
if((time()-$hdata['lastupdate'])>=1){
|
||||
if($hdata['health']<100 and $hdata['health']>0){
|
||||
$reg = $hdata['health']+$hdata['regeneration']*5*ceil(SPEED/10)/86400*(time()-$hdata['lastupdate']);
|
||||
$reg = $hdata['health']+$hdata['regeneration']*5*SPEED/86400*(time()-$hdata['lastupdate']);
|
||||
if($reg <= 100){
|
||||
$database->modifyHero("health",$reg,$hdata['heroid']);
|
||||
}else{
|
||||
|
||||
@@ -221,7 +221,7 @@ class MYSQL_DB {
|
||||
}
|
||||
|
||||
function setDeleting($uid, $mode) {
|
||||
$time = time() + 5 * 3600;
|
||||
$time = time() + 72 * 3600;
|
||||
if(!$mode) {
|
||||
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
|
||||
} else {
|
||||
|
||||
@@ -106,7 +106,7 @@ public function procMtime($time, $pref = 3) {
|
||||
break;
|
||||
}
|
||||
*/
|
||||
- $time += 3600*1; //Edit this yourself
|
||||
- $time += 3600*0; //Edit this yourself
|
||||
+ $time += 0; //Edit this yourself
|
||||
|
||||
$today = date('d',time())-1;
|
||||
|
||||
@@ -168,7 +168,6 @@ class Session {
|
||||
if($this->userarray['b4'] > $this->time) {
|
||||
$this->bonus4 = 1;
|
||||
}
|
||||
$this->money = $this->userarray['money'];
|
||||
}
|
||||
|
||||
private function SurfControl(){
|
||||
|
||||
@@ -113,7 +113,7 @@ if (isset($_POST['name'])) {
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Regeneration</th>
|
||||
<td class="val"><?php echo ($hero_info['regeneration']*5*ceil(SPEED/10)); ?>/Day</td>
|
||||
<td class="val"><?php echo ($hero_info['regeneration']*5*SPEED); ?>/Day</td>
|
||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['regeneration']*2)+1; ?>px;" alt="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" title="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" /></td>
|
||||
<td class="up"><span class="none">
|
||||
<?php
|
||||
|
||||
@@ -106,7 +106,7 @@ echo "<span class=\"error\">".$form->getError('email')."</span>";
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
<tr>
|
||||
<td class="note" colspan="2">You can delete your account here. After starting the cancellation it will take 5 hours to complete the cancellation of your account. You can cancel this process before it done.</td>
|
||||
<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);
|
||||
|
||||
@@ -55,9 +55,11 @@ div.c1 {text-align: center}
|
||||
$timestamp = $database->isDeleting($session->uid);
|
||||
if($timestamp) {
|
||||
echo "<td colspan=\"2\" class=\"count\">";
|
||||
if($timestamp > time()+48*3600) {
|
||||
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 "<a href=\"spieler.php?s=3\"> The account will be deleted in <span
|
||||
id=\"timer1\">".$time."</span> .</a></td>";
|
||||
|
||||
Reference in New Issue
Block a user