diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-11-30 23:22:39 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-11-30 23:22:39 -0500 |
commit | 38f16bf27c1ce12e22e8783bea62f6c12bece4b0 (patch) | |
tree | 9aaaf5a01f202d8c78e4a1ff6c4bd472073af015 | |
parent | 92472a592842f7dc4331d057a8799301d5626abf (diff) | |
download | pfsense-38f16bf27c1ce12e22e8783bea62f6c12bece4b0.zip pfsense-38f16bf27c1ce12e22e8783bea62f6c12bece4b0.tar.gz |
Do not output pgtitle twice. Make page more html friendly.
-rwxr-xr-x | usr/local/www/services_dhcp_relay.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/usr/local/www/services_dhcp_relay.php b/usr/local/www/services_dhcp_relay.php index 10bae1e..b030bb4 100755 --- a/usr/local/www/services_dhcp_relay.php +++ b/usr/local/www/services_dhcp_relay.php @@ -176,19 +176,9 @@ function enable_change(enable_over) { <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> -<p class="pgtitle"><?=$pgtitle?></p> <form action="services_dhcp_relay.php" method="post" name="iform" id="iform"> <?php if ($input_errors) print_input_errors($input_errors); ?> <?php if ($savemsg) print_info_box($savemsg); ?> -<?php - if ($dhcpd_enabled) { - echo "DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface."; - include("fend.inc"); - echo "</body>"; - echo "</html>"; - exit; - } -?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <?php @@ -213,6 +203,15 @@ function enable_change(enable_over) { <tr> <td width="22%" valign="top" class="vtable"> </td> <td width="78%" class="vtable"> +<?php + if ($dhcpd_enabled) { + echo "DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface."; + echo "</td></tr></table></div></td></tr></table></body>"; + echo "</html>"; + include("fend.inc"); + exit; + } +?> <input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked"; ?> onClick="enable_change(false)"> <strong>Enable DHCP relay on <?=htmlspecialchars($iflist[$if]);?> |