diff options
author | smos <seth.mos@dds.nl> | 2010-07-24 21:40:22 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2010-07-24 21:41:42 +0200 |
commit | 3869a323ffa9507de3d2422e0a2349015f86a66e (patch) | |
tree | cdf272eef40fcc63d5c1e85766bdc8780ab4d598 /usr/local/www/status_rrd_graph_settings.php | |
parent | f6d0ad0ff1f941183afd1d5fc4989969109441d2 (diff) | |
download | pfsense-3869a323ffa9507de3d2422e0a2349015f86a66e.zip pfsense-3869a323ffa9507de3d2422e0a2349015f86a66e.tar.gz |
Add the openvpn users graph, add the colors to all the themes colors include. Add vpn tab
on the settings page, it didn't show although it should.
Diffstat (limited to 'usr/local/www/status_rrd_graph_settings.php')
-rwxr-xr-x | usr/local/www/status_rrd_graph_settings.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph_settings.php b/usr/local/www/status_rrd_graph_settings.php index 7f8d4ae..cfd1a0e 100755 --- a/usr/local/www/status_rrd_graph_settings.php +++ b/usr/local/www/status_rrd_graph_settings.php @@ -77,9 +77,11 @@ if ($_POST) { } } + + $rrddbpath = "/var/db/rrd/"; -/* XXX: (billm) do we have an exec() type function that does this type of thing? */ -exec("cd $rrddbpath;/usr/bin/find -name *.rrd", $databases); +chdir($rrddbpath); +$databases = glob("*.rrd"); foreach($databases as $database) { if(stristr($database, "wireless")) { @@ -91,6 +93,9 @@ foreach($databases as $database) { if(stristr($database, "cellular")) { $cellular = true; } + if(stristr($database, "-vpnusers")) { + $vpnusers = true; + } } $pgtitle = array("Status","RRD Graphs"); |