summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorheper <heper@users.noreply.github.com>2015-11-06 18:01:12 +0100
committerheper <heper@users.noreply.github.com>2015-11-06 18:01:12 +0100
commit18d316a5bb5b2e18f0cb9d4cbe72c92f5d945393 (patch)
tree3e0205c5ad54121fd7a3d7e6ce79cfe34205bdc3 /src/usr/local/www/services_dhcp.php
parent9dbbb0a3006ebaa3cc29ce0d1a778be10c95b0e1 (diff)
downloadpfsense-18d316a5bb5b2e18f0cb9d4cbe72c92f5d945393.zip
pfsense-18d316a5bb5b2e18f0cb9d4cbe72c92f5d945393.tar.gz
add dhcpd rrd graph
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index de71132..f9606ac 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -202,6 +202,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'];
@@ -565,6 +566,10 @@ 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'];
+ }
// Handle the custom options rowhelper
if (isset($dhcpdconf['numberoptions']['item'])) {
@@ -956,6 +961,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