コード例 #1
0
ファイル: init.php プロジェクト: pf5512/phpstudy
	function run($module)
	{
		$config = $this->config;
				if ($module != 'admin')
		{
			global $rewriteHandler;
			include_once './include/rewrite.php';
		}
				require_once DRIVER_PATH . 'i18n.php';
		i18n_init($config['language']);
				require_once LIB_PATH . 'config.han.php';
				include_once CONFIG_PATH . 'robot.php';
				require_once FUNCTION_PATH . 'common.func.php';
				define('MY_QUERY_ERROR', 10);
				require_once CONFIG_PATH . 'constants.php'; 		require_once CONFIG_PATH . 'credits.php'; 				require_once FUNCTION_PATH . 'cache.func.php';
				require_once FUNCTION_PATH . 'global.func.php';
				require_once INCLUDE_PATH . 'load.php';
				require_once LIB_PATH . 'http.han.php';
				require_once LIB_PATH . 'template.han.php';
				require_once LIB_PATH . 'form.han.php';
				require_once DB_DRIVER_PATH . 'database.db.php';
		require_once DB_DRIVER_PATH . "mysql.db.php";
				require_once INCLUDE_PATH . 'constant.php';
				require_once INCLUDE_PATH . 'engine.php';
				require_once INCLUDE_PATH . 'extend.php';
				require_once MOD_PATH . 'master.mod.php';
				require_once MOD_PATH . $this->accessMod($config['default_module']) . '.mod.php';
				$_GET = HttpHandler::checkVars($_GET);
		$_POST = HttpHandler::checkVars($_POST);
		$moduleobject = new ModuleObject($config);
		$module != 'inizd' && handler('member')->SaveActionToLog($moduleobject->Title);
		unset($moduleobject);
	}