diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 08:24:10 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 08:24:10 -0500 |
commit | 59236c21956299f7fb28c527857b66a2c47ef777 (patch) | |
tree | 8c957df32b0464cd4622ac69cd1c11ae4be0fc2b | |
parent | c040eeda3a9710869caf276a564207866497ee67 (diff) | |
download | pfsense-59236c21956299f7fb28c527857b66a2c47ef777.zip pfsense-59236c21956299f7fb28c527857b66a2c47ef777.tar.gz |
Move timeout value to PHP definition for easier modification
-rwxr-xr-x | src/usr/local/www/reboot.php | 14 |
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> |