From a76d4c753cbd938bcc114b7374883928af1ac114 Mon Sep 17 00:00:00 2001 From: Akshay Naik Date: Mon, 13 Aug 2012 14:02:39 +0530 Subject: [PATCH] Auto Update System --- Admin/Templates/update.tpl | 56 ++++++++++++++++++++++++++++++ Admin/Templates/update_latest.tpl | 3 ++ Admin/Templates/ver.tpl | 3 ++ Admin/admin.php | 7 ++-- img/admin/b/update.png | Bin 0 -> 1270 bytes 5 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 Admin/Templates/update.tpl create mode 100644 Admin/Templates/update_latest.tpl create mode 100644 Admin/Templates/ver.tpl create mode 100644 img/admin/b/update.png diff --git a/Admin/Templates/update.tpl b/Admin/Templates/update.tpl new file mode 100644 index 00000000..9ccf3d1f --- /dev/null +++ b/Admin/Templates/update.tpl @@ -0,0 +1,56 @@ +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";}?>
\ No newline at end of file diff --git a/Admin/Templates/update_latest.tpl b/Admin/Templates/update_latest.tpl new file mode 100644 index 00000000..958df616 --- /dev/null +++ b/Admin/Templates/update_latest.tpl @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Admin/Templates/ver.tpl b/Admin/Templates/ver.tpl new file mode 100644 index 00000000..6644a362 --- /dev/null +++ b/Admin/Templates/ver.tpl @@ -0,0 +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 diff --git a/img/admin/b/update.png b/img/admin/b/update.png new file mode 100644 index 0000000000000000000000000000000000000000..1483381c179e5eab7f5f26f98809a6b6996d05e0 GIT binary patch literal 1270 zcmVEshi3nL_lY%o< z-M9L@?|ILuGX+n_)A59d$say^@4}^R7S228u-4Mf#+c3kj0UOJRzLpw+v~qRE&<;z zKL6-Ve{F5_ey`}AYTtE2^fIFyQ6QMJG(j@T+`{tPzS#ZirNe`8;`jm- z4!i~LCe3WY8E_V?1#23~Y^t185~zX#b^j3R3q(N#qC(tUN1_r0fsW@*%Yk2>_mRUDJfuaaTl$6k7eD$yyp z&;VPLFtzb+5{PZV^PHzY8-oSR@(`s#vh?w4m~Z`N!6_gTE3bZ7wglR!#X^(@&9u>5 zusTII4@tq;S(uB>3k()zpwQ3#=L*-`oA%v{Urr)!S7tV~7Bgb8eU|i_BundU*<(W< zu&Ent=mRQBYDxQL#wHaagmTzl6Fqf2Lb6V zB?2*)!KR$bG$PgJbXWsUK}uln}pAB?6(0d1dPqT(yb5 z1-CN=n3IhW>M+fXNB04DHPiG071wVF1bUT|y{SW+oRZ`xfww8jNOXNbA&L^F86a4w zrLmYRp%5vyKKSg4Gz8R@PN$&lnUz*{&7yyZ0xf~2!(|Fs2(hu4sSpGLwro@aqG(xX zT~HJ7ECG|L0Q>s@Kpi8KOaX6&Ix2OX9@UNrIwcT7s5)oKp-ZhT!r6a0VQv!BSYN)0JvLk18D*M42P+qyU$=2yb zexEOS)Hqc4dHMPT-3g8S3eomT*i8g*m8So8ZL<-Z5txmhZdGZzca{A3u7 zC%AOKXbqJepzy%qD?j_<;`#YFbUW^0ktIw^RS-O8r_cufn>9y^FZ5Aqnh_zkIKoz5kF{m9-j<#10 zA2a8+KV^0P^89xjzs%CK2A$BaE??cbrpn#!Jx~C>Wc_U2d&K+MJ>BysU%dWWF-QMD g{1gfE>3H(vUmK|zs0L&07*qoM6N<$f{zth`~Uy| literal 0 HcmV?d00001