Updated some code for associating and mac address displays

This commit is contained in:
2012-08-13 18:52:50 -07:00
parent 1166c879f5
commit 8e9686414d
3 changed files with 12 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ $message = "";
function csv_filter($value) {
return preg_replace('/[^a-z0-9:]/i','',$value);
return preg_replace('/[^a-z0-9: ]/i','',$value);
}
function is_mac($mac) {
@@ -63,7 +63,7 @@ include('header-inc.php');
<table>
<tr><td><label for="name">Your Name:</label></td><td><input type="text" id="name" name="name" /></td></tr>
<tr><td><label for="macaddress">MAC Address:</label></td><td><input type="text" id="macaddress" name="macaddress" value="<?php echo arp_lookup($_SERVER['REMOTE_ADDR']); ?>" />
<span id="autodetect"><?php if($arp_found) { echo "(Autodetected MAC from IP address ".$_SERVER['REMOTE_ADDR'].")"; } ?></span>
<span id="autodetect"><?php if($arp_found) { echo "(Autodetected your MAC from IP address ".$_SERVER['REMOTE_ADDR'].")"; } ?></span>
</td></tr>
</table>
<input type="submit" id="submit" name="submit" value="Register" />