⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forums.php

📁 bmb的论坛
💻 PHP
📖 第 1 页 / 共 2 页
字号:
			$snavi_bar[1]="<a href='forums.php?forumid=$forumid'>$forum_name</a>";
			$snavi_bar[2]=$tip[5];
			$des=$tip[6];
			navi_bar();
		}
	}else{
	if(empty($up_name)) {
		$navimode=newmode;
		$des=$tip[7];
		$snavi_bar[0]="<a href='forums.php?forumid=$forumid&jinhua=$jinhua'>$forum_name</a>";
		navi_bar();
	}else{
		$navimode=newmode;
		$des=$tip[7];
		$snavi_bar[0]="<a href='forums.php?forumid=$up_id&jinhua=$jinhua'>$up_name</a>";
		$snavi_bar[1]="<a href='forums.php?forumid=$forumid&jinhua=$jinhua'>$forum_name</a>";
		navi_bar();
	}
}
if ($view_forum_online) whosonline();
@include("datafile/rules/".basename($forumid).".php");
if($ourrule) {
	 set_var(array("ourrules" => $ourrule));
	 psubst(1);
}
 psubst(2);

$preoutput= subst(5);
$preoutput_row= subst(6);

$all_lastmo=@file("datafile/lastreply.php");
$all_count=count($all_lastmo);

$count=count($forumlist); 
$th_arr=array(1=>"a",2=>"b",3=>"c",4=>"d");
$replaces_a=array("{ztnum_a}"=>" ","{detail_a[2]}"=>" ","{detail_a[5]}"=>" ","{forumlabel_a}"=>" ");
$replaces_b=array("{ztnum_b}"=>" ","{detail_b[2]}"=>" ","{detail_b[5]}"=>" ","{forumlabel_b}"=>" ");
$replaces_c=array("{ztnum_c}"=>" ","{detail_c[2]}"=>" ","{detail_c[5]}"=>" ","{forumlabel_c}"=>" ");
$replaces_d=array("{ztnum_d}"=>" ","{detail_d[2]}"=>" ","{detail_d[5]}"=>" ","{forumlabel_d}"=>" ");

$adminlist=@file('datafile/admin.php');
$counta=@count($adminlist);

for ($i=0; $i<$count; $i++) { 
	$detail=explode('|',$forumlist[$i]); 
	$detail[0]=str_replace("<?exit;?>","",$detail[0]);
 	if ($detail[4]==$forumid) {
		if ($detail[0]=='subforum' || $detail[0]=='subselection' || $detail[0]=='subformer' || $detail[0]=='sublocked' || $detail[0]=='subclosed') {
			if(!$oplined){
			 if($fcaterows=="row") psubst(3);
				 else psubst(4); $oplined=1;
			 }
			if($fcaterows=="row") forum_line_row($detail[0]);
			else forum_line($detail[0]);
		}
		if(check_permission($username,$detail[0]) && $detail[0]=='subhidden'){
			if(!$oplined){ 
			if($fcaterows=="row") psubst(3);
				else psubst(4); $oplined=1;
			}
			if($fcaterows=="row") forum_line_row($detail[0]);
			else forum_line($detail[0]);
		}
	} 
}
if($fcaterows=="row" && $leiji!=0 && $leiji<5){
	$replaces=array_merge($replaces_a,$replaces_b,$replaces_c,$replaces_d);
	$output=reparray($replaces,$preoutput_row);
	echo $output;
}
if($oplined==1){  psubst(7);}
$preoutput_news=subst(11);
psubst(8);
if ($bbs_news && $page==1) {
	if (file_exists("{$idpath}forum{$forumid}/announcement.php")) {
	$announcelist=file("{$idpath}forum{$forumid}/announcement.php"); }
	$count=count($announcelist);
	for ($i=0;$i<$count;$i++) {
		if($i>=$set_forinfo) break;
		$ic=$i+1;
		list($aauthor,$atitle,$atime,$acontent,$amember)=explode("|",$announcelist[$i]);
		$almdtime=get_date($atime).' '.get_time($atime);
		$salmdtime=get_date($atime);
		$size_gg=utf8_strlen($acontent);
		$ag=$timestamp-$atime;
		$announceurl='announcesys.php?forumid='.$forumid.'&job=read&msg='.$i;
		$replaces=array("{announceurl}" => $announceurl,"{topic_name}" => $atitle,"{title}" => $atitle,"{almdtime}" => $almdtime,"{topic_author}" => $aauthor,"{salmdtime}" => $salmdtime);
		$news_top.=reparray($replaces,$preoutput_news);
	}
}
if (isset($forum_admin)) {
	$count=count($forum_admin);
	for ($i=0; $i<$count; $i++) $echoinfoa.= "<OPTION target=_self value=\"".urlencode($forum_admin[$i])."\">$forum_admin[$i]</option>"; 

}else $echoinfoa.= "<OPTION target=_self value=\"#\">$infoan[1]</option>"; 

 set_var(array("echoinfoa" => $echoinfoa)); 
psubst(9);
echo $news_top;
$preoutput_top=subst(12);
if (file_exists("datafile/topsys.php") && $page==1) {
	$announcelist=file("datafile/topsys.php");
	for ($i=0; $i<$max_zzd; $i++) {
		list($aauthor,$foruid,$atime,$acontent,$amember,$topid)=explode("|",$announcelist[$i]);
		$fourumidtop[]=$foruid;
		$filenametop[]=$topid;
		if ($aauthor=='')  { 
			$max_zzd=$i;
		}
	}
	for ($i=0; $i<$max_zzd; $i++) {
		list($aauthor,$foruid,$atime,$acontent,$amember,$topid)=explode("|",$announcelist[$i]);
		if(file_exists("{$idpath}forum$foruid/$topid")){
			if($inputed==0){
				echo str_replace("{showits}",$coninfo[13],$importtopic);$inputed=1;
			}
			if ($login_status==1 && (($forum_admin && in_array($username,$forum_admin))  || $usertype[22]=="1" || $usertype[21]=="1" ) )  {$toplangg="<a href='topsys.php?job=delone&msg=$i'>$coninfo[12]</a>&nbsp;&nbsp;"; }
			$size_gg=utf8_strlen($acontent);
			$ag=$timestamp-$atime;
			$articlelist=file("{$idpath}forum$foruid/$topid");
			list($topic_name,$topic_author,$topic_content,$topic_date,$topic_area,$topic_icon,$topic_usesign,$topic_bym,$topic_bymuser,$topic_uploadfilename,$topic_editinfo,$sell)=explode("|",$articlelist[0]);
			$count=count($articlelist)-1; 
			list($retopic_name,$retopic_author,$retopic_content,$retopic_date,$retopic_area,$retopic_icon,$retopic_usesign,$retopic_bym,$retopic_bymuser,$retopic_uploadfilename,$retopic_editinfo,$resell)=explode("|",$articlelist[$count]);
			$almdtime_tmp=get_date($retopic_date).' '.get_time($retopic_date);
			$cmdtime_tmp=get_date($topic_date);
			if ($time_2){
				$timetmp_a=$timestamp-$retopic_date;
				$almdtime=get_add_date($timetmp_a);
				if($almdtime=="getfulldate"){
					$almdtime=$almdtime_tmp;
				}
				$timedmp_b=$timestamp-$topic_date;
				$aimetoshow=get_add_date($timedmp_b);
				if($aimetoshow=="getfulldate"){
					$aimetoshow=$cmdtime_tmp;
				}
			}else{
				$almdtime=$almdtime_tmp;
				$aimetoshow=$cmdtime_tmp;
			}


			if (!empty($topic_uploadfilename)) $title='<img src="images/attach/attach.gif" border=0>'.$title;
			$title=str_replace('%a%','',$title);
			$topic_name=stripslashes($topic_name);
			$topic_name=str_replace('%a%','',$topic_name);
			if (!empty($topic_uploadfilename)) $titlelong=$coninfo[3].$titlelong;
			$titlelong=str_replace('%a%','',$titlelong);
			$moveinfo="";
			$isjztitle="";
			if (file_exists("{$idpath}forum$foruid/$topid.add")){
				$articlelistmove=file("{$idpath}forum$foruid/$topid.add");
				list($moveinfo,$isjztitle)=explode("|",$articlelistmove[0]);
				list($isjztitle,$isjzcolor,$jiacu,$shanchu,$xiahuau,$xietii)=explode(",",$isjztitle);
			}
			if ($banuserposts && in_array($topic_author,$banuserposts) && $username!=$topic_author){
				$title_back=""; $retitle_back="";}
			if(!empty($des)) $desshow="\n$des";
			$title="$coninfo[4]\n$topic_name"; 
			if($jiacu) $topic_name="<B>".$topic_name."</b>";
			if($shanchu) $topic_name="<STRIKE>".$topic_name."</STRIKE>";
			if($xiahuau) $topic_name="<u>".$topic_name."</u>";
			if($xietii) $topic_name="<i>".$topic_name."</i>";
			if($isjztitle=="1"){
				if(empty($isjzcolor)){
					$topic_name="<font color=\"$jiazhongcolor\">$topic_name</font>";	
				}else{
					$topic_name="<font color=\"$isjzcolor\">$topic_name</font>";	
				}
			}
			$multipage="";
			if ($count+1>$read_perpage) {
				if (($count+1)%$read_perpage==0) $maxpageno=($count+1)/$read_perpage;
					else $maxpageno=floor(($count+1)/$read_perpage)+1;
				$multipage='[ <img title="'.$forum_mang_t[15].'" src="'.$otherimages.'/mpages.gif"><b style="font-size:7pt;font-family:verdana;">';
				for ($ixx=1; $ixx<=$maxpageno; $ixx++) {
					$multipage.=" <a style='color:505060' href=\"$filetopn?forumid=$foruid&filename=$topid&page=$ixx\">$ixx</a>";
					if ($ixx==5) {$multipage.=" . . . <a style='color:000066' href=\"$filetopn?forumid=$foruid&filename=$topid&page=last\">$maxpageno</a>"; break;}
				}
				$multipage.='</b> '.$forum_mang_t[16].']';
			}
			$topic_name="$topic_name</a>  ".$multipage;
			$replaces=array("{foruid}" => $foruid,"{topic_author}" => $topic_author,"{retopic_author}" => $retopic_author,"{almdtime}" => $almdtime,"{toplangg}" => $toplangg,"{topid}" => $topid,"{aimetoshow}" => $aimetoshow,"{title}" => $title,"{topic_name}" => $topic_name);
			echo reparray($replaces,$preoutput_top);
		}else{
			unset($announcelist[$i]);
			writetofile("datafile/topsys.php",implode("",$announcelist));
		}
	}
}
//鎬荤疆椤朵笌鍖虹疆椤

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -