|
@@ -8,12 +8,18 @@
|
|
|
|
|
|
if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
|
|
if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
|
|
|
|
|
|
|
|
+define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
|
|
|
|
+define('MOBILE_SERVER',true);
|
|
|
|
+
|
|
|
|
+require_once (BASE_ROOT_PATH . '/fooder.php');
|
|
|
|
+
|
|
define('APP_ID','crontab');
|
|
define('APP_ID','crontab');
|
|
define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
|
|
define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
|
|
define('TRANS_MASTER',true);
|
|
define('TRANS_MASTER',true);
|
|
if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
|
|
if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
|
|
if (!@include(BASE_CORE_PATH.'/33hao.php')) exit('33hao.php isn\'t exists!');
|
|
if (!@include(BASE_CORE_PATH.'/33hao.php')) exit('33hao.php isn\'t exists!');
|
|
|
|
|
|
|
|
+
|
|
//if (PHP_SAPI == 'cli') {
|
|
//if (PHP_SAPI == 'cli') {
|
|
if (php_sapi_name() == 'cli') {
|
|
if (php_sapi_name() == 'cli') {
|
|
$_GET['act'] = $_SERVER['argv'][1];
|
|
$_GET['act'] = $_SERVER['argv'][1];
|