diff options
author | heper <heper@users.noreply.github.com> | 2015-11-06 18:01:12 +0100 |
---|---|---|
committer | heper <heper@users.noreply.github.com> | 2015-11-06 18:01:12 +0100 |
commit | 18d316a5bb5b2e18f0cb9d4cbe72c92f5d945393 (patch) | |
tree | 3e0205c5ad54121fd7a3d7e6ce79cfe34205bdc3 /src | |
parent | 9dbbb0a3006ebaa3cc29ce0d1a778be10c95b0e1 (diff) | |
download | pfsense-18d316a5bb5b2e18f0cb9d4cbe72c92f5d945393.zip pfsense-18d316a5bb5b2e18f0cb9d4cbe72c92f5d945393.tar.gz |
add dhcpd rrd graph
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/services_dhcp.php | 11 |
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 |