GetMac 464 B

1234567891011
  1. #!/usr/local/bin/php
  2. <?php
  3. $login=$argv[1];
  4. include('mysql.php');
  5. $macq='SELECT `nethosts`.`mac` FROM `users` INNER JOIN `nethosts` USING (`ip`) WHERE `users`.`login`="' . $login . '"';
  6. $mac=DB_query($macq);
  7. while ($line3 = DB_fetch_array($mac)) {
  8. $macval = $line3['mac'];
  9. print($macval);
  10. }
  11. ?>