summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/reboot.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-20 08:24:10 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-20 08:24:10 -0500
commit59236c21956299f7fb28c527857b66a2c47ef777 (patch)
tree8c957df32b0464cd4622ac69cd1c11ae4be0fc2b /src/usr/local/www/reboot.php
parentc040eeda3a9710869caf276a564207866497ee67 (diff)
downloadpfsense-59236c21956299f7fb28c527857b66a2c47ef777.zip
pfsense-59236c21956299f7fb28c527857b66a2c47ef777.tar.gz
Move timeout value to PHP definition for easier modification
Diffstat (limited to 'src/usr/local/www/reboot.php')
-rwxr-xr-xsrc/usr/local/www/reboot.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/local/www/reboot.php b/src/usr/local/www/reboot.php
index 9e2ef9d..ac9bc4f 100755
--- a/src/usr/local/www/reboot.php
+++ b/src/usr/local/www/reboot.php
@@ -70,6 +70,8 @@ require("guiconfig.inc");
require("functions.inc");
require("captiveportal.inc");
+$guitimeout = 120; // Seconds to wait before reloading the page after reboot
+
$pgtitle = array(gettext("Diagnostics"),gettext("Reboot System"));
include("head.inc");
@@ -91,16 +93,14 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
<script>
//<![CDATA[
events.push(function(){
-
function startCountdown(time) {
- setInterval(function(){
- $('#countdown').html('<h4>Rebooting<br />Page will reload in ' +time+ ' seconds.</h4>');
- time-- != 0 || (window.location="/index.php");
- },1000);
+ setInterval(function(){
+ $('#countdown').html('<h4>Rebooting<br />Page will automatically reload in ' + time + ' seconds.</h4>');
+ time-- != 0 || (window.location="/index.php");
+ },1000);
}
- // startCountdown(60);
- startCountdown(90);
+ startCountdown("<?=$guitimeout?>");
});
//]]>
</script>
OpenPOWER on IntegriCloud