Subversion Repositories uuid_mac_utils

Rev

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

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