Subversion Repositories uuid_mac_utils

Compare Revisions

Regard whitespace Rev 1 → Rev 2

/trunk/interprete_mac.php
0,0 → 1,32
<html>
 
<head>
<meta charset="iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Interprete a MAC address</title>
</head>
 
<body>
 
<h1>Interprete a MAC address</h1>
 
<p><a href="index.php">Back</a></p>
 
<pre><?php
 
include_once __DIR__ . '/includes/mac_utils.inc.phps';
 
$mac = isset($_GET['mac']) ? trim($_GET['mac']) : '';
 
if (!mac_valid($mac)) {
echo 'This is not a valid MAC address.';
} else {
echo decode_mac($mac);
}
 
?></pre>
 
</body>
 
</html>