Skip to content
This repository
Browse code

Update System

  • Loading branch information...
commit 8abfceb5b71f1ed5ce941f0375c101a2db6c33c2 1 parent 0f8515e
akshay9 akshay9 authored
5 Admin/Templates/login.tpl
@@ -11,10 +11,7 @@
11 11 #################################################################################
12 12
13 13 ############ Check Update #############
14   -if(isset($_GET['c']))
15   -{
16   - copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl");
17   -}
  14 +copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl");
18 15
19 16 ?>
20 17 <div align="center">
2  Admin/Templates/ver.tpl
... ... @@ -1,3 +1,3 @@
1 1 <?php
2   -$ver="15";
  2 +$ver="16";
3 3 ?>
6 Admin/admin.php
@@ -38,6 +38,10 @@ public function getTimeFormat($time)
38 38 }
39 39 };
40 40 $timeformat = new timeFormatGenerator;
  41 +
  42 +include('Templates/ver.tpl');
  43 +include('Templates/update_latest.tpl');
  44 +$up_avl = $latest - $ver ;
41 45 ?>
42 46 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
43 47 <html>
@@ -93,7 +97,7 @@ function hideStuff(id) {
93 97 <a href="<?php echo HOMEPAGE; ?>">Server Homepage</a>
94 98 <a href="admin.php">Control Panel Home</a>
95 99 <a href="<?php echo SERVER; ?>dorf1.php">Return to the server</a>
96   - <a href="?p=update"><font color="Red"><b>Server Update</font></b></a>
  100 + <a href="?p=update"><font color="Red"><b>Server Update (<?php echo $up_avl; ?>)</font></b></a>
97 101 <br />
98 102 <a href="?action=logout">Logout</a>
99 103 <br />

0 comments on commit 8abfceb

Please sign in to comment.
Something went wrong with that request. Please try again.