Subversion Repositories uuid_mac_utils

Rev

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

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