cj_index.php 758 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * 队列
  4. *
  5. *
  6. * 计划任务触发 by abc.com
  7. */
  8. $_SERVER['argv'][1] = $_GET['act'];
  9. @$_SERVER['argv'][2] = $_GET['op'];
  10. if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
  11. define('APP_ID','crontab');
  12. define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
  13. define('TRANS_MASTER',true);
  14. if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
  15. if (!@include(BASE_CORE_PATH.'/33hao.php')) exit('33hao.php isn\'t exists!');
  16. if (PHP_SAPI == 'cli') {
  17. $_GET['act'] = $_SERVER['argv'][1];
  18. $_GET['op'] = empty($_SERVER['argv'][2]) ? 'index' : $_SERVER['argv'][2];
  19. }
  20. if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
  21. Base::run();
  22. ?>