debtors.php 272 B

1234567891011
  1. #!/usr/local/bin/php
  2. <?php
  3. include('mysql.php');
  4. $data_q='SELECT `ip` FROM `users` WHERE `Cash`< -`Credit`';
  5. $data=DB_query($data_q);
  6. while ($row = DB_fetch_array($data)) {
  7. shell_exec("/sbin/ipfw -q table 47 add ".$row['ip']);
  8. }
  9. ?>