aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r--inc/html.inc.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index a9e6a94..a0e2c8d 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -19,6 +19,26 @@ function html_start() {
19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
20 <title>CGP{$path}</title> 20 <title>CGP{$path}</title>
21 <link rel="stylesheet" href="{$CONFIG['weburl']}layout/style.css" type="text/css"> 21 <link rel="stylesheet" href="{$CONFIG['weburl']}layout/style.css" type="text/css">
22
23EOT;
24
25 if ($CONFIG['graph_type'] == 'canvas') {
26 echo <<<EOT
27 <script type="text/javascript" src="{$CONFIG['weburl']}js/sprintf.js"></script>
28 <script type="text/javascript" src="{$CONFIG['weburl']}js/strftime.js"></script>
29 <script type="text/javascript" src="{$CONFIG['weburl']}js/RrdRpn.js"></script>
30 <script type="text/javascript" src="{$CONFIG['weburl']}js/RrdTime.js"></script>
31 <script type="text/javascript" src="{$CONFIG['weburl']}js/RrdGraph.js"></script>
32 <script type="text/javascript" src="{$CONFIG['weburl']}js/RrdGfxCanvas.js"></script>
33 <script type="text/javascript" src="{$CONFIG['weburl']}js/binaryXHR.js"></script>
34 <script type="text/javascript" src="{$CONFIG['weburl']}js/rrdFile.js"></script>
35 <script type="text/javascript" src="{$CONFIG['weburl']}js/RrdDataFile.js"></script>
36 <script type="text/javascript" src="{$CONFIG['weburl']}js/RrdCmdLine.js"></script>
37
38EOT;
39 }
40
41echo <<<EOT
22</head> 42</head>
23<body> 43<body>
24 44
@@ -52,6 +72,17 @@ function html_end() {
52<div id="footer"> 72<div id="footer">
53<hr><span class="small"><a href="http://pommi.nethuis.nl/category/cgp/" rel="external">Collectd Graph Panel</a> ({$version}) is distributed under the <a href="{$CONFIG['weburl']}doc/LICENSE" rel="licence">GNU General Public License (GPLv3)</a></span> 73<hr><span class="small"><a href="http://pommi.nethuis.nl/category/cgp/" rel="external">Collectd Graph Panel</a> ({$version}) is distributed under the <a href="{$CONFIG['weburl']}doc/LICENSE" rel="licence">GNU General Public License (GPLv3)</a></span>
54</div> 74</div>
75
76EOT;
77
78 if ($CONFIG['graph_type'] == 'canvas') {
79 echo <<<EOT
80<script type="text/javascript" src="{$CONFIG['weburl']}js/CGP.js"></script>
81
82EOT;
83 }
84
85echo <<<EOT
55</body> 86</body>
56</html> 87</html>
57EOT; 88EOT;