summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-10 10:25:30 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-10 10:25:30 -0500
commitaf9fd483747d1070400f475d79a8d13b9dd5de69 (patch)
treed86e746e6c6b8e7f4becffbefd7adb6df3b24a75 /src/usr/local/www/services_dhcp.php
parentf1551428c4fe708232fc80239ec207640b058a28 (diff)
parent588a6068e476c2867948735ece7a5e8c886abd5a (diff)
downloadpfsense-af9fd483747d1070400f475d79a8d13b9dd5de69.zip
pfsense-af9fd483747d1070400f475d79a8d13b9dd5de69.tar.gz
Merge pull request #2036 from heper/patch-1
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index fb12e2b..9dff157 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -69,6 +69,8 @@
require("guiconfig.inc");
require_once("filter.inc");
+require_once('rrd.inc');
+require_once("shaper.inc");
if (!$g['services_dhcp_server_enable']) {
header("Location: /");
@@ -201,6 +203,7 @@ if (is_array($dhcpdconf)) {
$pconfig['rootpath'] = $dhcpdconf['rootpath'];
$pconfig['netmask'] = $dhcpdconf['netmask'];
$pconfig['numberoptions'] = $dhcpdconf['numberoptions'];
+ $pconfig['statsgraph'] = $dhcpdconf['statsgraph'];
}
$ifcfgip = $config['interfaces'][$if]['ipaddr'];
@@ -564,6 +567,11 @@ if (isset($_POST['submit'])) {
$dhcpdconf['filename32'] = $_POST['filename32'];
$dhcpdconf['filename64'] = $_POST['filename64'];
$dhcpdconf['rootpath'] = $_POST['rootpath'];
+ unset($dhcpdconf['statsgraph']);
+ if ($_POST['statsgraph']) {
+ $dhcpdconf['statsgraph'] = $_POST['statsgraph'];
+ enable_rrd_graphing();
+ }
// Handle the custom options rowhelper
if (isset($dhcpdconf['numberoptions']['item'])) {
@@ -955,6 +963,12 @@ if (!is_numeric($pool) && !($act == "newpool")) {
$pconfig['dhcpleaseinlocaltime']
))->setHelp('By default DHCP leases are displayed in UTC time. By checking this box DHCP lease time will be displayed in local time and set to the time zone selected.' .
' This will be used for all DHCP interfaces lease time');
+ $section->addInput(new Form_Checkbox(
+ 'statsgraph',
+ 'RRD graphs',
+ 'Enable RRD graphs',
+ $pconfig['statsgraph']
+ ))->setHelp('By default RRD graphs are disabled.');
}
// DDNS
OpenPOWER on IntegriCloud