<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
if (true === $argOpts['isSystem']) {
	$spacetitle = $spaceConfig_System['s_name'];
	$spacechildtitle = $spaceSystemSetting[17];
	$spacename = '';
	$spaceurl = $spaceConfig_System['s_url'];
} else {
	$spacetitle = $spaceUserInfo['spacetitle'].'';
	$spacechildtitle = $spaceUserInfo['spacechildtitle'].'';
	$spacename = $spaceUserInfo['spacename'];
	$spaceurl = $spaceConfig_Syste['s_url'].$GLOBALS['ModHtmlLinked'].$spaceUserInfo['spacename'].'.html';
}
$webcharset = $GLOBALS['charset'] ? $GLOBALS['charset'] : 'gbk';
$stats = $argopts['stats'].'';
$copyright = $argopts['copyright'];
$skinpath = $spaceConfig_System['s_path'];
if( $spaceUserID > 0 ){
	$rssurl = getScriptUrl().$GLOBALS['spaceurl_r'].$GLOBALS['spaceName'].'.rss.xml';
} else{
	$rssurl = '';
}
$spaceurl = $GLOBALS['ModHtmlLinked'];
$ispaceurl = $GLOBALS['mArchiveLink'];
$spacename = $GLOBALS['spaceName'];
$spacehtmltitle = $spaceConfig_System['s_name'].'-'.$spaceSystemSetting[17];
print <<<EOT
<!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">
EOT;
if (defined('THIS_SCRIPT')) {
	if ('spaceindex' === THIS_SCRIPT OR 'spaceapply' === THIS_SCRIPT) {
		print <<<EOT
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset={$GLOBALS['charset']}" />
		<!--<title>{$spacetitle}-{$spacename}{$stats}</title>-->
		<title>{$spacehtmltitle}</title>
		<link href="{$skinpath}css/front_spaceindex.css" type="text/css" rel="stylesheet" />
	    <script src="templates/lang/{$GLOBALS['fsetting']['lang']}/js/main.js" type="text/javascript" language='JavaScript' charset='gbk'></script>
	</head>
	<body>
		<!--Logo部分开始-->
		<div id="LogoNav" class="width780">
			<div class="Logo"><img alt="" src="{$skinpath}images/logo.gif" /></div>
			<div class="LogoAD"><img alt="" src="{$skinpath}images/banner.gif" width="468" height="60" /></div>
			<div class="Link">
		{$lang['space.hd.str17']}<br />
				{$lang['space.hd.str18']}<br />
				{$lang['space.hd.str19']}
			</div>
		</div>
		<!--Logo部分结束-->
		<!--导航菜单开始-->
		<div id="MenuNav" class="width780">
			<div class="NavLeft"></div>
			<div class="NavCenter">
				<a href="spaceindex.php">{$lang['space.hd.str20']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_user.html">{$lang['space.hd.str21']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.html">{$lang['space.hd.str22']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.1.html" class="NavLink">{$lang['space.hd.str7']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.2.html" class="NavLink">{$lang['space.hd.str8']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.5.html" class="NavLink">{$lang['space.hd.str9']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.3.html" class="NavLink">{$lang['space.hd.str10']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.4.html" class="NavLink">{$lang['space.hd.str11']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceindex.php?show_topic.6.html" class="NavLink">{$lang['space.hd.str23']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="spaceapply.php">{$lang['space.hd.str24']}</a><img alt="" src="{$skinpath}images/line-center.gif" align="middle" />
				<a href="index.php">{$lang['space.hd.str25']}</a>
			</div>
			<div class="NavRight"></div>
		</div>
		<!--导航菜单结束-->	
EOT;
	} elseif ('spacemanage' === THIS_SCRIPT) {
		print <<<EOT
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset={$GLOBALS['charset']}" />
		<title>My Space Manage</title>
	</head>
EOT;
	}
}
?>