From 2ee0410f9eb0a3c33ada2eeb561cb0e6d069f27f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 29 Oct 2008 03:15:42 +0000 Subject: Honor $g['services_dhcp_server_enable'] --- usr/local/www/services_dhcp.php | 6 +++++- usr/local/www/services_dhcp_edit.php | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'usr/local/www') 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"); -- cgit v1.1