<?php
define('THIS_SCRIPT', 'index');
include_once 'global.php';
$lang = load_lang($lang,'index');
checklogin();
header("content-Type: text/html; charset=".$charset);
global $totalonline,$dv,$db,$forumid;

$fver = VERSION;
$domain = $ForumUrl;
$domain = substr(md5($domain),0,16);
$strlen = strlen($domain);
$forumid = '';
for ($i = 0; $i < $strlen; $i++) {
	if (is_numeric($domain{$i})) {
		$forumid .= $domain{$i};
	} else {
		$forumid .= ord($domain{$i}).'';
	}
}
$ftoday=$db->scalar("Select Sum(todaynum) as length From {$dv}board Where allowpost=1");
$fol=$db->scalar("Select Count(*) as length From {$dv}online");
head();
?>
<style>
.navpoint { cursor: pointer; display:block; padding:5px; }
body {overflow-x: hidden; overflow: hidden; }
td { font-size:12px; }
a { color: #135294; text-decoration: none; }
a:hover { color: #ff6600; text-decoration: underline; }
</style>
<script>
var status = 1;
function switchSysBar(){
     if (1 == window.status){
		  window.status = 0;
          switchPoint.innerHTML = '<img src="images/left.gif" alt="" />';
          document.all("frmTitle").style.display="none"
     }
     else{
		  window.status = 1;
          switchPoint.innerHTML = '<img src="images/right.gif" alt="" />';
          document.all("frmTitle").style.display=""
     }
}
</script>
<body style="margin: 0px">
<table border=0 cellpadding=0 cellspacing=0 height="100%" width="100%" style="background:#C3DAF9;">
<tbody>
<tr>
<td height="58" colspan="3">
<iframe frameborder="0" id="top" name="top" scrolling="no" src="top.php" style="height: 100%; visibility: inherit;width: 100%;"></iframe>
</td>
</tr>
<tr>
<td height="30" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <form name="search_form" method="post" action="forum_help.php?action=search" target="frmright">
  <tr height="32">
	<td background="images/bg2.gif"width="28" style="padding-left:30px;"><img src="images/arrow.gif" alt="" align="absmiddle" /></td>
	<td background="images/bg2.gif">动网论坛官方通讯：<span style="color:#c00; font-weight:bold;" id="dvbbsannounce"></span></td>
	<td background="images/bg2.gif" style="text-align:right; color:#91B1C6;">
	<td background="images/bg2.gif" style="text-align:right; color: #135294; padding-right:20px;">输入帮助关键字：<input name="keyword" type="text" id="keyword" class="button" size="30">
      &nbsp;<input type="submit" class="button" name="Submit" value=" 搜 索 ">&nbsp;&nbsp;<a href="reloadcache.php" target="frmright">清理缓存</a> | <a href="../recycle.php" target="frmright">回收站管理</a> | <a href="login.php?action=logout">退出</a></td>
  </tr>
  </form>
</table>
</td>
</tr>
<tr>
<td align="middle" id="frmTitle" valign="top" name="fmtitle" style="background:#c9defa">
<iframe frameborder="0" id="left" name="left" src="left.php" style="height: 100%; visibility: inherit;width: 185px;background:url(images/leftop.gif) no-repeat" allowtransparency="true"></iframe>
  <td style="width:0px; background:#fff;">
		<div onclick="switchSysBar()" style="position:absolute; left:5px; top:60px;">
		<span class="navpoint" id="switchPoint" title="关闭/打开左栏"><img src="images/right.gif" alt="" /></span>
		</div>
	</td>
	<td style="width: 100%" valign=top>
		<iframe frameborder="0" id="frmright" name="frmright" scrolling="yes" src="main_index.php?action=r" style="height: 100%; visibility: inherit; width:100%; z-index: 1"></iframe>
	</td>
   </tr>
<tr>
<td height="30" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background:url(images/botbg.gif)">
  <tr height="32">
	<td style="padding-left:30px; font-family:arial; font-size:11px;">Copyright Right &copy; 2008 Dvbbs.Net   Powered By Dvbbs Version 2.0++</td>
	<td style="text-align:right; color:#91B1C6;">
	<td style="text-align:right; color: #135294; padding-right:20px;"><a href="db_maintance.php" target="frmright">数据库维护</a> | <a href="reloadcache.php" target="frmright">清理缓存</a> | <a href="../recycle.php" target="frmright">回收站管理</a> | <a href="forum_log.php" target="frmright">论坛系统日记</a> | <a href="upgrade.php" target="frmright">在线升级</a> </td>
  </tr>
</table>
</td>
</tr>
 </tbody>
</table>
</body>
<div id="dvbbsannounce_true" style="display:none;">
<script src="http://server.dvbbs.net/php/user.asp?fid=<?=$forumid?>&fname=<?=$forum_type?>&furl=<?=$ForumUrl?>&fver=<?=$fver?>&fmail=<?=$forum_info[5]?>&fuser=<?=$forum_usernum?>&ftopic=<?=$forum_topicnum?>&fpost=<?=$forum_postnum?>&ftoday=<?=$ftoday?>&fol=<?=$fol?>"></script>
</div>
<SCRIPT LANGUAGE="JavaScript">
	document.getElementById("dvbbsannounce").innerHTML = document.getElementById("dvbbsannounce_true").innerHTML;
</SCRIPT>
<script language="javascript" src="upgrade_query_js.php"></script>