diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-07 22:43:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-07 22:43:29 +0000 |
commit | 3af54e4809b9a8a75dcdc83b215276f916d345d1 (patch) | |
tree | b36f67e92c05418dcc4b33567b0a8a59585ae71d | |
parent | 879811c6c2bc19b27204a194b93723b364d6904b (diff) | |
download | pfsense-3af54e4809b9a8a75dcdc83b215276f916d345d1.zip pfsense-3af54e4809b9a8a75dcdc83b215276f916d345d1.tar.gz |
Use is_dhcp_server_enabled() and fix DHCP Server from not displaying.
-rwxr-xr-x | usr/local/www/status_services.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index ef74b20..da257dd 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -41,7 +41,7 @@ if($_GET['mode'] == "restartservice" and $_GET['service']) { if($_GET['mode'] == "startservice" and $_GET['service']) { switch($_GET['service']) { case 'bsnmpd': - services_snmpd_configure(); + services_snmpd_configure(); break; case 'dnsmasq': services_dnsmasq_configure(); @@ -93,7 +93,7 @@ include("fbegin.inc"); <?php -exec("/bin/ps ax | awk '{ print $5 }'", $psout); +exec("/bin/ps ax | awk '{ print $5 }'", $psout); array_shift($psout); foreach($psout as $line) { $ps[] = trim(array_pop(explode(' ', array_pop(explode('/', $line))))); @@ -122,8 +122,8 @@ if(isset($config['captiveportal']['enable'])) { $iflist = array("lan" => "LAN"); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $oc = $config['interfaces']['opt' . $i]; - if (isset($oc['enable']) && $oc['if'] && (!$oc['bridge'])) - $iflist['opt' . $i] = "opt{$i}"; + if (isset($oc['enable']) && $oc['if'] && (!$oc['bridge'])) + $iflist['opt' . $i] = "opt{$i}"; } $show_dhcprelay = false; foreach($iflist as $if) { @@ -138,7 +138,7 @@ if($show_dhcprelay == true) { unset($pconfig); } -if(isset($config['dhcpd']['enable'])) { +if(is_dhcp_server_enabled()) { $pconfig['name'] = "dhcpd"; $pconfig['description'] = "DHCP Server"; $services[] = $pconfig; @@ -198,7 +198,7 @@ if($services) { </tr></table> </div> -<meta http-equiv="refresh" content="120;url=<?php echo $_SERVER['SCRIPT_NAME']; ?>"> +<meta http-equiv="refresh" content="120;url=<?php echo $_SERVER['SCRIPT_NAME']; ?>"> <?php include("fend.inc"); ?> </body> |