无为清净楼资源网 Design By www.qnjia.com
第四个页面 name="index.php"
<?
include "../signup/mysql.php";
header("Expires: Sun, 28 Dec 1997 09:32:45 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: text/html; charset=${Charset}");
?>
<html>
<head>
<title>charmain</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="4; url=<? echo $PHP_SELF; ?>?userid=<?echo $userid?>">
</head>
<body bgcolor="#99CCFF" text="#000000">
<?
$max_row_length=30;
$select="select row from user_message order by row DESC";
$result=mysql_query($select)or die(" false fgfg");
$rowlist=mysql_fetch_array($result)or die("false");
$max_row=$rowlist["row"];
if($max_row>$max_row_length){
$delete_row=$max_row-$max_row_length+1;
// echo $max_row."<br>".$delete_row;
$select="select row from user_message where row<".$delete_row;
$result=mysql_query($select)or die(" false");
while($row=mysql_fetch_array($result))
{
$sql="delete from user_message where row <".$delete_row;
mysql_query($sql)or die ("del false1");
}
$left=$delete_row;
}
else {$left=1;
}
for($i=$max_row; $i>=$left ;$i--)
{
$sql="SELECT message,userid,object,status,color,action1,time1 FROM user_message where row='$i'";
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
$time1=$row["time1"];
$usert1=$row["userid"];
$objectt1=$row["object"];
$sql="select id from chat_user_list where userid='$usert1'";
$result=mysql_query($sql)or die(mysql_error());
$rowt1=mysql_fetch_array($result);
$usert5=$rowt1["id"];
$sql="select id from chat_user_list where userid='$objectt1'";
$result=mysql_query($sql)or die(mysql_error());
if($rowt2=mysql_fetch_array($result))
$bojectt5=$rowt2["id"];
else $bojectt5="大家";
if($row["userid"]!=$userid){
$user1="<a href='".$PHP_SELF."?userid=$userid' onClick=parent.bottom.user('".$usert5."')>".$usert5."</a>";
}
else $user1=$usert5;
if($row["object"]!=$userid){
$user2="<a href='".$PHP_SELF."?userid=$userid' onClick=parent.bottom.user('".$bojectt5."')>".$bojectt5."</a>"; }
else $user2=$bojectt5;
$message2=$row["message"];
$message3=htmlspecialchars($message2);
$message1="<font size=3 color=".$row["color"]."><i>".$user1."</i> 对".$user2." <i>".$row["action1"].": </i>".$message3."</font>" ;
if($row["status"]==1){
if($row["object"]==$userid||$row["userid"]==$userid)
echo "<font size=2 color=ff0000 >私聊</font>".$time1." ".$message1."<br>";
else continue;
}
else {
echo $time1." ".$message1."<br>";
}
}
?>
</body>
</html>
<?
include "../signup/mysql.php";
header("Expires: Sun, 28 Dec 1997 09:32:45 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: text/html; charset=${Charset}");
?>
<html>
<head>
<title>charmain</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="4; url=<? echo $PHP_SELF; ?>?userid=<?echo $userid?>">
</head>
<body bgcolor="#99CCFF" text="#000000">
<?
$max_row_length=30;
$select="select row from user_message order by row DESC";
$result=mysql_query($select)or die(" false fgfg");
$rowlist=mysql_fetch_array($result)or die("false");
$max_row=$rowlist["row"];
if($max_row>$max_row_length){
$delete_row=$max_row-$max_row_length+1;
// echo $max_row."<br>".$delete_row;
$select="select row from user_message where row<".$delete_row;
$result=mysql_query($select)or die(" false");
while($row=mysql_fetch_array($result))
{
$sql="delete from user_message where row <".$delete_row;
mysql_query($sql)or die ("del false1");
}
$left=$delete_row;
}
else {$left=1;
}
for($i=$max_row; $i>=$left ;$i--)
{
$sql="SELECT message,userid,object,status,color,action1,time1 FROM user_message where row='$i'";
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
$time1=$row["time1"];
$usert1=$row["userid"];
$objectt1=$row["object"];
$sql="select id from chat_user_list where userid='$usert1'";
$result=mysql_query($sql)or die(mysql_error());
$rowt1=mysql_fetch_array($result);
$usert5=$rowt1["id"];
$sql="select id from chat_user_list where userid='$objectt1'";
$result=mysql_query($sql)or die(mysql_error());
if($rowt2=mysql_fetch_array($result))
$bojectt5=$rowt2["id"];
else $bojectt5="大家";
if($row["userid"]!=$userid){
$user1="<a href='".$PHP_SELF."?userid=$userid' onClick=parent.bottom.user('".$usert5."')>".$usert5."</a>";
}
else $user1=$usert5;
if($row["object"]!=$userid){
$user2="<a href='".$PHP_SELF."?userid=$userid' onClick=parent.bottom.user('".$bojectt5."')>".$bojectt5."</a>"; }
else $user2=$bojectt5;
$message2=$row["message"];
$message3=htmlspecialchars($message2);
$message1="<font size=3 color=".$row["color"]."><i>".$user1."</i> 对".$user2." <i>".$row["action1"].": </i>".$message3."</font>" ;
if($row["status"]==1){
if($row["object"]==$userid||$row["userid"]==$userid)
echo "<font size=2 color=ff0000 >私聊</font>".$time1." ".$message1."<br>";
else continue;
}
else {
echo $time1." ".$message1."<br>";
}
}
?>
</body>
</html>
无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com
暂无评论...
更新日志
2024年11月15日
2024年11月15日
- 群星.2002-恋爱物语情歌对唱精选2CD(引进版)【滚石】【WAV+CUE】
- 群星《闽南情24K德国HD金碟》2CD[WAV+CUE]
- 周传雄《恋人创世纪》环球唱片[WAV+CUE]
- 关淑怡-《真假情话K2HD》(日本压制)【WAV+CUE】
- 王菲 -《Faye Wong》雨果LPCD45 [WAV+分轨][1G]
- 陈百强《世纪10星·永恒篇》环球[WAV+CUE][1G]
- 陈奕迅《黑·白·灰》台湾版[WAV+CUE][400M]
- 张尕怂.2024-甘肃娃娃【FLAC分轨】
- 张惠妹.2011-A.MEI.ACOUSTIC.BEST.2CD【丰华】【WAV+CUE】
- ZEN.1996-珍惜所有【华纳】【WAV+CUE】
- 群星《环球国语元素》香港首版[WAV+CUE][1G]
- 周慧敏《玉女天后》原音母版1:1直刻[WAV+CUE][1G]
- 谭咏麟《20世纪中华歌坛名人百集珍藏版》[WAV+CUE][1G]
- 炉石传说40轮盘术最新卡组代码在哪找 标准40轮盘术卡组代码分享
- 炉石传说亲王贼怎么玩 2024亲王贼最新卡组代码分享