summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-16 22:19:45 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-16 22:19:45 +0545
commit8e048cc13a6eae2ab72f08f4c5d6fdc94ddf7a8a (patch)
treef63965a3be0f6c551cc973fe327d0b2fe58bf7e7 /src/usr/local/www/services_captiveportal_mac_edit.php
parent2eb5a0bf9d69fbedc6d4e9c1b5665ce9e6396c2a (diff)
downloadpfsense-8e048cc13a6eae2ab72f08f4c5d6fdc94ddf7a8a.zip
pfsense-8e048cc13a6eae2ab72f08f4c5d6fdc94ddf7a8a.tar.gz
Code style services captive portal
Diffstat (limited to 'src/usr/local/www/services_captiveportal_mac_edit.php')
-rw-r--r--src/usr/local/www/services_captiveportal_mac_edit.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/local/www/services_captiveportal_mac_edit.php b/src/usr/local/www/services_captiveportal_mac_edit.php
index ab19697..23f3c8f 100644
--- a/src/usr/local/www/services_captiveportal_mac_edit.php
+++ b/src/usr/local/www/services_captiveportal_mac_edit.php
@@ -211,12 +211,13 @@ if ($_POST) {
// Get the MAC address
$ip = $_SERVER['REMOTE_ADDR'];
$mymac = `/usr/sbin/arp -an | grep '('{$ip}')' | head -n 1 | cut -d" " -f4`;
-$mymac = str_replace("\n","",$mymac);
+$mymac = str_replace("\n", "", $mymac);
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
$form = new Form();
@@ -295,7 +296,7 @@ print($form);
<script type="text/javascript">
//<![CDATA[
-events.push(function(){
+events.push(function() {
// Make the ‘Copy My MAC’ button a plain button, not a submit button
$("#btnmymac").prop('type','button');
OpenPOWER on IntegriCloud