aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/openvpn.php
diff options
context:
space:
mode:
authorPim van den Berg2014-05-03 11:15:53 +0200
committerPim van den Berg2014-05-03 11:15:53 +0200
commit1c888304d33a8c1405b8716356ae300fad39521c (patch)
treece0f5ef1946da9fd006a333f49233007fa574ae4 /plugin/openvpn.php
parentinc: mv graphs_from_plugin, build_url functions to html.inc.php (diff)
downloadapt-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.php4
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';
13switch(GET('t')) { 13switch(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 );