aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc
diff options
context:
space:
mode:
authorPim van den Berg2013-12-29 16:27:24 +0100
committerPim van den Berg2013-12-29 16:28:38 +0100
commit1e815e7c23b416acb3b8e88acdb275416c0afa1a (patch)
treea7d18912b44f734a6a9f2435e6697e69bb8ce3a1 /inc
parentMerge pull request #38 from oohlaf/timezone (diff)
downloadapt-panopticon_cgp-1e815e7c23b416acb3b8e88acdb275416c0afa1a.zip
apt-panopticon_cgp-1e815e7c23b416acb3b8e88acdb275416c0afa1a.tar.gz
apt-panopticon_cgp-1e815e7c23b416acb3b8e88acdb275416c0afa1a.tar.bz2
apt-panopticon_cgp-1e815e7c23b416acb3b8e88acdb275416c0afa1a.tar.xz
automatic page refresh support + config setting
Closes: https://github.com/pommi/CGP/pull/35
Diffstat (limited to 'inc')
-rw-r--r--inc/html.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index 9a5344b..478045c 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -22,6 +22,12 @@ function html_start() {
22 <meta name="viewport" content="width=1050, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"> 22 <meta name="viewport" content="width=1050, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
23 23
24EOT; 24EOT;
25 if (isset($CONFIG['page_refresh']) && is_numeric($CONFIG['page_refresh'])) {
26 echo <<<EOT
27 <meta http-equiv="refresh" content="{$CONFIG['page_refresh']}">
28
29EOT;
30 }
25 31
26 if ($CONFIG['graph_type'] == 'canvas') { 32 if ($CONFIG['graph_type'] == 'canvas') {
27 echo <<<EOT 33 echo <<<EOT