index.php 940 B

123456789101112131415161718192021222324252627
  1. <?php
  2. if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
  3. define('InShopNC',true);
  4. define('APP_ID','crontab');
  5. define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
  6. define('TRANS_MASTER',true);
  7. if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
  8. if (!@include(BASE_CORE_PATH.'/33hao.php')) exit('33hao.php isn\'t exists!');
  9. if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
  10. if (!@include(BASE_CORE_PATH.'/33hao.php')) exit('33hao.php isn\'t exists!');
  11. if (php_sapi_name() == 'cli') {
  12. $_GET['act'] = $_SERVER['argv'][1];
  13. $_GET['op'] = empty($_SERVER['argv'][2]) ? 'index' : $_SERVER['argv'][2];
  14. }
  15. $file = BASE_PATH.'/control/control.php';
  16. if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
  17. echo "act=" . $_GET['act'] . "\n";
  18. echo "act=" . $_GET['op'] . "\n";
  19. Base::run();