Subversion Repositories uuid_mac_utils

Rev

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

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