📄 facedata.php
字号:
<?php
$forumid=131;
require("global.php");
require("userdata/style.php");
include("bbsdata/level.php");
require("header.php");
if ($login_status==0) {
echo"$headertp";
headguide("您现在正处在 $bbs_title<br>虚拟形象中心","<a href='club.php'>娱乐园</a>","<a href='facepic.php'>虚拟形象</a>");
msg_box('虚拟形象','<br>状态:发生错误,您还没有登录<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">现在登录</li></ul>');
require("footer.php");echo"$footertp";
exit;
}
$userin=get_user_info($username);
$gender=$userin[20];
$userlevel=getUserLevel($userin[13],$username);
$wwww=$userin[16]/10;
if ($gender == 1)
{
$usergender = "帅哥";
$tempequip = '0-0-0-0-0-0-0-0-init-init-0-init-0-init-init-0-0-0-init-0-0-0-0-0-0-0';
$sex = "m";
}
elseif($gender == 2)
{
$usergender = "美女";
$tempequip = '0-0-0-0-0-0-0-0-initf-initf-0-initf-0-initf-initf-0-0-0-initf-0-0-0-0-0-0-0';
$sex = "f";
}
else
{echo"$headertp";
headguide("您现在正处在 $bbs_title<br>虚拟形象中心","<a href='club.php'>娱乐园</a>","<a href='facepic.php'>虚拟形象</a>");
msg_box('虚拟形象','<br>状态:发生错误,您还没有选择性别<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="profile.php">现在修改您的性别</li></ul>');
require("footer.php");echo"$footertp";
exit;
}
if(file_exists("userdata/bank/$username.php")) {
require("userdata/bank/$username.php");
$allmoney=$bmoney+$userin[24];
}
else {$bmoney="<a href=club.php?action=bank>尚未开户</a>";$allmoney=$userin[24];}
$userwearip = '400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400';
$cookiearray = split('-', $tempequip);
$weararray = split('-', $userwearip);
$break = 1;
if(!file_exists("userdata/xuni/$username.php"))
writetofile("userdata/xuni/$username.php","");
$txt=file("userdata/xuni/$username.php");
$indext=count($txt);
for($i=0;$i<$indext;$i++)
{//0
$detail=explode("|",$txt[$i]);
if($detail[8]==1 && ($detail[5]==$sex || $detail[5]==t))
{//1
$tempi = $detail[3];
$cookiearray[$tempi] = $detail[4];
$face_weardate = floor($detail[6]/10 - (time() - $detail[9])/86400);
if ($face_weardate <= 0)
{//2
$detail[8]=3;
$txt[$i]=implode("|",$detail);
$article=implode("",$txt);
$f = fopen("userdata/xuni/$username.php","w");
fputs($f,$article);
if($detail[3] == 8||$detail[3]==9||$detail[3]==11||$detail[3]==13||$detail[3]==14||$detail[3]==18)
{
$userupid = $upid;
}
else
{
$userupid = "0";
}
$weararray[$tempi] = $userupid;
}//2
else
{
$weararray[$tempi] = $face_weardate;
}
$buydate=date("Y-m-d",$detail[9]);
$buytime=date("H:i:s",$detail[9]);
if ($detail[11]=="")
{
$facefrom = "私有";
}
else
{
$facefrom = "{$detail[11]}赠送";
}
$pic = "<a href=action.php?action=delface&classid=$detail[3]&id=$detail[4]><IMG src = images/xuni/".$detail[3]."/".$detail[4]."x.gif height=84 border=0 alt=\"点击鼠标左键脱下 购买日期:$buydate 购买时间:$buytime 来 自:$facefrom\"></a>";
eval('$peidai .= "' . gettemplate('face_facedatapeidai') . '";');
if ($break%6 == 0)
{
$huanhang = "</tr><tr>";
}
else
{
$huanhang = "";
}
$break++;
$peidai = $peidai.$huanhang;
}//1
}//0
$tempequip = implode("-", $cookiearray);
$userwear = implode("-", $weararray);
$cookie = $_REQUEST[tempequip];
$userfacecookie = $tempequip;
if ("" == $cookie)
{
if ($userfacecookie != "")
{
$tempequip = $userfacecookie;
}
//setcookie("tempequip", "$tempequip");
}
//显示未佩戴物品开始
$break = 1;
for($i=0;$i<$indext;$i++){
$detail=explode("|",$txt[$i]);
if($detail[8]==0){
$face_weardate = floor($detail[6]/10 - (time() - $detail[9])/86400);
$buydate=date("Y-m-d",$detail[9]);
$buytime=date("H:i:s",$detail[9]);
$pic = "<img style=\"FILTER: alpha(opacity=299.177); CURSOR: hand\" alt=\"点击鼠标左键试穿 购买日期:$buydate 购买时间:$buytime 来 自:$facefrom\" src =images/xuni/".$detail[3]."/".$detail[4]."x.gif height=84 border=0 onClick=\"javascript:CHECK('$detail[3]','$detail[4]','$detail[5]','$sex')\">";
if($detail[5] == 'm')
$xingbies = "<font color=red>帅哥</font>";
elseif($detail[5] == 'f')
$xingbies = "<font color=red>美女</font>";
else
$xingbies = "<font color=red>全部</font>";
if ($detail[11]=="")
{
$facefrom = "私有";
}
else
{
$facefrom = "{$detail[11]}赠送";
}
eval('$yifu1 .= "' . gettemplate('face_facedatayifu1') . '";');
if ($break%3 == 0)
{
$huanhang = "</tr><tr>";
}
else
{
$huanhang = "";
}
$break++;
$yifu1 = $yifu1.$huanhang;
}
}
//显示未佩戴物品结束
//显示物品内容结束
require("footer.php");
eval("\$left = \"".gettemplate('face_facedataleft')."\";");
eval("\$center = \"".gettemplate('face_facedatacenter')."\";");
eval("dooutput(\"".gettemplate('face_facehome','php')."\");");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -