From 49556c605c821afacd703263b41384a528d34d9b Mon Sep 17 00:00:00 2001 From: fabianh001 Date: Sun, 24 Jun 2018 12:07:56 +0200 Subject: [PATCH 1/6] Create shutdown.php Tiny php script to enable a remote shutdown --- shutdown.php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 shutdown.php diff --git a/shutdown.php b/shutdown.php new file mode 100644 index 0000000..6dcf379 --- /dev/null +++ b/shutdown.php @@ -0,0 +1,10 @@ + + From 29e5fe3729c89b403babb648b4395921760dab7a Mon Sep 17 00:00:00 2001 From: fabianh001 Date: Sun, 24 Jun 2018 12:12:59 +0200 Subject: [PATCH 2/6] Update index.php Included shutdown.php --- webinterface/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface/index.php b/webinterface/index.php index 0e7bae3..86d1059 100755 --- a/webinterface/index.php +++ b/webinterface/index.php @@ -12,6 +12,7 @@ * don't forget to edit config.php */ include("config.php"); +include("shutdown.php"); /* * get parameters @@ -137,5 +138,6 @@ } echo ""; ?> +Shutdown System From da6586d36d78dc4d178fbfb3bf15834adb4885a0 Mon Sep 17 00:00:00 2001 From: fabianh001 Date: Sun, 24 Jun 2018 12:14:17 +0200 Subject: [PATCH 3/6] Delete shutdown.php wrong directory --- shutdown.php | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 shutdown.php diff --git a/shutdown.php b/shutdown.php deleted file mode 100644 index 6dcf379..0000000 --- a/shutdown.php +++ /dev/null @@ -1,10 +0,0 @@ - - From 5fafa5d18c9ae6fc6b5864b461d2f202bcd1526a Mon Sep 17 00:00:00 2001 From: fabianh001 Date: Sun, 24 Jun 2018 12:15:17 +0200 Subject: [PATCH 4/6] Create shutdown.php tiny scrip to perform a remote shutdown from the webinterface --- webinterface/shutdown.php | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 webinterface/shutdown.php diff --git a/webinterface/shutdown.php b/webinterface/shutdown.php new file mode 100644 index 0000000..bf693f6 --- /dev/null +++ b/webinterface/shutdown.php @@ -0,0 +1,9 @@ + From a964d5222db06659df9f166b3dab0573cca943c1 Mon Sep 17 00:00:00 2001 From: fabianh001 Date: Sun, 24 Jun 2018 12:19:28 +0200 Subject: [PATCH 5/6] Update style.css shutdown in bottom left corner --- webinterface/style.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webinterface/style.css b/webinterface/style.css index c5a737e..7a36b86 100755 --- a/webinterface/style.css +++ b/webinterface/style.css @@ -64,6 +64,13 @@ p { text-align: center; } +#shutdown { +margin-top: 50px; +bottom: 0; +right: 10; +position: absolute; +} + /* Android HDPI */ @media only screen and (-webkit-device-pixel-ratio:1.5) { td.outer { From d10dac5e84323e97c52ecead7e41af659563512a Mon Sep 17 00:00:00 2001 From: fabianh001 Date: Sun, 24 Jun 2018 12:42:12 +0200 Subject: [PATCH 6/6] Update shutdown.php --- webinterface/shutdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface/shutdown.php b/webinterface/shutdown.php index bf693f6..ed407ec 100644 --- a/webinterface/shutdown.php +++ b/webinterface/shutdown.php @@ -1,4 +1,4 @@ - +?>