我的论坛源代码(二)
我的论坛源代码(二),我的论坛源代码(二)
//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://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/05121010223480533.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://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/05121010223464739.gif"" width="74" height="21" border="0"</a</div
</td
<td height="20" width="10%"<a href="useinfo.php?action=edit"<img src="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/05121010223460345.gif"" width="74" height="21" border="