mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 05:41:01 +00:00
fix: beginner's protection shown wrong date and time in profile picture
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
|
||||
#################################################################################
|
||||
@@ -16,7 +16,7 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
|
||||
//gp link
|
||||
$separator=isset($separator)? $separator:"";
|
||||
$gpack_load=isset($user['gpack'])? $user['gpack']:$database->getUserField($_SESSION['username'], 'gpack', 1);
|
||||
@@ -24,14 +24,14 @@
|
||||
$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 = "$remainingDay days ".date("H:i:s", $secondsDiff);
|
||||
$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']));
|
||||
@@ -169,7 +169,7 @@ switch ($medal['categorie']) {
|
||||
break;
|
||||
case "10":
|
||||
$titel="Rank Climbers of the week.";
|
||||
$woord="Ranks";
|
||||
$woord="Ranks";
|
||||
break;
|
||||
case "11":
|
||||
$titel="Receiving this medal shows that you were in the top 3 of the Rank Climbers of the week ".$medal['points']." in a row.";
|
||||
@@ -195,7 +195,7 @@ switch ($medal['categorie']) {
|
||||
$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;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user