diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php
index 68404c31..08bf4e33 100644
--- a/GameEngine/Database/db_MYSQL.php
+++ b/GameEngine/Database/db_MYSQL.php
@@ -21,7 +21,7 @@
function register($username, $password, $email, $tribe, $locate, $act) {
$time = time();
$timep = (time() + PROTECTION);
- $q = "INSERT INTO " . TB_PREFIX . "users (username,password,access,email,timestamp,tribe,location,act,protect) VALUES ('$username', '$password', " . USER . ", '$email', $time, $tribe, $locate, '$act', $timep)";
+ $q = "INSERT INTO " . TB_PREFIX . "users (username,password,access,email,timestamp,tribe,location,act,protect,regtime) VALUES ('$username', '$password', " . USER . ", '$email', $time, $tribe, $locate, '$act', $timep, $time)";
if(mysql_query($q, $this->connection)) {
return mysql_insert_id($this->connection);
} else {
diff --git a/Templates/Build/37_land.tpl b/Templates/Build/37_land.tpl
index 803b72c8..ea27a276 100644
--- a/Templates/Build/37_land.tpl
+++ b/Templates/Build/37_land.tpl
@@ -71,4 +71,4 @@
-
+
\ No newline at end of file
diff --git a/Templates/Profile/medal.php b/Templates/Profile/medal.php
index f760038c..fe10cf18 100644
--- a/Templates/Profile/medal.php
+++ b/Templates/Profile/medal.php
@@ -9,10 +9,20 @@
//de bird
if($displayarray['protect'] > time()){
-$uurover=date('H:i:s', ($displayarray['protect']-time())-3600);
-$profiel = preg_replace("/\[#0]/is",'
', $profiel, 1);
+$secondsDiff = $displayarray['protect'] - time();
+$remainingDay = floor($secondsDiff/60/60/24);
+$remainingHour = floor(($secondsDiff-($remainingDay*60*60))/3600);
+$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60)-($remainingHour*60*60))/60);
+$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60)-($remainingHour*60*60))-($remainingMinutes*60));
+if(strlen($remainingSeconds) <= 1){
+$nul1 = "0";}
+if(strlen($remainingMinutes) <= 1){
+$nul2 = "0";}
+if(strlen($remainingHour) <= 1){ $nul3 = "0"; }
+$left="$nul3$remainingHour:$nul2$remainingMinutes:$nul1$remainingSeconds";
+$profiel = preg_replace("/\[#0]/is",'
', $profiel, 1);
} else {
-$geregistreerd=date('d-m-Y', ($displayarray['timestamp']));
+$geregistreerd=date('d-m-Y', ($displayarray['regtime']));
$profiel = preg_replace("/\[#0]/is",'
', $profiel, 1);
}
diff --git a/Templates/multivillage.tpl b/Templates/multivillage.tpl
index 87493665..0f7a0692 100644
--- a/Templates/multivillage.tpl
+++ b/Templates/multivillage.tpl
@@ -58,7 +58,7 @@ else if(isset($_GET['c'])) {
for($i=1;$i<=count($session->villages);++$i){echo'