GetExtNets 287 B

123456789101112
  1. #!/usr/local/bin/php
  2. <?php
  3. $login = $argv[1];
  4. $cfid = $argv[2];
  5. include('mysql.php');
  6. $query = 'SELECT * FROM `netextpools` WHERE `login`="' . $login . '"';
  7. $raw = DB_query($query);
  8. while ($line2 = DB_fetch_array($raw)) {
  9. print($line2['pool'] . '/' . $line2['netmask'] . "\n");
  10. }
  11. ?>