예제 #1
0
파일: gz.php 프로젝트: phone1246/mikrotik
 public static function init()
 {
     ini_set("html_errors", 0);
     self::useInternalError();
     set_exception_handler('g::throwE');
     self::$config = array("app_name" => APP_TITLE, "app_version" => "1.0", "app_build" => "1", "app_dbv" => "1");
     self::$session = new gzSession();
     self::$session->_start();
     //self::$clientContext = new gzClientContext();
     //self::$clientContext->init($_REQUEST['call']?$_REQUEST['call']:null);
     header('X-Core: GODZILLA ' . self::$version . '/' . self::$version_build);
     /*
     self::$web = new gzWebClient();
     self::$session= new gzSession(); self::$session->_start();
     */
     /*
     		if(!file_exists(DATA_DIR.'sys'.DS.'gBoots.php'))
     		{
     			path_Exist(DATA_DIR,true);
     			path_Exist(DATA_DIR.'cache',true);
     			path_Exist(DATA_DIR.'patch',true);
     			path_Exist(DATA_DIR.'pref',true);
     			path_Exist(DATA_DIR.'sys',true);
     			path_Exist(DATA_DIR.'usr',true);
     			self::configLoad();
     			self::updateBootParams();
     		}else{
     			include DATA_DIR.'sys'.DS.'gBoots.php';
     		}*/
 }