//foxbbs.php 功能:显示论坛的主题
include "linkfox.inc.php";
include "info.inc.php";
?>
$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]="游客";
?>
当前位置:狐网─>狐网论坛─>主题列表 echo "".$useinfo[2].""; echo "欢迎你来到论坛!"; ?> |
echo "
|
echo "
for ($i=1;$i<=$page;$i++)
{
if ($i==$dpage) echo "";
else echo "";
}
echo "select>";
echo "<select style='BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;' name='dpage' onChange='javascript:location.href=this.options[this.selectedIndex].value'>";
echo "";
echo "";
echo "";
echo "";
echo "select>";
echo "<select style='BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;' name='dpage' onChange='javascript:location.href=this.options[this.selectedIndex].value'>";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "select>";
$query="select count(*) from useinfo";//统计注册用户数
$req=mysql_query($query);
$usenum=mysql_fetch_array($req);
$query="select usename from useinfo order by useid desc limit 0,1";//查找最新注册的用户,因为ID是自增的,所以可以根据ID来判断,最大的也就是最新的。
$req=mysql_query($query);
$newuse=mysql_fetch_array($req);
echo "目前共有成员[".$usenum[0]."]名/最新加盟[".$newuse[0]."]";
?>
|