aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/vnstat_php_frontend/config.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-12-11 09:50:05 -0500
committerjim-p <jimp@pfsense.org>2014-12-11 09:50:05 -0500
commit955720cd013bf12d6e65da7db0e87096517a3c9b (patch)
tree20e0eeb6a498ef3320e66e04ef2dd2a42ffb92e3 /config/vnstat2/vnstat_php_frontend/config.php
parent5a644769318616028ceeec8ceebff19075a50c68 (diff)
downloadpfsense-packages-955720cd013bf12d6e65da7db0e87096517a3c9b.tar.gz
pfsense-packages-955720cd013bf12d6e65da7db0e87096517a3c9b.tar.bz2
pfsense-packages-955720cd013bf12d6e65da7db0e87096517a3c9b.zip
Update vnstat PHP frontend to 1.5.2, disable PHP error reporting.
Diffstat (limited to 'config/vnstat2/vnstat_php_frontend/config.php')
-rw-r--r--config/vnstat2/vnstat_php_frontend/config.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/config/vnstat2/vnstat_php_frontend/config.php b/config/vnstat2/vnstat_php_frontend/config.php
index 3a4cd51a..9f2102ac 100644
--- a/config/vnstat2/vnstat_php_frontend/config.php
+++ b/config/vnstat2/vnstat_php_frontend/config.php
@@ -17,10 +17,10 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//
- // see file COPYING or at http://www.gnu.org/licenses/gpl.html
+ // see file COPYING or at http://www.gnu.org/licenses/gpl.html
// for more information.
//
- error_reporting(E_ALL | E_NOTICE);
+ //error_reporting(E_ALL | E_NOTICE);
//
// configuration parameters
@@ -30,6 +30,9 @@
$locale = 'en_US.UTF-8';
$language = 'en';
+ // Set local timezone
+ date_default_timezone_set("Europe/Amsterdam");
+
// list of network interfaces monitored by vnStat
$iface_list = array('em0', 'em1');
@@ -43,7 +46,7 @@
//
// There are two possible sources for vnstat data. If the $vnstat_bin
// variable is set then vnstat is called directly from the PHP script
- // to get the interface data.
+ // to get the interface data.
//
// The other option is to periodically dump the vnstat interface data to
// a file (e.g. by a cronjob). In that case the $vnstat_bin variable
@@ -52,18 +55,23 @@
//
// You can generate vnstat dumps with the command:
// vnstat --dumpdb -i $iface > /path/to/data_dir/vnstat_dump_$iface
- //
+ //
$vnstat_bin = '/usr/local/bin/vnstat';
$data_dir = './dumps';
// graphics format to use: svg or png
$graph_format='svg';
-
+
// Font to use for PNG graphs
define('GRAPH_FONT',dirname(__FILE__).'/VeraBd.ttf');
// Font to use for SVG graphs
define('SVG_FONT', 'Verdana');
- define('DEFAULT_COLORSCHEME', 'pfSense');
-?> \ No newline at end of file
+ // Default theme
+ define('DEFAULT_COLORSCHEME', 'pfSense');
+
+ // SVG Depth scaling factor
+ define('SVG_DEPTH_SCALING', 1);
+
+?>