diff options
author | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-05-03 11:15:53 +0200 |
commit | 1c888304d33a8c1405b8716356ae300fad39521c (patch) | |
tree | ce0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/openvpn.php | |
parent | inc: mv graphs_from_plugin, build_url functions to html.inc.php (diff) | |
download | apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.zip apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.gz apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.bz2 apt-panopticon_cgp-1c888304d33a8c1405b8716356ae300fad39521c.tar.xz |
type/Default: don't depend on external function GET
Diffstat (limited to 'plugin/openvpn.php')
-rw-r--r-- | plugin/openvpn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/openvpn.php b/plugin/openvpn.php index 0f1a2c2..429964b 100644 --- a/plugin/openvpn.php +++ b/plugin/openvpn.php | |||
@@ -13,7 +13,7 @@ require_once 'inc/collectd.inc.php'; | |||
13 | switch(GET('t')) { | 13 | switch(GET('t')) { |
14 | case 'if_octets': | 14 | case 'if_octets': |
15 | require_once 'type/GenericIO.class.php'; | 15 | require_once 'type/GenericIO.class.php'; |
16 | $obj = new Type_GenericIO($CONFIG); | 16 | $obj = new Type_GenericIO($CONFIG, $_GET); |
17 | $obj->data_sources = array('rx', 'tx'); | 17 | $obj->data_sources = array('rx', 'tx'); |
18 | $obj->ds_names = array( | 18 | $obj->ds_names = array( |
19 | 'rx' => 'Receive', | 19 | 'rx' => 'Receive', |
@@ -30,7 +30,7 @@ switch(GET('t')) { | |||
30 | break; | 30 | break; |
31 | case 'users': | 31 | case 'users': |
32 | require_once 'type/Default.class.php'; | 32 | require_once 'type/Default.class.php'; |
33 | $obj = new Type_Default($CONFIG); | 33 | $obj = new Type_Default($CONFIG, $_GET); |
34 | $obj->ds_names = array( | 34 | $obj->ds_names = array( |
35 | 'value' => 'Users', | 35 | 'value' => 'Users', |
36 | ); | 36 | ); |