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

📄 cate.php

📁 bmb的论坛
💻 PHP
字号:
<?
/* BMForum Plus! Bulletin Board Systems Version : Plus!  This is a freeware, but don't change the copyright information. A SourceForge Project - GNU Licence project. Web Site: http://www.bmforum.com Copyright (C) Bluview Technology*/
include_once("datafile/config.php");
include_once("getskin.php");
include_once("datafile/usertitle.php");
include_once("template.php"); 
include_once("lang/$language/index.php");

if(!file_exists("datafile/cache/themes/$styleidcode/index-$language-$openstylereplace.htm")){
	$noexists=1;
	newtemplate("indexHandle", "newtem/$temfilename/index.htm"); 
}else{
	newtemplate("indexHandle", "datafile/cache/themes/$styleidcode/index-$language-$openstylereplace.htm",1); 
}

if($cachedstyle==0) {
	$noexists=0;
	set_var($indexinfo,"",FALSE,"indexinfo");set_var($popp,"",FALSE,"popp");
	if($openstylereplace==1)  set_var(array("categorycolor"=>$categorycolor,"decorate1"=>$decorate1,"decorate2"=>$decorate2,"decorate3"=>$decorate3,"decorate4"=>$decorate4,"winimages"=>$winimages,"jiazhongcolor"=>$jiazhongcolor,"logofile"=>$logofile,"otherimages"=>$otherimages,"replyicon"=>$replyicon,"npollicon"=>$npollicon,"npost"=>$npost,"pollicon"=>$pollicon,"posticon"=>$posticon,"nonewpost"=>$nonewpost,"onlyread"=>$onlyread,"newpost"=>$newpost,"tablebg"=>$tablebg,"header_tile"=>$header_tile,"tile_back"=>$tile_back,"background_color"=>$background_color,"article_color2"=>$article_color2,"article_color1"=>$article_color1,"list_color2"=>$list_color2,"list_color1"=>$list_color1,"forumcolortwo"=>$forumcolortwo,"forumcolorone"=>$forumcolorone,"forumdescolor"=>$forumdescolor,"forumnamecolor"=>$forumnamecolor,"categoryfontcolor"=>$categoryfontcolor,"cautioncolor"=>$cautioncolor,"subcolor"=>$subcolor,"tablewidth"=>$tablewidth,"bordercolor"=>$bordercolor,"titlefontcolor"=>$titlefontcolor,"titlecolor"=>$titlecolor,"backgroundcolor"=>$backgroundcolor,));
	set_var(array("script_pos" => $script_pos,"logofile" => $logofile,"indexinfo" => $indexinfo)); 
	set_var($forum_line,"",FALSE,"forum_line");
}
if($noexists) {
	set_var($indexinfo,"",FALSE,"indexinfo"); set_var($popp,"",FALSE,"popp");
	if($openstylereplace==1)  set_var(array("categorycolor"=>$categorycolor,"decorate1"=>$decorate1,"decorate2"=>$decorate2,"decorate3"=>$decorate3,"decorate4"=>$decorate4,"winimages"=>$winimages,"jiazhongcolor"=>$jiazhongcolor,"logofile"=>$logofile,"otherimages"=>$otherimages,"replyicon"=>$replyicon,"npollicon"=>$npollicon,"npost"=>$npost,"pollicon"=>$pollicon,"posticon"=>$posticon,"nonewpost"=>$nonewpost,"onlyread"=>$onlyread,"newpost"=>$newpost,"tablebg"=>$tablebg,"header_tile"=>$header_tile,"tile_back"=>$tile_back,"background_color"=>$background_color,"article_color2"=>$article_color2,"article_color1"=>$article_color1,"list_color2"=>$list_color2,"list_color1"=>$list_color1,"forumcolortwo"=>$forumcolortwo,"forumcolorone"=>$forumcolorone,"forumdescolor"=>$forumdescolor,"forumnamecolor"=>$forumnamecolor,"categoryfontcolor"=>$categoryfontcolor,"cautioncolor"=>$cautioncolor,"subcolor"=>$subcolor,"tablewidth"=>$tablewidth,"bordercolor"=>$bordercolor,"titlefontcolor"=>$titlefontcolor,"titlecolor"=>$titlecolor,"backgroundcolor"=>$backgroundcolor,));
	set_var(array("script_pos" => $script_pos,"logofile" => $logofile,"indexinfo" => $indexinfo)); 
	set_var($forum_line,"",FALSE,"forum_line");
	$wrtingcaches=nsubst(0);
	writetofile("datafile/cache/themes/$styleidcode/index-$language-$openstylereplace.htm",$wrtingcaches);
}
 set_var(array("script_pos" => $script_pos,"forumdescolor" => $forumdescolor,"winimages" => $winimages,"logofile" => $logofile,"categorycolor" => $categorycolor,"indexinfo" => $indexinfo,"tablewidth" => $tablewidth, "article_color2" => $article_color2, "tablebg" => $tablebg, "bordercolor" => $bordercolor, "subcolor" => $subcolor, "otherimages" => $otherimages, "tile_back" => $tile_back, "ategorycolor" => $ategorycolor, "categoryfontcolor" => $categoryfontcolor, "forumcolorone" => $forumcolorone, "forumcolortwo" => $forumcolortwo, "bordercolor" => $bordercolor, "jiazhongcolor" => $jiazhongcolor,"backgroundcolor" => $backgroundcolor,"posticon" => $posticon,"pollicon" => $pollicon,)); 
 set_var($forum_line,"",FALSE,"forum_line");

$all_lastmo=@file("datafile/lastreply.php");
$all_count=count($all_lastmo);
if (file_exists('datafile/forumdata.php')) $forumlist=file('datafile/forumdata.php');
if (file_exists('datafile/newuser.php')) $newuserinfo=readfromfile('datafile/newuser.php');
	else $newuserinfo='|0|0';
$newuser_info=explode('|',$newuserinfo);
if (file_exists('datafile/admin.php')) {
	$adminlist=file('datafile/admin.php');
	$count=count($adminlist);
	for ($i=0; $i<$count; $i++) {
		$detail=explode("|", trim($adminlist[$i]));
		$admin_list[]=$detail[1];
		$forum_admin[$detail[0]][]=$detail[1];
	}
}
$cip=$ip;

require("header.php");
echo "<br>";

$count=count($forumlist);
for ($i=0; $i<$count; $i++) {
	$detail=explode('|',$forumlist[$i]);
}

		
$count=count($forumlist); 
for ($i=0; $i<$count; $i++) { 
	$detaila=explode('|',$forumlist[$i]); 
	if ($detaila[3]==$cateid && $detaila[0]=="<?exit;?>category") {
		$cate_name=$detaila[1];
	}
}

if (file_exists('datafile/admin.php')) {
	$adminlist=file('datafile/admin.php');
	$counta=count($adminlist);
	for ($ic=0; $ic<$counta; $ic++) {
		$detail=explode("|", trim($adminlist[$ic]));
		$admin_list[]=$detail[1];
		if($detail[0]==$cateid) $admin_c_list[]=$detail[1];
	}
}

if (empty($admin_c_list[0])) {$clist="<select><option target=_self value=\"#\">$fenleiq[0]</option><option target=_self value=\"#\">---------</option><option target=_self value=\"#\">$fenleiq[1]</option></select>";}else{
	$countc=count($admin_c_list);
	$clist="<select onchange='adminjump(this)'><option>$fenleiq[0]</option><option>---------</option>";
		for ($ia=0; $ia<$countc; $ia++) {
			if(!empty($admin_c_list[$ia])){
				$clist.="<option value=\"profile.php?job=show&target=".urlencode($admin_c_list[$ia])."\">$admin_c_list[$ia]</option>";
			}
		}
	$clist.="</select> ";
}
//妯℃澘鏇挎崲澶

⌨️ 快捷键说明

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