日期:2013-01-17  浏览次数:20462 次

主界面,也就是显示主题列表的这页。
//foxbbs.php 功能:显示论坛的主题

<HTML>
<HEAD>
<TITLE>狐网论坛</TITLE>
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
</STYLE>
<LINK href="js/lfox.css" rel=stylesheet /LINK>
<?php
include "linkfox.inc.php";
include "info.inc.php";

?>
</HEAD>
<body bgcolor="#FFFFFF">
<?
$tem=$HTTP_COOKIE_VARS[FlyFoxNet];        //这里取COOKIE里的信息
$temp=explode("|",$tem);                  //因为用户名和密码是用"|"分隔并记录在COOKIE里的
$cookiem=$temp[0];                        //取用户名
$useinfo=cuser($cookiem,$action);         //CUSER这个函数是用来判别是否从COOKIE中取出了信息
$query="select usename from useinfo where usename='".$useinfo[0]."'"; //检查是否注册用户
$req=mysql_query($query);
if ($req)
{
  $usename=mysql_fetch_array($req);                            
    if($usename[0]==$useinfo[0]) $useinfo[0]=$usename[0];     
    else {
        $usename=1;
        $useinfo[0]="游客";
         }
}
else $usename=1;$useinfo[0]="游客";
?>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
  <tr>
    <td height="40" rowspan="2" width="60%">
      <div align="right"></div>
      <div align="right"></div>
    </td>
    <td height="20" width="10%"> </td>
    <td height="20" width="10%"> </td>
    <td height="20" width="10%"> </td>
    <td height="20" width="10%"> </td>
  </tr>
  <tr>
    <td height="20" width="10%">
      <div align="center"><a href="reguse.php?action=xy"><img src="http://edu.cnzz.cn/NewsInfo/images/top_register.gif" width="74" height="21" border="0"></a></div>
    </td>
    <td height="20" width="10%">
      <div align="center"><a href="useinfo.php?action=find"><img src="http://edu.cnzz.cn/NewsInfo/images/top_members.gif" width="74" height="21" border="0"></a></div>
    </td>
    <td height="20" width="10%"><a href="useinfo.php?action=edit"><img src="http://edu.cnzz.cn/NewsInfo/images/top_profile.gif" width="74" height="21" border="0"></a></td>
    <td height="20" width="10%"><a href="okey.php?d=q"><img src="http://edu.cnzz.cn/NewsInfo/images/top_logout.gif" width="74" height="21" border="0"></a></td>
  </tr>
  <tr>
    <td height="20" width=60%>
      <div align="left">当前位置:<font color="#0000FF">狐网─>狐网论坛─>主题列表<