diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 6 | ||||
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 4 |
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"); |