Subversion Repositories uuid_mac_utils

Rev

Rev 5 | Rev 15 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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