scan_control.php 523 B

123456789101112131415161718192021
  1. <?php
  2. if(!DEFINED('EGP'))
  3. exit(header('Refresh: 0; URL=http://'.$_SERVER['SERVER_NAME'].'/404'));
  4. class scan_control extends cron
  5. {
  6. function __construct()
  7. {
  8. global $cfg, $sql;
  9. include(LIB.'ssh.php');
  10. include(LIB.'control/control.php');
  11. $sql->query('SELECT `id` FROM `control` ORDER BY `id` ASC');
  12. while($ctrl = $sql->get())
  13. ctrl::update_status($ctrl['id'], $ssh);
  14. return NULL;
  15. }
  16. }
  17. ?>