<?php

$GLOBALS['system_path'] 		= 'system';			//系统核心目录
$GLOBALS['application_path'] 	= 'application';	//应用程序目录
$GLOBALS['language_path'] 		= 'languages';		//语言包目录
$GLOBALS['tpl_path'] 			= 'templates';		//前台模板目录
$GLOBALS['cache_path'] 			= '_tmp/www';			//缓存目录

require ROOT_PATH.$system_path.'/config/config.ini.php';

require ROOT_PATH.$system_path.'/class/class_request.php';

require ROOT_PATH.$system_path.'/class/class_websession.php';

require ROOT_PATH.$application_path.'/smarty/Smarty.class.php';

require ROOT_PATH.$system_path.'/class/class_mysql.php';

require ROOT_PATH.$system_path.'/class/class_page.php';

require ROOT_PATH.$system_path.'/class/class_helper.php';

//require ROOT_PATH.$system_path.'/class/class_weburl.php';

$WebConfig 	  = $Helpe -> get_config();

$contactArray = $Helpe -> build_contact($WebConfig);

$GLOBALS['Templ'] -> assign('getconfig',$WebConfig);	//获取配置文件

$GLOBALS['Templ'] -> assign('tpl_path',$GLOBALS['tpl_path'].'/'.$GLOBALS["WebConfig"]["default"]);

$GLOBALS['Templ'] -> assign('contactArray',$contactArray);	//组建联系方式

?>