summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
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