summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/reboot.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-13 16:02:13 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-13 16:02:13 -0500
commit99e2a6cefbec7153a1d32c3c55fe5d0a6f00b9bf (patch)
treeafed0ec0af6fe898b840ceea071fd6a4087c76f9 /src/usr/local/www/reboot.php
parentd729ab36575175901bae2a2d0fd9a93389a8b7ec (diff)
downloadpfsense-99e2a6cefbec7153a1d32c3c55fe5d0a6f00b9bf.zip
pfsense-99e2a6cefbec7153a1d32c3c55fe5d0a6f00b9bf.tar.gz
Revised base firmware update
Diffstat (limited to 'src/usr/local/www/reboot.php')
-rwxr-xr-xsrc/usr/local/www/reboot.php35
1 files changed, 28 insertions, 7 deletions
diff --git a/src/usr/local/www/reboot.php b/src/usr/local/www/reboot.php
index 4ee7864..c6521ff 100755
--- a/src/usr/local/www/reboot.php
+++ b/src/usr/local/www/reboot.php
@@ -75,13 +75,6 @@ include("head.inc");
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
-?>
- <meta http-equiv="refresh" content="70;url=/">
- <div class="alert alert-success" role="alert">
- <?=gettext("The system is rebooting now. This may take one minute or so.")?>
- </div>
-<?php
-
if(DEBUG) {
print("Not actually rebooting (DEBUG is set true)");
}
@@ -90,6 +83,19 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
system_reboot();
print('</pre>');
}
+
+?>
+<div id="clock" style="text-align: center;"></div>
+<div id="countdown" style="text-align: center;"></div>
+
+<script>
+//<![CDATA[
+events.push(function(){
+ startCountdown(60);
+});
+//]]>
+</script>
+<?php
} else {
?>
@@ -110,5 +116,20 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
<?php
}
+?>
+<script>
+//<![CDATA[
+
+ function startCountdown(time) {
+ $('#clock').html('<img src="/321.gif" />');
+ setInterval(function(){
+ $('#countdown').html('<h4>Rebooting<br />Page will reload in ' +time+ ' seconds.</h4>');
+ time-- != 0 || (window.location="/index.php");
+ },1000);
+ }
+
+//]]>
+</script>
+<?php
include("foot.inc");
OpenPOWER on IntegriCloud