From 45d6ada5d412e886abe0999ab7e2d26f47d9a6f2 Mon Sep 17 00:00:00 2001 From: Sjon Hortensius Date: Tue, 28 Apr 2015 13:54:06 +0200 Subject: Revert "Merge pull request #100 from sbeaver-netgate/halt" This reverts commit 5bd406696ae634b3993d79a8b9aef03eeab42488, reversing changes made to b9bd62735f2afb818d9ff3afd399c6c7d3b904c5. --- usr/local/www/halt.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'usr/local/www/halt.php') diff --git a/usr/local/www/halt.php b/usr/local/www/halt.php index 322fbd4..49e99c5 100755 --- a/usr/local/www/halt.php +++ b/usr/local/www/halt.php @@ -50,7 +50,7 @@ require("guiconfig.inc"); require("functions.inc"); require("captiveportal.inc"); -if (stristr($_POST['Submit'], gettext("No"))) { +if ($_POST['save'] == 'No') { header("Location: index.php"); exit; } @@ -58,28 +58,28 @@ if (stristr($_POST['Submit'], gettext("No"))) { $pgtitle = array(gettext("Diagnostics"),gettext("Halt system")); include('head.inc'); -if ($_SERVER['REQUEST_METHOD'] == 'POST') { -?> - - +if ($_POST['save'] == 'Yes') { + print(''); + print(''); -"); else system_halt(); } else { -?> +?> +
-
Are you sure you want to halt the system?
-
Click "Yes" to halt the system immediately, or "No" to go to the system dashboard. (There will be a brief delay before the dashboard appears.)

+
+

Are you sure you want to halt the system?

+
+
+

Click "Yes" to halt the system immediately, or "No" to go to the system dashboard. (There will be a brief delay before the dashboard appears.)

- - No + +
-- cgit v1.1