mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
online users fix
This commit is contained in:
@ -921,9 +921,14 @@ var Piler =
|
||||
clear_ldap_test: function()
|
||||
{
|
||||
$('#LDAPTEST').html('');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
reload_page: function()
|
||||
{
|
||||
location.reload(true);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,14 @@
|
||||
<link rel="shortcut icon" href="/view/theme/default/assets/ico/favicon.png">
|
||||
</head>
|
||||
|
||||
<body<?php if(isset($this->request->get['route']) && $this->request->get['route'] == 'health/health') { ?> onload="Piler.load_health(); setInterval('Piler.load_health()', Piler.health_refresh * 1000);"<?php } ?>>
|
||||
<body<?php
|
||||
|
||||
if(isset($this->request->get['route'])) {
|
||||
|
||||
if($this->request->get['route'] == 'health/health') { ?> onload="Piler.load_health(); setInterval('Piler.load_health()', Piler.health_refresh * 1000);"<?php }
|
||||
if($this->request->get['route'] == 'stat/online') { ?> onload="setInterval('Piler.reload_page()', Piler.health_refresh * 1000);"<?php }
|
||||
|
||||
} ?>>
|
||||
|
||||
<div id="piler1" class="container">
|
||||
|
||||
|
Reference in New Issue
Block a user