summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-16 01:18:46 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-16 01:18:46 -0600
commit4e82cebf52022a4ab4ba3fe5ae6226fbf29864f1 (patch)
treee920cdf16b890fa758a3c02a31c764e9b2266cd1 /usr/local/www/services_dhcp.php
parentf2b4a29b373672c912a6288a98c2516023dfb4a1 (diff)
downloadpfsense-4e82cebf52022a4ab4ba3fe5ae6226fbf29864f1.zip
pfsense-4e82cebf52022a4ab4ba3fe5ae6226fbf29864f1.tar.gz
Don't show a big red "alarm"-looking message on every visit to the DHCP/DHCPv6 Server pages. Confuses people in that context, and it's not something that justifies highlighting in such a fashion. Move the message to show when you have no eligible interfaces.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rw-r--r--usr/local/www/services_dhcp.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index ab0219d..730dc77 100644
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -107,10 +107,7 @@ if($config['installedpackages']['olsrd']) {
break;
}
}
-}
-
-if (!$_GET['if'])
- $savemsg = gettext("The DHCP Server can only be enabled on interfaces configured with static IP addresses") . ".<br/><br/>" . gettext("Only interfaces configured with a static IP will be shown") . ".";
+}
$iflist = get_configured_interface_with_descr();
@@ -758,6 +755,7 @@ include("head.inc");
$tabscounter++;
}
if ($tabscounter == 0) {
+ echo "<b>" . gettext("The DHCP Server can only be enabled on interfaces configured with a static IPv4 address. This system has none.") . "<br/><br/>";
echo "</td></tr></table></form>";
include("fend.inc");
echo "</body>";
OpenPOWER on IntegriCloud