<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/




if(!defined('IN_SITETEAM')) { exit('Access Denied'); } define("CURSCRIPT", "start"); $pagename = "start"; $cache_html_data_dir = SITE_ROOT . "/data/tpl/{$site_url}"; $cache_siteteam_html = "{$cache_html_data_dir}/" . md5($site_index_url) . ".html"; if (file_exists($cache_siteteam_html) && time() - filemtime($cache_siteteam_html) < CACHE_TIME) { include $cache_siteteam_html; exit(); } if (file_exists(SITE_ROOT . "/data/setting/{$site_url}/start.txt")) { $page_data = read_array_file(SITE_ROOT . "/data/setting/{$site_url}/start.txt"); } else { $page_data = read_array_file(SITE_ROOT . "/data/default.start.txt"); } extract($page_data); if (SITE_REWRITE) { $site_home_url = url_rewrite($site_home_url, "url"); } ob_start(); ?>
<?php if(!defined('IN_SITETEAM')) {exit('Access Denied');}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php if(!empty($seo_title)){?><?=$seo_title?><?php }else{?><?=$site_title?><?php }?></title>
<meta name="keywords" content="<?php if(!empty($seo_keywords)){?><?=$seo_keywords?><?php }else{?><?=$site_keywords?><?php }?>" />
<meta name="description" content="<?php if(!empty($seo_description)){?><?=$seo_description?><?php }else{?><?=$site_description?><?php }?>" />
<?=(isset($site_start_css)?$site_start_css:"")?>

<?=(isset($site_start_head_js_code)?$site_start_head_js_code:"")?>
</head>
<body>

<?php
if (!empty($site_start_html)) { echo $site_start_html; } else { ?>
	<div style=" font-size:13px;">
	你还没有设置网站封面的内容，请登录网站后台点击“<b>基本设置>>网站封面</b>”选项进行设计，
	如果不懂设计，可以联系我们的设计人员帮忙设计。<br /><br />
	</div>
	点此访问<a href="<?=$site_home_url?>">网站首页</a> >>
	<?php
} ?>

<?=(isset($site_start_body_js_code)?$site_start_body_js_code:"")?>
<!-- http://www.siteteam.cn -->
<?php if(!empty($stat_code)){ ?><div style="display:none"><?=$stat_code?></div><?php }?>
</body>
</html>
<?php
$html = ob_get_clean(); $html = url_rewrite($html, "other"); if (CACHE_TIME >0) { if (!file_exists($cache_html_data_dir)) { mkdir($cache_html_data_dir); } if ($fp = @fopen($cache_siteteam_html, "w")) { if (@fwrite($fp, $html)) { @fclose($fp); echo $html; } else { exit(siteteam_sys_msg(3)); } } else { exit(siteteam_sys_msg(3)); } } else { echo $html; } ?>