index.php 525 B

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