diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 20:13:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 20:13:37 +0000 |
commit | 87c8f2c991b68033295dfb2a59484f578ec5b8d3 (patch) | |
tree | 7aeea4183281322cacc1c443747951a13c7a86f2 /usr/local/www/services_captiveportal_mac_edit.php | |
parent | 3aed9904470fc5aaba737b969be8f910b1a85785 (diff) | |
download | pfsense-87c8f2c991b68033295dfb2a59484f578ec5b8d3.zip pfsense-87c8f2c991b68033295dfb2a59484f578ec5b8d3.tar.gz |
Sync with Pascal's latest versin
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-x | usr/local/www/services_captiveportal_mac_edit.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php index f763bac..f204d0f 100755 --- a/usr/local/www/services_captiveportal_mac_edit.php +++ b/usr/local/www/services_captiveportal_mac_edit.php @@ -29,6 +29,7 @@ POSSIBILITY OF SUCH DAMAGE. */ +$pgtitle = array("Services", "Captive portal", "Edit pass-through MAC address"); require("guiconfig.inc"); if (!is_array($config['captiveportal']['passthrumac'])) @@ -57,6 +58,8 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); + $_POST['mac'] = str_replace("-", ":", $_POST['mac']); + if (($_POST['mac'] && !is_macaddr($_POST['mac']))) { $input_errors[] = "A valid MAC address must be specified. [".$_POST['mac']."]"; } @@ -90,24 +93,14 @@ if ($_POST) { } } ?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<title><?=gentitle("Services: Captive portal: Edit pass-through MAC address");?></title> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -<link href="gui.css" rel="stylesheet" type="text/css"> -</head> - -<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> -<p class="pgtitle">Services: Captive portal: Edit pass-through MAC address</p> <?php if ($input_errors) print_input_errors($input_errors); ?> <form action="services_captiveportal_mac_edit.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> <td width="22%" valign="top" class="vncellreq">MAC address</td> <td width="78%" class="vtable"> - <input name="mac" type="text" class="formfld" id="mac" size="17" value="<?=htmlspecialchars($pconfig['mac']);?>"> + <?=$mandfldhtml;?><input name="mac" type="text" class="formfld" id="mac" size="17" value="<?=htmlspecialchars($pconfig['mac']);?>"> <br> <span class="vexpl">MAC address (6 hex octets separated by colons)</span></td> </tr> @@ -130,5 +123,3 @@ if ($_POST) { </table> </form> <?php include("fend.inc"); ?> -</body> -</html> |