summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-29 03:15:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-29 03:15:42 +0000
commit2ee0410f9eb0a3c33ada2eeb561cb0e6d069f27f (patch)
treebc01f6c2e362b58bc010b32a65a94266cca6d5ec /usr/local/www
parente3a13b00682d61838628570e6d634654bf7f34fd (diff)
downloadpfsense-2ee0410f9eb0a3c33ada2eeb561cb0e6d069f27f.zip
pfsense-2ee0410f9eb0a3c33ada2eeb561cb0e6d069f27f.tar.gz
Honor $g['services_dhcp_server_enable']
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/services_dhcp.php6
-rwxr-xr-xusr/local/www/services_dhcp_edit.php4
2 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 5be708b..da7a2d7 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -36,9 +36,13 @@
##|*MATCH=services_dhcp.php*
##|-PRIV
-
require("guiconfig.inc");
+if(!$g['services_dhcp_server_enable']) {
+ Header("Location: /");
+ exit;
+}
+
$if = $_GET['if'];
if ($_POST['if'])
$if = $_POST['if'];
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 7a30ec2..2844183 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -36,6 +36,10 @@
##|*MATCH=services_dhcp_edit.php*
##|-PRIV
+if(!$g['services_dhcp_server_enable']) {
+ Header("Location: /");
+ exit;
+}
require("guiconfig.inc");
OpenPOWER on IntegriCloud