From 8abfceb5b71f1ed5ce941f0375c101a2db6c33c2 Mon Sep 17 00:00:00 2001 From: Akshay Naik Date: Sat, 23 Mar 2013 21:45:23 +0530 Subject: [PATCH] Update System --- Admin/Templates/login.tpl | 5 +---- Admin/Templates/ver.tpl | 2 +- Admin/admin.php | 6 +++++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Admin/Templates/login.tpl b/Admin/Templates/login.tpl index f4fe61e6..07d48104 100644 --- a/Admin/Templates/login.tpl +++ b/Admin/Templates/login.tpl @@ -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"); ?>
diff --git a/Admin/Templates/ver.tpl b/Admin/Templates/ver.tpl index 32fe9132..ef857c60 100644 --- a/Admin/Templates/ver.tpl +++ b/Admin/Templates/ver.tpl @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/Admin/admin.php b/Admin/admin.php index 19e3258c..ede21278 100644 --- a/Admin/admin.php +++ b/Admin/admin.php @@ -38,6 +38,10 @@ class timeFormatGenerator } }; $timeformat = new timeFormatGenerator; + +include('Templates/ver.tpl'); +include('Templates/update_latest.tpl'); +$up_avl = $latest - $ver ; ?> @@ -93,7 +97,7 @@ $timeformat = new timeFormatGenerator; Server Homepage Control Panel Home Return to the server - Server Update + Server Update ()
Logout