summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsbeaver <sbeaver@netgate.com>2015-04-08 11:37:09 -0400
committersbeaver <sbeaver@netgate.com>2015-04-08 11:37:09 -0400
commitad0bbc8ba1bdc9ca22e0c5240d1cfaf34fcd30aa (patch)
tree0ac5607fc1a495c9d695ce8a71a9bc8cb68b7375 /usr
parentbe18e4f3da84fcad0f16d26a5bf53c21d08bdff9 (diff)
downloadpfsense-ad0bbc8ba1bdc9ca22e0c5240d1cfaf34fcd30aa.zip
pfsense-ad0bbc8ba1bdc9ca22e0c5240d1cfaf34fcd30aa.tar.gz
Options for review
A simple HTML version as well as a Form.class version (currently commented out) are included in this version. Would appreciate an opinion on the alternatives presented.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/reboot.php25
1 files changed, 23 insertions, 2 deletions
diff --git a/usr/local/www/reboot.php b/usr/local/www/reboot.php
index 5701d9a..af89d32 100755
--- a/usr/local/www/reboot.php
+++ b/usr/local/www/reboot.php
@@ -38,7 +38,7 @@
##|-PRIV
// Set DEBUG to true to prevent the system_reboot() function from being called
-define("DEBUG", false);
+define("DEBUG", true);
require("guiconfig.inc");
require("functions.inc");
@@ -62,6 +62,26 @@ if (stristr($_POST['Submit'], gettext("Yes"))) {
system_reboot();
} else {
+
+?>
+
+<!-- Simple HTML version -->
+<div class="panel panel-default">
+ <div class="panel-heading">Are you sure you want to reboot the system?</div>
+ <div class="panel-body">Click "Yes" to reboot the system immediately, or "No" to go to the system dashboard without rebooting. (There will be a brief delay before the dashboard appears.)<br /><br />
+ <form action="reboot.php" method="post">
+ <input type="submit" class="btn btn-danger pull-center" name="Submit" value="Yes">
+ <input type="submit" class="btn btn-default" name="Submit" value="No">
+ </form>
+ </div>
+ </div>
+</div>
+
+<?php
+
+/* Form.class version */
+
+/*
require('classes/Form.class.php');
$form = new Form(new Form_Button(
@@ -73,7 +93,7 @@ $section = new Form_Section('Reboot');
$section->addInput(new Form_StaticText(
'',
- 'Click "Yes" to reboot the system imediately.<br />Click "No" to go to the system dashboard without rebooting. There will be a brief delay before the dashboard appears'
+ 'Click "Yes" to reboot the system immediately.<br />Click "No" to go to the system dashboard without rebooting. There will be a brief delay before the dashboard appears'
));
$form->addGlobal(new Form_Button(
@@ -83,6 +103,7 @@ $form->addGlobal(new Form_Button(
$form->add($section);
print $form;
+*/
}
include("foot.inc"); ?>
OpenPOWER on IntegriCloud