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

📄 forums.php

📁 make project on java
💻 PHP
字号:
<?php
include'include/begin.php';
$tp3 = array(5, 7, 8,9,10,11,12,13,24);
$tpl_html = 'forums';
$hid = $fid = NULL;

if ($fuclose) echoerror(144);

require language();
$pagename_m = $_pagename[9];
$pagename_n = $bbsname;
$menufile = 'bbsmenu';
if (file_exists('cache/plad_' . $fid . '.php')) {
    include'cache/plad_' . $fid . '.php';
    $play = $text;
} else {
    $forumresult = mysql_query("select * from {$db_prefix}bbsinfo", $myconn);
    $forumrow = mysql_fetch_array($forumresult);
    $content = $forumrow['play'];

    sj($content, 'plad_' . $fid, $time);

    $play = $content;
} 
if (SERVER_GHO) $play = str_replace('WEBURL', SERVER_NAME, $play);	

if ($play != '') $tpl_pm = $e_play = '';

include'include/main.php';
$result = mysql_query("select * from {$db_prefix}bbsinfo", $myconn);
if ($b_row = mysql_fetch_array($result)) {
    $hour1 = date('z', $b_row['ctime']);
    $hour2 = date('z', $time);
    if ($hour1 != $hour2) {
        mysql_query("update {$db_prefix}members set  up_today='0',pm_today='0'" , $myconn);
        mysql_query("update {$db_prefix}bbsinfo set  ctime='$time'", $myconn);
    } 
    $foundtime = echotime($b_row['foundtime']);
    $higholtime = echotime($b_row['higholtime']);
    $membertime = echotime($b_row['membertime']);
    $highdatime = echodate($b_row['highdatime']);
    $newmember = $b_row['newmember'];
    $totalmember = $b_row['totalmember'];
    $higholnum = $b_row['higholnum'];
    $highdanum = $b_row['highdanum'];
} 
$fcount=array();
$result = mysql_query("select * from {$db_prefix}forums ", $myconn);
while ($row2 = mysql_fetch_array($result)) {
    unset($admint);
    $admin = explode(',', $row2['forumadmin']);
    while (list(, $val) = each($admin)) {
        $val?$admint .= $val . ' ': '';
    } 
    $lastpost = explode("\t", $row2['lastpost']);
    $countdata = $fcount[$row2['fid']]=array_sum(explode('|', $row2['countdata']));
    $forum[$row2['fid']] = array('ftype' => $row2['type'], 'fid' => $row2['fid'], 'name' => $row2['name'], 'foundtime' => echodate($row2['foundtime']), 'forumadmin' => $admint, 'pic' => $row2[pic]?$row2[pic]: 'template/default/images/forums-bg.gif', 'descrip' => $row2['descrip'], 'countdata' => $countdata, 'pcount' => $row2['pcount'], 'tcount' => $row2['tcount'], 'lastpost0' => $lastpost[0], 'lastpost1' => echotime($lastpost[1]), 'lastpost2' => $lastpost[2], 'lastpost3' => $user['admin'] == 1 || !$row2['type']?htmlspecialchars($lastpost[3]): $_p_index[0], 'lastpost4' => $user['admin'] == 1 || !$row2['type']?htmlspecialchars($lastpost[4]): $_p_index[0], 'lastpost5' => $user['admin'] == 1 || !$row2['type']?htmlspecialchars($lastpost[5]): $_p_index[0],);
} 


$content = '';

while (@list(, $aid) = each($aup)) {
	unset($fcount[$aid]);
    $i = 0;
    $content2 = $content3 = '';
    while (@list(, $bid) = each($bup[$aid])) {
	

        $cecho = 'display: none;';
        $content4 = '';
        while (@list(, $cid) = each($cup[$bid])) {
		            $cecho = '';
            $content4 .= tpl_fun_tpx4($forum[$cid]);
        } 

            $content3 .= tpl_fun_tpx3(array($forum[$bid], 'block' => $i === 0?'selectTag':'', 'fid' => $bid, 'softdir' => $softdir, 'i' => $i, 'id' => $aid, 'tpx4' => $content4, 'cecho' => $cecho));

        $i++;
    } 
    $content .= tpl_fun_tpx1(array($forum[$aid], 'id' => $aid, 'tpx3' => $content3));
}

arsort($fcount,SORT_NUMERIC);
 while (@list($key, $val) = each($fcount)) {
 $marquee.=tpl_fun_marquee(array('fname'=>$forumnames[$key],'fid'=>$key,'new'=>$val));
 
 }

 
include_once'./cache/template/m_' . $style_id . '_' . $tpl_html . '.php';

?>

⌨️ 快捷键说明

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