Subversion Repositories uuid_mac_utils

Rev

Rev 5 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<html>
2
 
3
<head>
4
        <meta charset="iso-8859-1">
5
        <link rel="stylesheet" type="text/css" href="style.css">
6
        <title>Interprete a MAC address</title>
7
</head>
8
 
9
<body>
10
 
11
<h1>Interprete a MAC address</h1>
12
 
13
<p><a href="index.php">Back</a></p>
14
 
15
<pre><?php
16
 
17
include_once __DIR__ . '/includes/mac_utils.inc.phps';
18
 
19
$mac = isset($_GET['mac']) ? trim($_GET['mac']) : '';
20
 
21
if (!mac_valid($mac)) {
22
        echo 'This is not a valid MAC address.';
23
} else {
24
        echo decode_mac($mac);
25
}
26
 
27
?></pre>
28
 
29
</body>
30
 
31
</html>
32