📄 global.php
字号:
style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: {$xuniwd}px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: {$xuniht}px\"></DIV>
<SCRIPT language=JavaScript>
var currface = \"$userface\";
if (currface ==\"\") {
currface = \"0\";
}
var currwear = \"$userwear\";
var showArray = currface.split('-');
var WearArray = currwear.split('-');
if (showArray[6] != '0')
{
showArray[8] = 0;
showArray[9] = 0;
}
var s=\"\";
for (var i=0; i<26; i++)
{
if(showArray[i] != '0')
s+=\"<IMG src=images/xuni/\"+i+\"/\"+showArray[i]+\".gif style='padding:0;position:absolute;top:0;left:0;width:$xuniwd;height:$xuniht;z-index:\"+i+\";'>\";
}
s+=\"<IMG src=images/xuni/blank.gif style='padding:0;position:absolute;top:0;left:0;width:$xuniwd;height:$xuniht;z-index:50'>\";
if (currface=='0') {
s=\"<IMG src=images/xuni/noface.gif style='padding:0;position:absolute;top:0;left:0;width:$xuniwd;height:$xuniht;'>\";
}
Show$ofstarid.innerHTML=s;
</SCRIPT>
";
}
return $usericon;
}
function view_user_info($author) {
global $userpath,$sign,$username,$forumid,$login_status,$onlineww,$postxuni,$manager,$surpadmin,$admin_list,$bbs_title,$forum_admin,$timestamp,$bbs_money;
if ($onlineww && in_array($author,$onlineww)) $check_on="在线"; else $check_on="离线";
if (file_exists("$userpath/$author.php")) { //----已注册----
list($fb,$id,$pwd,$usericon,$useremail,$oicq,$regdate,$sign[$author],
$homepage,$from,$com,$honor,$lp,$amount,$publicemail,$none,$rvrc,
$lasttime,$nowtime,$icq,$sex,$born,$guoji,$tuijianren,$money,
$lasttitle,$lastaddr,$group,$yanzheng,$tdpost,$sx,$star,$xuni,$bei2,$bei3,$bei4,$bei5,$bei6)
= explode("|",readfromfile("$userpath/$author.php"));
$money=$money;
$rvrc=floor($rvrc/10);
$level=getLevel($id);
$userlevel=getUserLevel($amount,$id);
if(!empty($level)) $userlevel="<a title='$level'>$userlevel</a>";
$nextlevel=getNextLevel($amount,$id);
$userIcon=getUserIcon($amount,$id);
$regdate=get_date($regdate);
$lastdate=get_date($nowtime);
$usericon=get_user_portait($usericon);
if ($from=="") $from="英雄莫问出处";
if ($usericon=="") $usericon="<img src=\"images/face/0.gif\" width=%70>";
$daysreg = getdaysreg($regdate);
$postsperday = $amount/$daysreg ;
if($sex==1){
if($check_on=="在线") $info="<img src=\"images/male.gif\" alt=\"{$bbs_title}就是我的家了,希望大家多多照顾^_^\">";
if($check_on=="离线") $info="<img src=\"images/ofmale.gif\" alt=\"我暂时离开一会,我爱{$bbs_title}^_^\">";
}
elseif($sex==2){
if($check_on=="在线") $info="<img src=\"images/female.gif\" alt=\"我是女生,很高兴能跟大家交个朋友....\">";
if($check_on=="离线") $info="<img src=\"images/offemale.gif\" alt=\"在论坛呆久了,让我休息一下好么?\">";
}
else {$info="";}
if ($honor) $tx="<img src=\"images/teamad.gif\" alt=\"头衔:$honor\">$honor<br>";else $tx="";
if ($star=="z1") {$showxz = "<IMG src=images/star/z1.gif
width=13 alt=白羊座 align=absmiddle>";}
elseif ($star=="z2") {$showxz = "<IMG src=images/star/z2.gif
width=13 alt=金牛座 align=absmiddle>";}
elseif ($star== "z3") {$showxz = "<IMG src=images/star/z3.gif
width=13 alt=双子座 align=absmiddle>";}
elseif ($star== "z4") {$showxz = "<IMG src=images/star/z4.gif
width=13 alt=巨蟹座 align=absmiddle>";}
elseif ($star=="z5") {$showxz = "<IMG src=images/star/z5.gif
width=13 alt=狮子座 align=absmiddle>";}
elseif ($star=="z6") {$showxz = "<IMG src=images/star/z6.gif
width=13 alt=处女座 align=absmiddle>";}
elseif ($star== "z7") {$showxz = "<IMG src=images/star/z7.gif
width=13 alt=天秤座 align=absmiddle>";}
elseif ($star== "z8") {$showxz = "<IMG src=images/star/z8.gif
width=13 alt=天蝎座 align=absmiddle>";}
elseif ($star=="z9") {$showxz = "<IMG src=images/star/z9.gif
width=13 alt=射手座 align=absmiddle>";}
elseif ($star=="z10") {$showxz = "<IMG src=images/star/z10.gif
width=13 alt=摩羯座 align=absmiddle>";}
elseif ($star=="z11") {$showxz = "<IMG src=images/star/z11.gif
width=13 alt=水瓶座 align=absmiddle>";}
elseif ($star=="z12") {$showxz = "<IMG src=images/star/z12.gif
width=13 alt=双鱼座 align=absmiddle>";}
else {$showxz = "";}
if ($sx=="sx1") {$showsx = "<IMG src=images/sx/sx1s.gif
width=13 alt=子鼠 align=absmiddle>";}
elseif ($sx=="sx2") {$showsx = "<IMG src=images/sx/sx2s.gif
width=13 alt=丑牛 align=absmiddle>";}
elseif ($sx== "sx3") {$showsx = "<IMG src=images/sx/sx3s.gif
width=13 alt=寅虎 align=absmiddle>";}
elseif ($sx== "sx4") {$showsx = "<IMG src=images/sx/sx4s.gif
width=13 alt=卯兔 align=absmiddle>";}
elseif ($sx=="sx5") {$showsx = "<IMG src=images/sx/sx5s.gif
width=13 alt=辰龙 align=absmiddle>";}
elseif ($sx=="sx6") {$showsx = "<IMG src=images/sx/sx6s.gif
width=13 alt=巳蛇 align=absmiddle>";}
elseif ($sx== "sx7") {$showsx = "<IMG src=images/sx/sx7s.gif
width=13 alt=午马 align=absmiddle>";}
elseif ($sx== "sx8") {$showsx = "<IMG src=images/sx/sx8s.gif
width=13 alt=未羊 align=absmiddle>";}
elseif ($sx=="sx9") {$showsx = "<IMG src=images/sx/sx9s.gif
width=13 alt=申猴 align=absmiddle>";}
elseif ($sx=="sx10") {$showsx = "<IMG src=images/sx/sx10s.gif
width=13 alt=葵鸡 align=absmiddle>";}
elseif ($sx=="sx11") {$showsx = "<IMG src=images/sx/sx11s.gif
width=13 alt=戌狗 align=absmiddle>";}
elseif ($sx=="sx12") {$showsx = "<IMG src=images/sx/sx12s.gif
width=13 alt=亥猪 align=absmiddle>";}
else {$showsx = "";}
$print_info="<FONT color=#000066 face=Gulim><B>$author</B></FONT>";
if($xuni==1) $usericon=getofstarxiu($author,$postxuni,140,226);
$print_info.="<table width=100%><tr valign=top><td width=100%>$usericon</td></tr></table>$tx<img src='images/system/".$userIcon."'><br>";
if(file_exists("userdata/bank/$id.php")) {
include("userdata/bank/$id.php");
$banktime=floor(($timestamp-$btime)/86400);
if($login_status==1 && (($admin_list && in_array($username,$admin_list)) || $username==$manager ||($superadmin && in_array($username,$superadmin)))) {
$bmoney1=floor($bmoney*pow(1.01,$banktime));
$bank="银行存款:<font color=blue><b>$bmoney1</b></font> $bbs_money<br>";
}
else $bank="银行存款:<font color=blue><b>保密啦~</b></font><br>";
}else $bank="";
$postnum= floor(100 * ($amount / $nextlevel)) - 1;if($postnum>97) $postnum=97;
$nextrvrc= 2*floor($nextlevel/10);
if($nextrvrc<=0) $nextrvrc=1;
$rvrcnum= floor(100 * ($rvrc / $nextrvrc)) - 1;if($rvrcnum>97) $rvrcnum=97;
$nextliuxing= $nextlevel*4;
if($nextliuxing<=0) $nextliuxing=1;
$liuxingnum= floor(100 * ($money / $nextliuxing)) - 1;if($liuxingnum>97) $liuxingnum=97;
$groupadmin="";
if (file_exists('bbsdata/group.php')) {
$groupfile ="bbsdata/group.php";
$groups=explode("\n",readfromfile($groupfile));
$gcount=count($groups);
$isgroup=0;
for($n=0;$n<$gcount;$n++){
$detail=explode("|",$groups[$n]);
if($group==$detail[0] || $author==YL御灵剑) $isgroup=1;
if ($author==$detail[3] && $group==$detail[0]) {
$groupadmin="[<font color=red>掌门</font>]";
break;
}
}
$liuxinglink="group.php?action=list&id=$group title";
if($isgroup==0) {$group="门派无法确知";
$liuxinglink="group.php";
}
}
$nextrvrc1=$nextrvrc*5;
$rvrcnums=$rvrcnum/2;
$postnums=$postnum/2;
$print_info.=
"<font color=#555555>
<span class=\"small\">发贴: <font color=green><b>$amount</b></font> / <b>$nextlevel</b> </span>
<table cellspacing=0 cellpadding=0 width=110 border=0>
<tbody>
<tr>
<td width=3 height=13><img height=13 src=images/img_left.gif width=3></td>
<td align=left width=104 background=images/img_backing.gif height=9>
<img height=9 src=images/fill1.gif width=\"$postnums%\"><img height=9 src=images/dfill1.gif width=3></td>
<td width=3 height=13><img height=13 src=images/img_right.gif width=3></td>
</tr>
</tbody>
</table>
<span class=\"small\">威望: <font color=984b98><b>$rvrc</b></font> / <b>$nextrvrc1</b> </span>
<table cellspacing=0 cellpadding=0 width=110 border=0>
<tbody>
<tr>
<td width=3 height=13><img height=13 src=images/img_left.gif width=3></td>
<td align=left width=104 background=images/img_backing.gif height=9>
<img height=9 src=images/fill2.gif width=\"$rvrcnums%\"><img height=9 src=images/dfill2.gif width=3></td>
<td width=3 height=13><img height=13 src=images/img_right.gif width=3></td>
</tr>
</tbody>
</table>
<span class=\"small\">金钱: <font color=red><b>$money</b></font> / <b>$nextliuxing</b> </span>
<table cellspacing=0 cellpadding=0 width=110 border=0>
<tbody>
<tr>
<td width=3 height=13><img height=13 src=images/img_left.gif width=3></td>
<td align=left width=104 background=images/img_backing.gif height=9>
<img height=9 src=images/fill3.gif width=\"$liuxingnum%\"><img height=9 src=images/dfill3.gif width=3></td>
<td width=3 height=13><img height=13 src=images/img_right.gif width=3></td>
</tr>
</tbody>
</table>
级 别:$userlevel $info<br>
$bank
门 派:<a href=$liuxinglink>$group</a>$groupadmin<br>
来 自:$from<br>
注册时间:$regdate $showxz<br>
最后登陆:$lastdate $showsx";
$bar=" <a onfocus=this.blur() href='profile.php?job=show&target=$author'><img height=15 alt=查看用户的个人资料 src='images/profile.gif' width=17 border=0>资料</a> <a onfocus=this.blur() onclick='Shows(messanger);' href='messanger.php?job=write&target=$author' target=msg><img src='images/message.gif' width=16 height=16 border=0>短消息</a>";
if (!empty($publicemail)) $bar.=" <a onfocus=this.blur() href='sendmail.php?target=$author'><img src='images/email.gif' border=0 width=19 height=16>邮件</a>";
if ($oicq) $bar.=" <a onfocus=this.blur() href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln=$oicq target=_blank><img src='job.php?qqjob=qq&qq=$oicq' alt='看看 OICQ:$oicq 的资料' border=0 width=16 height=16>QQ信息</a>";
if ($homepage) {
if (strpos($homepage,"://")===false) $homepage="http://$homepage";
$bar.=" <a onfocus=this.blur() href=$homepage target=_blank title=访问{$id}的主页><img src=images/homepage.gif border=0 width=16 height=16 alt=访问{$id}的主页>主页</a>";
}
} else { //---未注册---
$print_info="<TABLE style='FILTER: glow(color=#FFFF99,strength=4)'><FONT color=#000066><B>$author</B></FONT></TABLE>";
$print_info.="<BR><img src=images/face/1.gif><br>--该用户已注销--";
$bar=" ";
}
return array($print_info,$bar);
}
function category_line($name) {
global $index_forum,$categorycolor,$i,$bordercolor,$tablewidth,$categoryfontcolor;
if ($i==0)
$index_forum.="<tr><td bgcolor=$categorycolor colspan=6><img src='' width=5 height=5><font color=$categoryfontcolor>≡ $name ≡</td></tr>";
else
$index_forum.="</table>
</td>
</tr>
</table><img src='' height=5 width=9><br>
<table cellspacing=0 cellpadding=0 width=$tablewidth align=center border=0>
<tr>
<td>
<table cellspacing=1 cellpadding=5 width=100% border=0 bgcolor=$bordercolor>
<tr><td bgcolor=$categorycolor colspan=6><img src='' width=5 height=5><font color=$categoryfontcolor>≡ $name ≡</font></td></tr>";
}
function forum_line($forum_type) {
global $index_forum,$detail,$userpath,$ofstar_fmlogo,$username,$style_path,$forumcolorone,$forumcolortwo,$script_pos,$forum_admin,$forumnamecolor,$login_status,$idpath,$newpost,$onlyread,$nonewpost,$bbs_title;
if(file_exists($idpath.'forum'.$detail[3].'/list.php')){
$forumname=file($idpath.'forum'.$detail[3].'/list.php');
$forumfilenu=count($forumname);
}else $forumfilenu=0;
if($ofstar_fmlogo==1){
$forumlogofile=$detail[14];
$forumlogo="<img align=left src=$forumlogofile border=0>";
}
else
{
if($style_path=='fen' || $style_path=='ofstar')
$forumlogofile="images/system/forumlogo2/forum".$detail[3].".gif";
else
$forumlogofile="images/system/forumlogo/forum".$detail[3].".gif";
if(file_exists($forumlogofile))
$forumlogo="<img align=left src=$forumlogofile border=0>";
}
if (file_exists($idpath."forum".$detail[3]."/last_mo.php")) {
$last_modify=explode("|",readfromfile("{$idpath}forum$detail[3]/last_mo.php"));
$last_modify_list=explode(",",$last_modify[0]);
if (strlen($last_modify_list[0])>=18) $last_modify_list[0]=substr($last_modify_list[0],0,16)."..";
$last_modify_list[0]=str_replace('%a%','<img src="images/system/addon.gif" border=0>',$last_modify_list[0]);
$modifytime=get_stamp($last_modify_list[2]);
$title="<font class=cau>主题:</font><a href=\"read.php?forumid=$detail[3]&filename=$last_modify_list[3]\">$last_modify_list[0]</a>";
$user="<font class=cau>作者</font>:<a href=\"profile.php?job=show&target=$last_modify_list[1]\">$last_modify_list[1]</a>";
$time="<font class=cau>日期:</font>".$last_modify_list[2];
}
else {
$title=""; $user=""; $time=""; $last_modify[1]=0;
$modifytime=-1;
}
if ($username) {
$user_info=explode("|",readfromfile("$userpath/$username.php"));
$lastvisit=$user_info[18];}
if ($forum_type=="forum") {
if (!$lastvisit) $forum_icon='<img src='.$newpost.' border=0>';
elseif ($modifytime && $lastvisit<$modifytime) $forum_icon='<img src='.$newpost.' border=0>';
else $forum_icon='<img src='.$nonewpost.' border=0>';
} else $forum_icon='<img src='.$onlyread.' border=0>';
$forumlabel="<a href=\"thread.php?forumid=$detail[3]\"><font face=verdana color=$forumnamecolor> <b>$detail[1]</b> </font></a>";
if($detail[5]!='') $forumlabel.=" <font color=gray>[已经加密]</font>";
if (!empty($forum_admin[$detail[3]])) {
$count=count($forum_admin[$detail[3]]);
for ($j=0; $j<$count; $j++) {
if ($j==3) {$admin_list.='<b>...</b>'; break; }
$adminname=$forum_admin[$detail[3]][$j];
$admin_list.="<span title=\"点击查看管理员 $adminname 的资料\"><a href=\"profile.php?job=show&target=$adminname\">$adminname</a></span><br>";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -