21,886
社区成员
发帖
与我相关
我的任务
分享
if($_SESSION["SHOPUSER"]==""){echo 0;exit;}else{
while("*","user where uid='".$_SESSION["SHOPUSER"]."'");$row2=mysql_fetch_array($res2);
$qid =$row2[id];
}
$_SESSION['qid']=1;
echo $qid;
include("B.php");
if (1==check_xl($qid))
{
$text ="孙悟空:";
$yhj=$mon;
}
elseif (2==check_xl($qid)){
$text ="猪八戒:";
$yhj=$xmon;
}
else{
$text ="孙悟空:";
$yhj=$mon;
}
function check_xl($qid){
if(!$qid)
{
return 1;
}
else{
//已登判断
$sqlxid ="select count(*) AS user_id from code_xiu where user_id ='".$qid."' and zt ='1'";
mysql_query("SET NAMES 'GBK'");
$resxid =mysql_query($sqlxid);
$resx=mysql_fetch_array($resxid);
$query=$resx['user_id'];
if ($query)
{
return 2;
}else
{
return 3;
}
}
}
if (1==check_xl($qid))
{
$text ="孙悟空:";
$yhj=$mon;
}
elseif (1==check_xl($qid)){
$text ="猪八戒:";
$yhj=$xmon;
}
else{
$text ="孙悟空:";
$yhj=$mon;
}