Update System

This commit is contained in:
Akshay Naik
2013-03-23 21:45:23 +05:30
parent 0f8515ed77
commit 8abfceb5b7
3 changed files with 7 additions and 6 deletions
+1 -4
View File
@@ -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 -1
View File
@@ -1,3 +1,3 @@
<?php
$ver="15";
$ver="16";
?>
+5 -1
View File
@@ -38,6 +38,10 @@ class timeFormatGenerator
}
};
$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 @@ $timeformat = new timeFormatGenerator;
<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 />