Honor $g['services_dhcp_server_enable']

This commit is contained in:
Scott Ullrich 2008-10-29 03:15:42 +00:00
parent e3a13b0068
commit 2ee0410f9e
2 changed files with 9 additions and 1 deletions

View File

@ -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'];

View File

@ -36,6 +36,10 @@
##|*MATCH=services_dhcp_edit.php*
##|-PRIV
if(!$g['services_dhcp_server_enable']) {
Header("Location: /");
exit;
}
require("guiconfig.inc");