Subversion Repositories uuid_mac_utils

Rev

Rev 2 | Rev 14 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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