aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/sensors.php
diff options
context:
space:
mode:
authorPim van den Berg2009-09-28 19:53:38 +0200
committerPim van den Berg2009-09-28 20:05:29 +0200
commitdb5bc6fbd9a568bd3267fecff076da455d5e23f7 (patch)
tree7d215ed55f1aee8a41172def9707e58e9d91c003 /plugin/sensors.php
parentadd a footer to each page (diff)
downloadapt-panopticon_cgp-db5bc6fbd9a568bd3267fecff076da455d5e23f7.zip
apt-panopticon_cgp-db5bc6fbd9a568bd3267fecff076da455d5e23f7.tar.gz
apt-panopticon_cgp-db5bc6fbd9a568bd3267fecff076da455d5e23f7.tar.bz2
apt-panopticon_cgp-db5bc6fbd9a568bd3267fecff076da455d5e23f7.tar.xz
change webdir/weburl and include/require usage
- Don't depend on includes from files that are included. - Don't use webdir with includes/requires (also because webdir couldn't be available in some cases). - Use common.inc.php instead of config.php in all plugins to have all configuration settings available.
Diffstat (limited to '')
-rw-r--r--plugin/sensors.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/sensors.php b/plugin/sensors.php
index ad43378..c7f038b 100644
--- a/plugin/sensors.php
+++ b/plugin/sensors.php
@@ -2,8 +2,8 @@
2 2
3# Collectd Sensors plugin 3# Collectd Sensors plugin
4 4
5require_once $CONFIG['webdir'].'/conf/config.php'; 5require_once 'conf/common.inc.php';
6require_once $CONFIG['webdir'].'/type/Default.class.php'; 6require_once 'type/Default.class.php';
7 7
8## LAYOUT 8## LAYOUT
9# disk-XXXX/ 9# disk-XXXX/
@@ -12,7 +12,7 @@ require_once $CONFIG['webdir'].'/type/Default.class.php';
12# disk-XXXX/voltage-XXXX.rrd 12# disk-XXXX/voltage-XXXX.rrd
13 13
14# grouped 14# grouped
15require_once $CONFIG['webdir'].'/inc/collectd.inc.php'; 15require_once 'inc/collectd.inc.php';
16$tinstance = collectd_plugindetail($host, $plugin, 'ti', array('t' => $type)); 16$tinstance = collectd_plugindetail($host, $plugin, 'ti', array('t' => $type));
17 17
18$obj = new Type_Default; 18$obj = new Type_Default;