From 3de759f71c428e894af158134267b7428aaed48b Mon Sep 17 00:00:00 2001 From: tuplink Date: Thu, 20 Oct 2016 11:42:27 -0400 Subject: [PATCH 1/8] add enable/disable button --- header.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/header.php b/header.php index 3d6f0e4b..edda1bec 100644 --- a/header.php +++ b/header.php @@ -1,4 +1,9 @@

Status

"0") { - echo ' Active'; + echo ' Active'; } else { - echo ' Offline'; + echo ' Offline'; } // CPU Temp From cc3678ab8c53ce7834e31850f98d0c82b9b06dce Mon Sep 17 00:00:00 2001 From: tuplink Date: Thu, 20 Oct 2016 11:55:33 -0400 Subject: [PATCH 2/8] add redirect to referal so we dont lose other GETS --- header.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/header.php b/header.php index edda1bec..883bdc9d 100644 --- a/header.php +++ b/header.php @@ -1,8 +1,12 @@ Date: Thu, 20 Oct 2016 11:59:27 -0400 Subject: [PATCH 3/8] change spacing --- header.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/header.php b/header.php index 883bdc9d..856a4616 100644 --- a/header.php +++ b/header.php @@ -1,12 +1,12 @@ Date: Thu, 20 Oct 2016 18:54:18 -0400 Subject: [PATCH 4/8] add Stating status --- header.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index 856a4616..1bad314a 100644 --- a/header.php +++ b/header.php @@ -139,10 +139,12 @@

Status

"0") { + if ($pistatus == "1") { echo ' Active'; - } else { + } elseif ($pistatus == "0") { echo ' Offline'; + } else { + echo ' Starting'; } // CPU Temp From 7ccf4cf2a68714d63b392a4421ed8660342f1990 Mon Sep 17 00:00:00 2001 From: tuplink Date: Thu, 20 Oct 2016 21:19:24 -0400 Subject: [PATCH 5/8] convert tabs > spaces --- header.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/header.php b/header.php index 1bad314a..f0b50a40 100644 --- a/header.php +++ b/header.php @@ -1,13 +1,13 @@ Date: Thu, 20 Oct 2016 22:30:52 -0400 Subject: [PATCH 6/8] test with button --- header.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/header.php b/header.php index f0b50a40..04e3f9e3 100644 --- a/header.php +++ b/header.php @@ -183,6 +183,14 @@ Blacklist + + Enable'; + } else { + echo 'Disable'; + } + ?>
  • From eb766066b68890d93cd4d22c33ca213850bc1100 Mon Sep 17 00:00:00 2001 From: tuplink Date: Thu, 20 Oct 2016 22:50:39 -0400 Subject: [PATCH 7/8] button in menu bar works --- header.php | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/header.php b/header.php index 04e3f9e3..a3a22a6d 100644 --- a/header.php +++ b/header.php @@ -140,11 +140,11 @@ Active'; + echo ' Active'; } elseif ($pistatus == "0") { - echo ' Offline'; + echo ' Offline'; } else { - echo ' Starting'; + echo ' Starting'; } // CPU Temp @@ -183,14 +183,24 @@ Blacklist
  • - - Enable'; - } else { - echo 'Disable'; - } - ?> + + + + Disable + + +'; +} else { +echo '
  • + + Enable + +
  • +'; +} +?>
  • From 5c41f0546227ab4d54b4f1d14abd100bf6e3b707 Mon Sep 17 00:00:00 2001 From: tuplink Date: Thu, 20 Oct 2016 22:57:43 -0400 Subject: [PATCH 8/8] Spacing --- header.php | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/header.php b/header.php index a3a22a6d..52378f1f 100644 --- a/header.php +++ b/header.php @@ -184,23 +184,13 @@
  • - - - Disable - - -'; -} else { -echo '
  • - - Enable - -
  • -'; -} -?> + Disable'; + } else { + echo '
  • Enable
  • '; + } + ?>