stanley-king преди 8 години
родител
ревизия
f6f02feb31
променени са 2 файла, в които са добавени 9 реда и са изтрити 2 реда
  1. 7 0
      crontab.php
  2. 2 2
      crontab/index.php

+ 7 - 0
crontab.php

@@ -9,4 +9,11 @@
 define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
 define('MOBILE_SERVER',true);
 
+require_once (BASE_ROOT_PATH . '/fooder.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/fcgi_server.php');
+
 include (BASE_ROOT_PATH . "/crontab/index.php");

+ 2 - 2
crontab/index.php

@@ -11,8 +11,8 @@ if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
 define('APP_ID','crontab');
 define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
 define('TRANS_MASTER',true);
-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(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 (PHP_SAPI == 'cli') {