summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/index.php b/index.php
index eefe3d8..fbf0c09 100644
--- a/index.php
+++ b/index.php
@@ -7,9 +7,6 @@ $update = $Config->checkUpdate();
<html lang="en">
<head>
<meta charset="utf-8">
- <?php if ($Config->get('esm:auto_refresh') > 0): ?>
- <meta http-equiv="refresh" content="<?php echo $Config->get('esm:auto_refresh'); ?>">
- <?php endif; ?>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>eZ Server Monitor - <?php echo Misc::getHostname(); ?></title>
<link rel="stylesheet" href="web/css/utilities.css" type="text/css">
@@ -35,6 +32,10 @@ $update = $Config->checkUpdate();
});
esm.getAll();
+
+ <?php if ($Config->get('esm:auto_refresh') > 0): ?>
+ setInterval(function(){ esm.getAll(); }, <?php echo $Config->get('esm:auto_refresh') * 1000; ?>);
+ <?php endif; ?>
});
</script>
</head>