aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorKarol Nowacki2011-04-21 20:24:38 +0200
committerPim van den Berg2011-04-21 20:30:07 +0200
commit1bce11aec73bcd6f90fe8e72877b4061ae8d45af (patch)
tree082af880c39ee01a241c0467fec29c239ef0155b /plugin
parentplugin/varnish: deduplicate rrd_format values (diff)
downloadapt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.zip
apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.gz
apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.bz2
apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.xz
resolve php notices
Including a lot of undefined $_GET values.
Diffstat (limited to '')
-rw-r--r--plugin.php6
-rw-r--r--plugin/memcached.php2
-rw-r--r--plugin/swap.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/plugin.php b/plugin.php
index 54f75fb..4e8384c 100644
--- a/plugin.php
+++ b/plugin.php
@@ -4,10 +4,10 @@ require_once 'conf/common.inc.php';
4require_once 'inc/functions.inc.php'; 4require_once 'inc/functions.inc.php';
5require_once 'inc/html.inc.php'; 5require_once 'inc/html.inc.php';
6 6
7$host = validate_get($_GET['h'], 'host'); 7$host = validate_get(GET('h'), 'host');
8$plugin = validate_get($_GET['p'], 'plugin'); 8$plugin = validate_get(GET('p'), 'plugin');
9 9
10if ($_GET['a'] == 'del') { 10if (GET('a') == 'del') {
11 plugin_header($host, $plugin, 1); 11 plugin_header($host, $plugin, 1);
12} else { 12} else {
13 plugin_header($host, $plugin, 0); 13 plugin_header($host, $plugin, 0);
diff --git a/plugin/memcached.php b/plugin/memcached.php
index b30c27c..e011c9e 100644
--- a/plugin/memcached.php
+++ b/plugin/memcached.php
@@ -21,7 +21,7 @@ require_once 'inc/collectd.inc.php';
21# ps_cputime.rrd 21# ps_cputime.rrd
22 22
23 23
24switch($_GET['t']) { 24switch(GET('t')) {
25# df-cache.rrd 25# df-cache.rrd
26 case 'df': 26 case 'df':
27 require_once 'type/Default.class.php'; 27 require_once 'type/Default.class.php';
diff --git a/plugin/swap.php b/plugin/swap.php
index 9449b55..c24d90b 100644
--- a/plugin/swap.php
+++ b/plugin/swap.php
@@ -11,7 +11,7 @@ require_once 'inc/collectd.inc.php';
11# swap/swap-free.rrd 11# swap/swap-free.rrd
12# swap/swap-used.rrd 12# swap/swap-used.rrd
13 13
14switch($_GET['t']) { 14switch(GET('t')) {
15 case 'swap': 15 case 'swap':
16 require_once 'type/GenericStacked.class.php'; 16 require_once 'type/GenericStacked.class.php';
17 $obj = new Type_GenericStacked($CONFIG); 17 $obj = new Type_GenericStacked($CONFIG);