From 99b0fe7137726cbf29128fde8e1188e59dc4d6c5 Mon Sep 17 00:00:00 2001 From: Maharaja Date: Mon, 28 Oct 2013 19:56:19 +0100 Subject: [PATCH 1/3] Added update system not auto update yet --- Admin/Templates/update.tpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Admin/Templates/update.tpl b/Admin/Templates/update.tpl index e9a78f76..d068fde5 100644 --- a/Admin/Templates/update.tpl +++ b/Admin/Templates/update.tpl @@ -3,9 +3,10 @@ if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); include('ver.tpl'); if(isset($_GET['c'])) { - copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl"); + copy("https://raw.github.com/yi12345/TravianZ/master/Admin/Templates/update_latest.tpl", "Templates/update_latest.tpl"); } include('update_latest.tpl'); +/* if(isset($_GET['u'])) { for ($dl=$ver+1; $dl<=$latest; $dl++) @@ -24,7 +25,7 @@ if(isset($_GET['u'])) $zip->extractTo('../'); $zip->close(); unlink('update.zip'); - echo "Successfully Updated to Version $dl.
";; + echo "Successfully Updated to Version $dl.
"; } else { @@ -33,6 +34,7 @@ if(isset($_GET['u'])) } } } +*/ ?> @@ -68,9 +70,7 @@ if(isset($_GET['u'])) - + -
Visit Forum


-

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



-

Advertise your Server here http://mmorpgd.tk/forum-10.html

\ No newline at end of file + \ No newline at end of file From 0e068ebb8801956f7f7e4addab2de43dac14f62f Mon Sep 17 00:00:00 2001 From: Maharaja Date: Mon, 28 Oct 2013 20:00:44 +0100 Subject: [PATCH 2/3] added the link for github page will open now the github page for updating till i can fix the download link system --- Admin/Templates/update.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Admin/Templates/update.tpl b/Admin/Templates/update.tpl index d068fde5..63d91f7c 100644 --- a/Admin/Templates/update.tpl +++ b/Admin/Templates/update.tpl @@ -60,7 +60,7 @@ if(isset($_GET['u'])) $ver) { - echo'
'; + echo'
'; } else { From 53fd50369449c65f8dcca15e52ab06e19993f053 Mon Sep 17 00:00:00 2001 From: Maharaja Date: Mon, 28 Oct 2013 20:02:45 +0100 Subject: [PATCH 3/3] fixed the password show bug with the install --- install/templates/config.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/templates/config.tpl b/install/templates/config.tpl index c0613f98..cfec0f38 100644 --- a/install/templates/config.tpl +++ b/install/templates/config.tpl @@ -158,7 +158,7 @@ echo "
Error creating constant.php - +
Hostname:
Username:
Password:
Password:
DB name:
Prefix:
Type: