summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-07 22:43:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-07 22:43:29 +0000
commit3af54e4809b9a8a75dcdc83b215276f916d345d1 (patch)
treeb36f67e92c05418dcc4b33567b0a8a59585ae71d /usr/local/www/status_services.php
parent879811c6c2bc19b27204a194b93723b364d6904b (diff)
downloadpfsense-3af54e4809b9a8a75dcdc83b215276f916d345d1.zip
pfsense-3af54e4809b9a8a75dcdc83b215276f916d345d1.tar.gz
Use is_dhcp_server_enabled() and fix DHCP Server from not displaying.
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-xusr/local/www/status_services.php12
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>
OpenPOWER on IntegriCloud