diff options
author | Pim van den Berg | 2009-09-28 19:53:38 +0200 |
---|---|---|
committer | Pim van den Berg | 2009-09-28 20:05:29 +0200 |
commit | db5bc6fbd9a568bd3267fecff076da455d5e23f7 (patch) | |
tree | 7d215ed55f1aee8a41172def9707e58e9d91c003 /plugin/irq.php | |
parent | add a footer to each page (diff) | |
download | apt-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 'plugin/irq.php')
-rw-r--r-- | plugin/irq.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/irq.php b/plugin/irq.php index 2759c0e..6a05245 100644 --- a/plugin/irq.php +++ b/plugin/irq.php | |||
@@ -2,15 +2,15 @@ | |||
2 | 2 | ||
3 | # Collectd IRQ plugin | 3 | # Collectd IRQ plugin |
4 | 4 | ||
5 | require_once $CONFIG['webdir'].'/conf/config.php'; | 5 | require_once 'conf/common.inc.php'; |
6 | require_once $CONFIG['webdir'].'/type/GenericStacked.class.php'; | 6 | require_once 'type/GenericStacked.class.php'; |
7 | 7 | ||
8 | ## LAYOUT | 8 | ## LAYOUT |
9 | # irq/ | 9 | # irq/ |
10 | # irq/irq-XX.rrd | 10 | # irq/irq-XX.rrd |
11 | 11 | ||
12 | # grouped | 12 | # grouped |
13 | require_once $CONFIG['webdir'].'/inc/collectd.inc.php'; | 13 | require_once 'inc/collectd.inc.php'; |
14 | $tinstance = collectd_plugindetail($host, $plugin, 'ti'); | 14 | $tinstance = collectd_plugindetail($host, $plugin, 'ti'); |
15 | sort($tinstance); | 15 | sort($tinstance); |
16 | 16 | ||