From 72fa56b96deda314a1b19e5a7cfdaffff5e82e42 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Tue, 12 Jan 2016 11:16:57 +0000 Subject: [PATCH] add update check --- Update.bat | 16 +++++++++++++++ css/custom.php | 39 +++++++++++++++++++++++++++++++++++ main.php | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ updatenotify.php | 9 ++++++++ version.php | 4 ++++ 5 files changed, 121 insertions(+) create mode 100644 updatenotify.php create mode 100644 version.php diff --git a/Update.bat b/Update.bat index c287431..6674e5e 100644 --- a/Update.bat +++ b/Update.bat @@ -156,4 +156,20 @@ findstr "custombackground" config.php >nul 2>&1 goto END :END + rem Add version +findstr "localversion" config.php >nul 2>&1 + if errorlevel 1 goto ONE + if errorlevel 0 goto ZERO + goto END + :ZERO + echo localversion Already Updated + goto END + :ONE + echo ^>config.php + echo $localversion = "1.1"; >> config.php + echo ^?^> >> config.php + echo localversion Updated + goto END + :END + PAUSE \ No newline at end of file diff --git a/css/custom.php b/css/custom.php index d1f5b30..6be416a 100644 --- a/css/custom.php +++ b/css/custom.php @@ -74,4 +74,43 @@ color: black; color: white; } + #mask { + position: absolute; + left: 0; + top: 0; + z-index: 9000; + background-color: #000; + display: none; +} + +#boxes .window { + position: absolute; + left: 0; + top: 0; + width: 440px; + height: 200px; + display: none; + z-index: 9999; + padding: 20px; + border-radius: 15px; + text-align: center; +} + +#boxes #dialog { + width: 750px; + height: 300px; + padding: 10px; + background-color: #ffffff; + font-family: 'Segoe UI Light', sans-serif; + font-size: 15pt; +} + +#popupfoot { + font-size: 16pt; + position: absolute; + bottom: 0px; + width: 250px; + left: 250px; +} + \ No newline at end of file diff --git a/main.php b/main.php index 2039d85..38f1347 100644 --- a/main.php +++ b/main.php @@ -9,6 +9,7 @@ +
+ + + + diff --git a/updatenotify.php b/updatenotify.php new file mode 100644 index 0000000..0f23bff --- /dev/null +++ b/updatenotify.php @@ -0,0 +1,9 @@ +
+
+ New Update Available, + + Update via update.bat + +
+
+
\ No newline at end of file diff --git a/version.php b/version.php new file mode 100644 index 0000000..6e08c0c --- /dev/null +++ b/version.php @@ -0,0 +1,4 @@ + \ No newline at end of file