';
+ $.jGrowl.defaults.sticky = true;
+ $.jGrowl.defaults.check = 100;
+ $.jGrowl.defaults.position = '=$notify['position']?>';
+ $.jGrowl.defaults.themeState = '';
Shadowbox.setup('a.sb-enable', {modal:true});
});
var mobiles=['ipad','iphone','ipod','android'];
@@ -218,7 +274,7 @@ for (var i=0,mobile; mobile=mobiles[i]; i++) {
}
-
+
";
$tab = 1;
$view = $myPage['name'];
-$pages = array();
+$pages = [];
if ($myPage['text']) $pages[$view] = $myPage;
if ($myPage['Type']=='xmenu') $pages = array_merge($pages, find_pages($view));
if (isset($myPage['Tabs'])) $display['tabs'] = strtolower($myPage['Tabs'])=='true' ? 0 : 1;
@@ -308,16 +369,16 @@ foreach ($pages as $page) {
echo '";
-
RebootBringing system down... 0
+
RebootSystem is going down... 0
diff --git a/shutdown.htm b/shutdown.htm
index 51ba28826..3b827fe8b 100644
--- a/shutdown.htm
+++ b/shutdown.htm
@@ -15,14 +15,14 @@ function timer() {
return Math.round((now.getTime()-start.getTime())/1000);
}
function online() {
- $.ajax({url:'/webGui/include/ProcessStatus.php',type:'POST',data:{name:'emhttp'},timeout:5000})
- .done(function(){$('div.notice').html('
ShutdownBringing system down... '+timer()); setTimeout(online,5000);})
- .fail(function(){$('div.notice').html('
ShutdownSystem goes offline... 0'); start=new Date(); setTimeout(offline,5000);});
+ $.ajax({url:'/webGui/include/ProcessStatus.php',type:'POST',data:{name:'emhttp',update:true},timeout:5000})
+ .done(function(){$('div.notice').html('
ShutdownSystem is going down... '+timer()); setTimeout(online,5000);})
+ .fail(function(){$('div.notice').html('
ShutdownSystem is offline... 0'); start=new Date(); setTimeout(offline,5000);});
}
function offline() {
var time = timer();
if (time < 30) {
- $('div.notice').html('
ShutdownSystem goes offline... '+time);
+ $('div.notice').html('
ShutdownSystem is offline... '+time);
setTimeout(offline,5000);
} else {
$('div.notice').html('
ShutdownSystem is powered off...');
@@ -30,5 +30,5 @@ function offline() {
}
-
ShutdownBringing system down... 0
+
ShutdownSystem is going down... 0