Subversion Repositories uuid_mac_utils

Rev

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

  1. <?php
  2.  
  3. header('Content-Type:text/html; charset=utf-8');
  4.  
  5. ?><html>
  6.  
  7. <head>
  8.         <meta charset="UTF-8">
  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.  
  21. include_once __DIR__ . '/includes/mac_utils.inc.php';
  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.  
  37.