summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-16 23:16:58 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-16 23:16:58 +0545
commit6e3488e958f8f1e548962a7f07cca8f45f106a46 (patch)
treefaa73d19c44557e5de589a0384f3f9e64af948ab /src/usr/local/www/services_dhcp_edit.php
parente84865c8c5d72b44000aee8c1c3cf97c22686f9d (diff)
downloadpfsense-6e3488e958f8f1e548962a7f07cca8f45f106a46.zip
pfsense-6e3488e958f8f1e548962a7f07cca8f45f106a46.tar.gz
Code style services dhcp dnsmasq dyndns
Diffstat (limited to 'src/usr/local/www/services_dhcp_edit.php')
-rw-r--r--src/usr/local/www/services_dhcp_edit.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/usr/local/www/services_dhcp_edit.php b/src/usr/local/www/services_dhcp_edit.php
index 041fd3d..3a6b753 100644
--- a/src/usr/local/www/services_dhcp_edit.php
+++ b/src/usr/local/www/services_dhcp_edit.php
@@ -84,8 +84,9 @@ require("guiconfig.inc");
$if = $_GET['if'];
-if ($_POST['if'])
+if ($_POST['if']) {
$if = $_POST['if'];
+}
if (!$if) {
header("Location: services_dhcp.php");
@@ -398,7 +399,7 @@ if ($_POST) {
// Get our MAC address
$ip = $_SERVER['REMOTE_ADDR'];
$mymac = `/usr/sbin/arp -an | grep '('{$ip}')' | cut -d" " -f4`;
-$mymac = str_replace("\n","",$mymac);
+$mymac = str_replace("\n", "", $mymac);
$closehead = false;
$pgtitle = array(gettext("Services"), gettext("DHCP"), gettext("Edit static mapping"));
@@ -406,8 +407,9 @@ $shortcut_section = "dhcp";
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
$form = new Form();
@@ -455,7 +457,7 @@ $section->addInput(new Form_Input(
$pconfig['hostname']
))->setHelp('Name of the host, without domain part.');
-if($netboot_enabled) {
+if ($netboot_enabled) {
$section->addInput(new Form_Input(
'filename',
'Netboot filename',
@@ -682,7 +684,7 @@ print($form);
<script type="text/javascript">
//<![CDATA[
-events.push(function(){
+events.push(function() {
function hideDDNS(hide) {
hideCheckbox('ddnsupdate', hide);
OpenPOWER on IntegriCloud