123456789101112131415161718192021222324252627282930 |
- <?php declare(strict_types=0);
- if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
- defined('APP_ID') or define('APP_ID','crontab');
- define('MOBILE_SERVER',true);
- defined('BASE_ROOT_PATH') or define('BASE_ROOT_PATH',str_replace('/crontab','',dirname(__FILE__)));
- defined('BASE_PATH') or define('BASE_PATH',BASE_ROOT_PATH . '/crontab');
- require_once(BASE_ROOT_PATH . '/global.php');
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_CORE_PATH . '/lrlz.php');
- require_once(BASE_ROOT_PATH . '/helper/http_header.php');
- require_once(BASE_ROOT_PATH . '/helper/session.php');
- require_once(BASE_ROOT_PATH . '/helper/img_helper.php');
- require_once(BASE_ROOT_PATH . '/helper/exceptionex.php');
- require_once(BASE_ROOT_PATH . '/helper/notify_helper.php');
- if (php_sapi_name() == 'cli') {
- $_GET['act'] = $_SERVER['argv'][1];
- $_GET['op'] = empty($_SERVER['argv'][2]) ? 'index' : $_SERVER['argv'][2];
- }
- if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
- echo "act=" . $_GET['act'] . "\n";
- echo "act=" . $_GET['op'] . "\n";
- Base::run();
|