Permalink
Browse files

Update System

  • Loading branch information...
1 parent 0f8515e commit 8abfceb5b71f1ed5ce941f0375c101a2db6c33c2 @akshay9 akshay9 committed Mar 23, 2013
Showing with 7 additions and 6 deletions.
  1. +1 −4 Admin/Templates/login.tpl
  2. +1 −1 Admin/Templates/ver.tpl
  3. +5 −1 Admin/admin.php
@@ -11,10 +11,7 @@
#################################################################################
############ Check Update #############
-if(isset($_GET['c']))
-{
- copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl");
-}
+copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl");
?>
<div align="center">
@@ -1,3 +1,3 @@
<?php
-$ver="15";
+$ver="16";
?>
View
@@ -38,6 +38,10 @@ public function getTimeFormat($time)
}
};
$timeformat = new timeFormatGenerator;
+
+include('Templates/ver.tpl');
+include('Templates/update_latest.tpl');
+$up_avl = $latest - $ver ;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
@@ -93,7 +97,7 @@ function hideStuff(id) {
<a href="<?php echo HOMEPAGE; ?>">Server Homepage</a>
<a href="admin.php">Control Panel Home</a>
<a href="<?php echo SERVER; ?>dorf1.php">Return to the server</a>
- <a href="?p=update"><font color="Red"><b>Server Update</font></b></a>
+ <a href="?p=update"><font color="Red"><b>Server Update (<?php echo $up_avl; ?>)</font></b></a>
<br />
<a href="?action=logout">Logout</a>
<br />

0 comments on commit 8abfceb

Please sign in to comment.