From 8a9fb7b14142bfcb8a8b7abf6654d558d7ac4e0c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 7 Sep 2012 09:29:24 +0300 Subject: [PATCH] add auto update system --- Admin/Templates/update.tpl | 137 ++++++++++++++---------------- Admin/Templates/update_latest.tpl | 2 +- Admin/Templates/ver.tpl | 2 +- Admin/admin.php | 7 +- 4 files changed, 68 insertions(+), 80 deletions(-) diff --git a/Admin/Templates/update.tpl b/Admin/Templates/update.tpl index 915ddae2..ef417542 100644 --- a/Admin/Templates/update.tpl +++ b/Admin/Templates/update.tpl @@ -1,75 +1,62 @@ -open('update.zip') === TRUE) - { - $zip->extractTo('../'); - $zip->close(); - unlink('update.zip'); - echo "Successfully Updated to Version $dl ";; - } - else - { - echo 'Failed to update to Version $dl'; - } - } - } -} -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
System Updates
Current Version :
Latest Version :
Check for Update
Update $ver) - { - echo'
'; - } - else - { - echo "No updates Avaiable"; - } - ?>
Visit Forum


-

Guys don`t forget to register at the forum to receive information of the updates"

\ No newline at end of file +open('update.zip') === TRUE) + { + $zip->extractTo('../'); + $zip->close(); + unlink('update.zip'); + header("Location: admin.php?p=update&s"); + } else {echo 'Update Failed';} +} +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
System Updates
Current Version :
Latest Version :
Check for Update
UpdateUpdate Success';} + elseif($latest > $ver) + {echo'
'; } + else { echo "No updates Avaiable";}?>
Visit Forum
+

+

Guys don`t forget to register at the forum to receive information of the updates"

\ No newline at end of file diff --git a/Admin/Templates/update_latest.tpl b/Admin/Templates/update_latest.tpl index e20fbc52..958df616 100644 --- a/Admin/Templates/update_latest.tpl +++ b/Admin/Templates/update_latest.tpl @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/Admin/Templates/ver.tpl b/Admin/Templates/ver.tpl index 6644a362..7c8a0f25 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 ec566b5e..d43abdbf 100644 --- a/Admin/admin.php +++ b/Admin/admin.php @@ -93,6 +93,7 @@ $timeformat = new timeFormatGenerator; Server Homepage Control Panel Home Return to the server + Server Update
Logout
@@ -102,8 +103,8 @@ $timeformat = new timeFormatGenerator; Players Not Activated
Search - Search Players/Alliances/Villages/E-mails/IPs/Deleted Players - Search Messages/Battle Reports + General Search + Search IGMs/Reports
Ban Ban/Unban Players @@ -129,7 +130,7 @@ $timeformat = new timeFormatGenerator;
Natars Add WW Villages - Add WW Buildingplan Villages + Add WW Building Plan Villages
Admin: Admin Log