From 307daf804cdf9187be2ea22bd533745ab936ab91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Kerem=20Oktay?= Date: Sun, 11 Oct 2020 13:44:18 +0300 Subject: [PATCH 1/6] Create updater --- updater.php | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 updater.php diff --git a/updater.php b/updater.php new file mode 100644 index 0000000..8a80a5c --- /dev/null +++ b/updater.php @@ -0,0 +1,53 @@ + Date: Sun, 11 Oct 2020 13:45:17 +0300 Subject: [PATCH 2/6] Create UpdatesConsoleConnector.php --- SkyfallenCodeLib/UpdatesConsoleConnector.php | 53 ++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 SkyfallenCodeLib/UpdatesConsoleConnector.php diff --git a/SkyfallenCodeLib/UpdatesConsoleConnector.php b/SkyfallenCodeLib/UpdatesConsoleConnector.php new file mode 100644 index 0000000..10cb23a --- /dev/null +++ b/SkyfallenCodeLib/UpdatesConsoleConnector.php @@ -0,0 +1,53 @@ +open($file); + if ($res === TRUE) { + $zip->extractTo($rootpath); + $zip->close(); + return true; + } else { + return false; + } + } + public static function getProviderData($providerurl){ + $vajson = file_get_contents($providerurl."/provider/"); + $prv_array = json_decode($vajson,true); + return $prv_array; + } +} From 6e2b999b6cf93756fca01e1df0981bc349913702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Kerem=20Oktay?= Date: Sun, 11 Oct 2020 13:46:23 +0300 Subject: [PATCH 3/6] Create thisversion.php --- thisversion.php | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 thisversion.php diff --git a/thisversion.php b/thisversion.php new file mode 100644 index 0000000..e9c6093 --- /dev/null +++ b/thisversion.php @@ -0,0 +1,4 @@ + + Date: Sun, 11 Oct 2020 13:47:10 +0300 Subject: [PATCH 4/6] Create onupdate.php --- onupdate.php | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 onupdate.php diff --git a/onupdate.php b/onupdate.php new file mode 100644 index 0000000..1b39836 --- /dev/null +++ b/onupdate.php @@ -0,0 +1,2 @@ + Date: Sun, 11 Oct 2020 13:52:41 +0300 Subject: [PATCH 5/6] Add updater config --- config.php.template | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.php.template b/config.php.template index f0ec1b9..de4139b 100644 --- a/config.php.template +++ b/config.php.template @@ -68,3 +68,12 @@ if ($mysqli->connect_errno) { } $mysqli->set_charset("utf8"); + +include "SkyfallenCodeLib/UpdatesConsoleConnector.php"; + +define("UPDATES_PROVIDER_URL","https://swupdate.theskyfallen.com"); +define("UPDATES_PROVIDER_APP_ID","6d84a0d1b6cc05e071c0199a8d8894c4"); +define("UPDATE_SEED","STABLE"); + +include_once "updater.php"; +include "thisversion.php"; From 4f156286708760b538e89fc830bd10fe2ba3fcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Kerem=20Oktay?= Date: Sun, 11 Oct 2020 13:54:22 +0300 Subject: [PATCH 6/6] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a458d4..ed3ace5 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,7 @@ password: Ss123456 Please note that changes are reverted every hour. ### I noticed there is a new release. How do I update? -Updating server status is fairly straightforward. Download your config.php from the server. Delete all files. Upload the new release with config.php you downloaded earlier. You need to manually run install scripts. For that head to your domain and run create-server-config.php deleting it afterwards. -If you don't want to allow php to access your files or you have permission issues, use the following instructions. +In the admin panel, check for updates. If a version is available you can click to update. #### Updating server config Follow the instructions for installation without giving the app write access. Keep in mind that you will need to re-apply any modifications you made.