diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-13 16:02:13 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-13 16:02:13 -0500 |
commit | 99e2a6cefbec7153a1d32c3c55fe5d0a6f00b9bf (patch) | |
tree | afed0ec0af6fe898b840ceea071fd6a4087c76f9 /src/usr/local/www/reboot.php | |
parent | d729ab36575175901bae2a2d0fd9a93389a8b7ec (diff) | |
download | pfsense-99e2a6cefbec7153a1d32c3c55fe5d0a6f00b9bf.zip pfsense-99e2a6cefbec7153a1d32c3c55fe5d0a6f00b9bf.tar.gz |
Revised base firmware update
Diffstat (limited to 'src/usr/local/www/reboot.php')
-rwxr-xr-x | src/usr/local/www/reboot.php | 35 |
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"); |