» 您尚未 登录   注册 | 社区银行 | 社区婚姻 | 社区成就 | 帮助 | 社区 | 无图版


火花天龙剑 -> 投诉专区 -> 社区主页成这样了
 XML   RSS 2.0   WAP 

本页主题: 社区主页成这样了 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题
Aiges

该用户目前不在线
级别: 火花会员
编号: 2911
精华: 2
发帖: 589
威望: 0 点
配偶: 单身
火 花 币: 31147 HHB
注册时间:2003-04-08
最后登陆:2019-09-12
瓦伦利亚的骑士(I)
查看作者资料 发送短消息 引用回复这个帖子
社区主页成这样了

$templatesused='forumhome_birthdaybit,error_nopermission,forumhome_pmloggedin,forumhome_welcometext,forumhome_logoutcode,forumhome_newposts,forumhome_todayposts,forumhome_logincode,forumhome_loggedinuser,forumhome_loggedinusers,forumhome_lastpostby,forumhome_moderator,forumhome_forumbit_level1_nopost,forumhome_forumbit_level1_post,forumhome_forumbit_level2_nopost,forumhome_forumbit_level2_post,forumhome,forumhome_unregmessage'; $loadbirthdays=1; $loadmaxusers=1; require('./global.php'); $permissions=getpermissions(); if (!$permissions['canview']) { show_nopermission(); } $bbinfo=$DB_site->query("SELECT * FROM bbinfo"); $siteinfo=$DB_site->fetch_array($bbinfo); if ($bbuserinfo[userid]!=0) { $avatarurl=getavatarurl($bbuserinfo[userid]); if ($avatarurl=='') { $avatarurl='images/avatars/noavatar.gif'; } $avatarimage=''; } else { $avatarimage=''; } // Hack newsfade start $newsfadebits = ""; $datenow=time(); $newsfades=$DB_site->query("SELECT newslink,newstext FROM newsfade WHERE enddate>='$datenow' ORDER BY startdate DESC"); while ($newsfade=$DB_site->fetch_array($newsfades)) { $newsfadebits.="\"".addslashes($newsfade[newstext])."\",\"$newsfade[newslink]\",\n"; } $newsfadebits = substr($newsfadebits,0,-2); // End Hack newsfade // league forum hacker by firefox $leaguebits = $DB_site->query("SELECT * FROM league"); if ($DB_site->num_rows($leaguebits)) { while ($league=$DB_site->fetch_array($leaguebits)) { if ($league[icon] != "") { $leagueimages=""; } else { $leagueimages = ""; } eval("\$leagueforumhorbits .= \"".gettemplate('forumhome_leagueforumhorbits')."\";"); eval("\$leagueforumbits .= \"".gettemplate('forumhome_leagueforumbits')."\";"); } if ($LFdisplay) { eval("\$leagueforum = \"".gettemplate('forumhome_leagueforumhor')."\";"); } else { eval("\$leagueforum = \"".gettemplate('forumhome_leagueforum')."\";"); } } else { $leagueforum = ""; } // end league forum hacker by firefox //check usergroup of user to see if they can use PMs //$permissions=getpermissions($forumid); if ($enablepms==1 and $permissions['canusepm'] and $bbuserinfo['receivepm']) { $ignoreusers=""; if (trim($bbuserinfo['ignorelist'])!="") { $ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist']))); } $allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers"); $newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers"); $unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers"); if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";"); } else { $pminfo=''; } $numbermembers=number_format($siteinfo[numbersmembers]); // get total posts $totalposts=number_format($siteinfo[totalposts]); $totalthreads=number_format($siteinfo[totalthreads]); // get newest member $newusername=$siteinfo[newusername]; $newuserid=$siteinfo[newuserid]; // if user is know, then welcome if ($bbuserinfo['userid']!=0) { $username=$bbuserinfo['username']; eval("\$welcometext = \"".gettemplate('forumhome_welcometext')."\";"); eval("\$logincode = \"".gettemplate('forumhome_logoutcode')."\";"); eval("\$newposts = \"".gettemplate('forumhome_newposts')."\";"); } else { $welcometext = ""; eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";"); eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";"); } $birthdaybits=""; if ($showbirthdays) { $birthdays = gettemplate('birthdays',0,0); $btoday = explode('|||',$birthdays); $today = vbdate("Y-m-d",time()); if (($today != $btoday[0] and $today != $btoday[1]) or empty($birthdays)) { // Need to update! if (empty($birthdays)) { $DB_site->query("INSERT INTO template (templateid, templatesetid, title, template) VALUES (NULL, '-2', 'birthdays', '')"); } getbirthdays(); $birthdays = $DB_site->query_first("SELECT template FROM template WHERE title='birthdays' and templatesetid = -2"); $birthdays = $birthdays[template]; $btoday = explode('|||',$birthdays); } if ($today == $btoday[0]) { $birthdays = $btoday[2]; } elseif ($today == $btoday[1]) { $birthdays = $btoday[3]; } if ($birthdays) { eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";"); } } //Forum info $forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder'); while ($forum=$DB_site->fetch_array($forums)) { $iforumcache["$forum[parentid]"]["$forum[displayorder]"]["$forum[forumid]"] = $forum; } $DB_site->free_result($forums); unset($forum); //Forum perms $forumperms=$DB_site->query("SELECT forumid,canview,canpostnew,canviewothers FROM forumpermission WHERE usergroupid='$bbuserinfo[usergroupid]'"); while ($forumperm=$DB_site->fetch_array($forumperms)) { $ipermcache["$forumperm[forumid]"] = $forumperm; } $DB_site->free_result($forumperms); unset($forumperm); $accesscache = array(); if ($bbuserinfo['userid']!=0 AND $enableaccess) { //Access table perms $accessperms=$DB_site->query("SELECT forumid,accessmask FROM access WHERE userid='$bbuserinfo[userid]'"); while ($accessperm=$DB_site->fetch_array($accessperms)) { $accesscache["$accessperm[forumid]"] = $accessperm; } $DB_site->free_result($accessperms); unset($accessperm); // usergroup defaults $usergroupdef['canview'] = $permissions['canview']; $usergroupdef['canpostnew'] = $permissions['canpostnew']; // array for accessmask=0 $noperms['canview'] = 0; $noperms['canpostnew'] = 0; } $imodcache = array(); $mod = array(); $forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid FROM moderator LEFT JOIN user ON (moderator.userid=user.userid) ORDER BY user.username'); while ($moderator=$DB_site->fetch_array($forummoderators)) { $imodcache["$moderator[forumid]"][] = $moderator; $mod["$moderator[userid]"] = 1; } $DB_site->free_result($forummoderators); unset($moderator); $activeusers = ""; $loggedinusers = ""; if ($displayloggedin) { $datecut=time()-$cookietimeout; $loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut"); $numberguest=$loggedins['sessions']; $numbervisible=0; $numberregistered=0; $loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid,gender FROM session LEFT JOIN user ON (user.userid=session.userid) WHERE session.userid>0 AND session.lastactivity>$datecut ORDER BY invisible ASC, username ASC"); while ($loggedin=$DB_site->fetch_array($loggedins)) { $numberregistered++; $invisibleuser = ''; if ($loggedin['invisible']==1 and (($bbuserinfo['usergroupid']!=6) xor ($bbuserinfo['usergroupid']!=5) xor ($bbuserinfo['usergroupid']!=9))){ continue; } $numbervisible++; $userid=$loggedin['userid']; $farbe=$loggedin['usergroupid']; // ID auslesen if ($loggedin['invisible']==1) { // Invisible User but show to Admin $username=$loggedin['username']; $invisibleuser = '*'; } else { $username=$loggedin['username']; } if ($numbervisible % 7 == 0) { $usenamespc=""; } else { $usenamespc=""; } $location=$loggedin['location']; $gender=$loggedin["gender"]; if ($farbe == 2 ) { if($gender==1) { $username = " ".$username; // Color for Male Member } if($gender==2) { $username = " ".$username; // Color for Member } if($gender==-1) { $username = " ".$username; // Color for Non-sex Member } } if ($farbe == 5 ) { $username = " ".$username.""; // Color for Supermoderator } if ($farbe == 6 ) { $username = " ".$username.""; // Color for Administrator } if ($farbe == 7) { $username = " ".$username.""; // Color for Moderator } if ($farbe == 8) { $username = " ".$username.""; // Color for Moderator } if ($farbe == 9) { $username = " ".$username.""; // Color for Moderator } if ($farbe == 10) { $username = " ".$username.""; // Color for Moderator } eval("\$activeusers .= \"".gettemplate('forumhome_loggedinuser')." \";"); } } $DB_site->free_result($loggedins); $totalonline=$numberregistered+$numberguest; $numberinvisible=$numberregistered-$numbervisible; $maxusers = explode(' ', trim(gettemplate('maxloggedin', 0, 0)) ); $maxusers[0] = intval($maxusers[0]); if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) { $time = time(); $maxloggedin = intval($totalonline) . ' ' . $time; $DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); $maxusers[0] = $totalonline; $maxusers[1] = $time; } $recordusers = $maxusers[0]; $recorddate = vbdate($dateformat,$maxusers[1]); $recordtime = vbdate($timeformat,$maxusers[1]); eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";"); // Start makeforumbit function makeforumbit($forumid,$depth=1,$permissions='') { global $DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imodcache,$session,$accesscache,$usergroupdef,$noperms; global $showlocks,$hideprivateforums,$showforumdescription,$forumhomedepth,$dateformat,$timeformat,$enableaccess; if ( !isset($iforumcache["$forumid"]) ) { return; } $forumbits = ''; while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) { while ( list($key2,$forum)=each($val1) ) { // Permissions if ( $enableaccess and is_array($accesscache["$forum[forumid]"]) ) { if ($accesscache["$forum[forumid]"]['accessmask']==1) { $forumperms = $usergroupdef; } else { $forumperms = $noperms; } } else if ( is_array($ipermcache["$forum[forumid]"]) ) { $forumperms = $ipermcache["$forum[forumid]"]; } else { $forumperms = $permissions; } if (!$hideprivateforums) { $forumperms['canview']=1; } if (!$forumperms['canview']) { continue; } else { $forumshown=1; // do light bulb if ($bbuserinfo['lastvisitdate']=='未登录') { $forum['onoff']='on'; } else { if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) { $userlastvisit=$fview; } else { $userlastvisit=$bbuserinfo['lastvisit']; } if ($userlastvisit<$forum['lastpost']) { $forum['onoff']='on'; } else { $forum['onoff']='off'; } } if ((!$forumperms['canpostnew'] or $forum['allowposting']==0) and $showlocks) { $forum['onoff'].='lock'; } // prepare template vars if (!$showforumdescription) { $forum['description']=''; } if ($forum['icons'] != "") { $forum['icons'] = ""; } $threadtitle=$forum['lasttitle']; if (strlen($forum['lasttitle']) > 17) { $forum['lasttitle'] = csubstr($forum['lasttitle'], 14); $forum['lasttitle'] .= '..'; } // dates if ($forum['lastpost']>0) { $forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']); $forum['lastposttime']=vbdate($timeformat,$forum['lastpost']); if (($enableaccess and $accesscache["$forum[forumid]"]['accessmask']==1) or ($forumperms['canview'] and $forumperms['canviewothers'])) { $forum['lasttitle']=htmlspecialchars($forum['lasttitle']); } else { $forum['lasttitle']="你无权查看本区内容"; $threadtitle="你无权查看本区内容"; } eval("\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";"); } else { $forum['lastpostinfo']='没有帖子'; } $listexploded=explode(",", $forum['parentlist']); while ( list($mkey1,$mval1)=each($listexploded) ) { if ( !isset($imodcache["$mval1"]) ) { continue; } reset($imodcache["$mval1"]); while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) { if ( !isset($forum['moderators']) ) { eval("\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";"); } else { eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";"); } } } if ( !isset($forum['moderators']) ) { $forum['moderators'] = ' '; } if ($forum['cancontainthreads']==1) { $tempext = '_post'; } else { $tempext = '_nopost'; } eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); if ($depth<$forumhomedepth) { $forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms); } } // END if can view } // END while ( list($key2,$forum)=each($val1) ) { } // END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) { unset($iforumcache["$forumid"]); return $forumbits; } if (!isset($forumid) or $forumid==0 or $forumid=='') { $forumid=-1; } else { // need to get permissions for this specific forum $permissions=getpermissions(intval($forumid)); } $forumbits=makeforumbit(intval($forumid), 1, $permissions); $unregwelcomemessage=''; if ($bbuserinfo['userid']==0) { eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";"); } eval("dooutput(\"".gettemplate('forumhome')."\");"); ?>
[楼 主] | Posted:2004-10-29 14:07| 顶端
Terry

头衔:Game OverGame Over
该用户目前不在线
级别: 站务议员
编号: 2
精华: 1
发帖: 5036
威望: 0 点
配偶: 一条 菫子
火 花 币: 72113 HHB
组织纹章:
所属组织: 科莉娅圣教
组织头衔: 大贤者
注册时间:2002-11-26
最后登陆:2010-07-30
朱红之钻(I)
查看作者资料 发送短消息 引用回复这个帖子


ntlm....
偶不想说什么了
偶也不想说什么了

总之……就这样了



Equipment:
Electronic Guitar: Fender 013-3000-327 Deluxe Player Stratocaster | Schecter Omen-6 WHT
Acoustics Guitar: Recording King RD-06CE
Amp: Orange Micro Crush 3 | Blackstar HT-5 Halfstack
Pedals: DOD 250 | Modtone Analog Delay | Modtone Aqua Chorus|Modtone Vintage Wah | MI Audio CrunchBox

============================================
Pentax K10D | Pentax MX
Pentax FA 43/F1.9LE | FA 31/F1.8LE | DA 16-45/F4 | DA 60-250/F4
Pentax 540FZ
[1 楼] | Posted:2004-10-29 16:14| 顶端
AZXC

头衔:久代優希久代優希
该用户目前不在线
级别: 站务议员
编号: 36
精华: 4
发帖: 4590
威望: 0 点
配偶: 一条薰子
火 花 币: 7825 HHB
组织纹章:
所属组织: 科莉娅圣教
组织头衔: 时间女神
注册时间:2002-11-26
最后登陆:2017-06-16
朱红之钻(I)
查看作者资料 发送短消息 引用回复这个帖子


總之就是要解決了

此致



[2 楼] | Posted:2004-10-29 18:46| 顶端

火花天龙剑 -> 投诉专区




Powered by PHPWind v3.0.1 Code © 2003-05 PHPWind
辽ICP备05016763号
Gzip enabled

You can contact us