AL8 Forum
»
Discuz 2.5 插件發佈
» 【半原創】首頁正式最新貼/回覆,四格顯示 CACHE版
‹‹ 上一主題
|
下一主題 ››
110
2/6
‹‹
1
2
3
4
5
6
››
標題: 【半原創】首頁正式最新貼/回覆,四格顯示 CACHE版
打印
|
推薦
|
訂閱
|
收藏
Linux0911
0010277
頭銜: Super Moderator
暱稱: Server 2003
自述: 研究生
帖子: 2604
精華: 0
積分: 9920 點
現金: 848 元
存款: 326686 元
閱讀權限: 110
註冊: 2004-10-23
狀態: 離線
#21
大
中
小
發表於 2005-6-22 22:12
資料
個人空間
主頁
短消息
加為好友
好似成功了
仔細看帖子的安裝步驟, 一定是漏了某個步驟
註冊日期:2004年10曰23日, 16時19分
現階段:研究所新生
http://linux0911.no-ip.info
AL8 Forum © All rights reserved.
cordless
0017933
頭銜: Newbie
帖子: 46
精華: 0
積分: 170 點
現金: 83 元
存款: 0 元
閱讀權限: 10
註冊: 2005-3-20
狀態: 離線
#22
大
中
小
發表於 2005-6-22 22:20
資料
個人空間
短消息
加為好友
刪除帖子資料還留在上面...其他正常可用...
AL8 Forum © All rights reserved.
kyssai
0018207
此發帖者已被禁止訪問
頭銜: Banned
帖子: 179
精華: 0
積分: 2272 點
現金: 601 元
存款: 0 元
閱讀權限: 0
註冊: 2005-3-25
狀態: 離線
#23
大
中
小
發表於 2005-6-22 22:20
資料
個人空間
短消息
加為好友
*** 作者被禁止或刪除 內容自動屏蔽 ***
Linux0911
0010277
頭銜: Super Moderator
暱稱: Server 2003
自述: 研究生
帖子: 2604
精華: 0
積分: 9920 點
現金: 848 元
存款: 326686 元
閱讀權限: 110
註冊: 2004-10-23
狀態: 離線
#24
大
中
小
發表於 2005-6-22 23:00
資料
個人空間
主頁
短消息
加為好友
無權訪問的文章也會顯示出來
仔細看帖子的安裝步驟, 一定是漏了某個步驟
註冊日期:2004年10曰23日, 16時19分
現階段:研究所新生
http://linux0911.no-ip.info
AL8 Forum © All rights reserved.
cordless
0017933
頭銜: Newbie
帖子: 46
精華: 0
積分: 170 點
現金: 83 元
存款: 0 元
閱讀權限: 10
註冊: 2005-3-20
狀態: 離線
#25
大
中
小
發表於 2005-6-22 23:17
資料
個人空間
短消息
加為好友
嗯...看起來要用還是有點問題...
基本上方法相當不錯...
AL8 Forum © All rights reserved.
危險
0023050
頭銜: Member
帖子: 67
精華: 0
積分: 440 點
現金: 0 元
存款: 33 元
閱讀權限: 15
註冊: 2005-6-5
來自: 台灣
狀態: 離線
#26
大
中
小
發表於 2005-6-23 00:00
資料
個人空間
主頁
短消息
加為好友
請問~有辦法把無權訪問的文章~隱藏嗎?
不然標題作者都被看光光了~"~
AL8 Forum © All rights reserved.
鬼影
0000050
頭銜: Moderator
暱稱: 地獄鬼影
帖子: 3474
精華:
1
積分: 60655 點
現金: 932 元
存款: 192267 元
閱讀權限: 100
註冊: 2003-12-26
來自: 地獄
狀態: 離線
#27
大
中
小
發表於 2005-6-23 00:17
資料
個人空間
短消息
加為好友
QUOTE:
引用由
cordless
於 2005-6-22 10:20 PM 發出的帖子內容
刪除帖子資料還留在上面...其他正常可用...
可以解決的
QUOTE:
引用由
Linux0911
於 2005-6-22 11:00 PM 發出的帖子內容
無權訪問的文章也會顯示出來
我收埋了
...
AL8 Forum © All rights reserved.
唔知
0001025
頭銜: Lord
帖子: 388
精華: 0
積分: 4684 點
現金: 21 元
存款: 0 元
閱讀權限: 25
註冊: 2004-4-2
狀態: 離線
#28
大
中
小
發表於 2005-6-23 02:11
資料
個人空間
短消息
加為好友
QUOTE:
引用由
cordless
於 2005-6-22 02:20 AM 發出的帖子內容
刪除帖子資料還留在上面...其他正常可用...
可以在topicadmin.php
的 showmessage('xxxxxx');
上加上
@require_once DISCUZ_ROOT.'./include/cache.php';
updatecache('new_post_threadlist');
updatecache('new_reply_threadlist');
AL8 Forum © All rights reserved.
唔知
0001025
頭銜: Lord
帖子: 388
精華: 0
積分: 4684 點
現金: 21 元
存款: 0 元
閱讀權限: 25
註冊: 2004-4-2
狀態: 離線
#29
大
中
小
發表於 2005-6-23 02:12
資料
個人空間
短消息
加為好友
QUOTE:
引用由
kyssai
於 2005-6-22 02:20 AM 發出的帖子內容
請問如何把公告顯示在四格顯示之上?
自行修改index.htm @@
index.htm 我沒有作出任何修改的
AL8 Forum © All rights reserved.
唔知
0001025
頭銜: Lord
帖子: 388
精華: 0
積分: 4684 點
現金: 21 元
存款: 0 元
閱讀權限: 25
註冊: 2004-4-2
狀態: 離線
#30
大
中
小
發表於 2005-6-23 02:16
資料
個人空間
短消息
加為好友
QUOTE:
引用由
Linux0911
於 2005-6-22 03:00 AM 發出的帖子內容
無權訪問的文章也會顯示出來
這個.. 因為是用cache的= =
alan的板本也有這個問題
你可以自行在 include/cache.php
內的
[Copy to clipboard]
[
-
]
CODE:
case new_post_threadlist:
$table = 'cdb_threads t, cdb_forums f';
$cols='t.*, f.name';
$conditions = "WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10";
break;
case new_reply_threadlist:
$table = 'cdb_threads t, cdb_forums f';
$cols='t.*, f.name';
$conditions = "WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 10";
break;
兩句的
[Copy to clipboard]
[
-
]
CODE:
WHERE
後加上
[Copy to clipboard]
[
-
]
CODE:
f.fid !='1234' AND
1234為你想隱藏的板的fid,
AL8 Forum © All rights reserved.
Charis
0021081
頭銜: King
帖子: 637
精華: 0
積分: 3772 點
現金: 155 元
存款: 0 元
閱讀權限: 30
註冊: 2005-5-13
狀態: 離線
#31
大
中
小
發表於 2005-6-23 03:16
資料
個人空間
短消息
加為好友
QUOTE:
引用由
唔知
於 2005-6-22 04:53 PM 發出的帖子內容
check下
[code]
case new_post_threadlist:
$table = 'cdb_threads t, cdb_forums f';
$cols='t.*, f.name';
$conditions = "WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or ...
冇錯 我係用 2.5sp1的
Warning: Invalid argument supplied for foreach() in /home/lucksforum/domains/lucksforum.com/public_html/index.php on line 136
Warning: Invalid argument supplied for foreach() in /home/lucksforum/domains/lucksforum.com/public_html/index.php on line 110
有乜丫嬌文@@.....??
[此帖最後由 Charis 在 2005-6-23 於 03:22 修改]
AL8 Forum © All rights reserved.
Charis
0021081
頭銜: King
帖子: 637
精華: 0
積分: 3772 點
現金: 155 元
存款: 0 元
閱讀權限: 30
註冊: 2005-5-13
狀態: 離線
#32
大
中
小
發表於 2005-6-23 03:24
資料
個人空間
短消息
加為好友
我個index.php 麻煩你幫我睇睇
[Copy to clipboard]
[
-
]
CODE:
<?php
/*
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [DISCUZ!] Crossday Discuz! Board ::
:: (c) 2001-2005 Comsenz Technology Ltd ([url]www.discuz.com)[/url] ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Author: Crossday ([email]tech@discuz.com[/email]) Cnteacher ([email]cnteacher@discuz.com[/email]) ::
:: Version: 2.5F 2004/10/01 05:15 ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/
//fix: BY pk0909
/*
1 空白論壇問題
*/
define('CURRSCRIPT', 'index');
require './include/common.php';
require DISCUZ_ROOT.'./include/forum.php';
require DISCUZ_ROOT.'./include/misc.php';
$discuz_action = 1;
if(isset($showoldetails)) {
switch ($showoldetails) {
case 'no': setcookie('onlinedetail', 0, $timestamp + 86400 * 365, $cookiepath, $cookiedomain); break;
case 'yes': setcookie('onlinedetail', 1, $timestamp + 86400 * 365, $cookiepath, $cookiedomain); break;
}
} else {
$showoldetails = false;
}
$currenttime = gmdate($timeformat, $timestamp + $timeoffset * 3600);
$lastvisittime = gmdate("$dateformat $timeformat", $lastvisit + $timeoffset * 3600);
$memberenc = rawurlencode($lastmember);
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
//---------------hack Meminfo start
if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 6.0")) {
$visitor_browser = "IE 6.0";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.5")) {
$visitor_browser = "IE 5.5";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.0")) {
$visitor_browser = "IE 5.0";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 4.01")) {
$visitor_browser = "IE 4.01";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NetCaptor")) {
$visitor_browser = "NetCaptor";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Netscape")) {
$visitor_browser = "Netscape";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Lynx")) {
$visitor_browser = "Lynx";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Opera")) {
$visitor_browser = "Opera";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Konqueror")) {
$visitor_browser = "Konqueror";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mozilla")) {
$visitor_browser = "Mozilla";
} else {
$visitor_browser = "其它";
}
//上面的是瀏覽器//
if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.1")) {
$visitor_os = "Win XP";
}elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.2")) {
$visitor_os = "Win Server 2003";
}elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5")) {
$visitor_os = "Win 2000";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "4.9")) {
$visitor_os = "Win ME";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 4")) {
$visitor_os = "Win NT 4.0";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "98")) {
$visitor_os = "Win 98";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "95")) {
$visitor_os = "Win 95";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mac")) {
$visitor_os = "Mac";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Linux")) {
$visitor_os = "Linux";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Unix")) {
$visitor_os = "Unix";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "FreeBSD")) {
$visitor_os = "FreeBSD";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "SunOS")) {
$visitor_os = "SunOS";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "BeOS")) {
$visitor_os = "BeOS";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "OS/2")) {
$visitor_os = "OS/2";
} elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "PC")) {
$visitor_os = "Macintosh";
}elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "AIX")) {
$visitor_os = "AIX";
} else {
$visitor_os = "其他";
}
$mem_home = convertip($onlineip, $datadir = "./");
//info//
//新貼//
$hack_cut_str = 24; //修改標題顯示字數
$new_post_threadlist = array();
$nthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$query = $db->query("SELECT t.*, f.name FROM $table_threads t, $table_forums f WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 15");
while($nthread = $db->fetch_array($query)) {
$nthread['forumname'] = $nthread['name'];
$nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
$nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
$nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
if($nthread['highlight']) {
$string = sprintf('%02d', $nthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$nthread['highlight'] = 'style="';
$nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
$nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
$nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
$nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
$nthread['highlight'] .= '"';
} else {
$nthread['highlight'] = '';
}
$new_post_threadlist[] = $nthread;
}
//新貼//
//新回覆
$hack_cut_str = 24; //修改標題顯示字數
$new_reply_threadlist = array();
$rthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$query = $db->query("SELECT t.*, f.name FROM $table_threads t, $table_forums f WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 15");
while($rthread = $db->fetch_array($query)) {
$rthread['forumname'] = $rthread['name'];
$rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
$rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
$rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
if($rthread['highlight']) {
$string = sprintf('%02d', $rthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$rthread['highlight'] = 'style="';
$rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
$rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
$rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
$rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
$rthread['highlight'] .= '"';
} else {
$rthread['highlight'] = '';
}
$new_reply_threadlist[] = $rthread;
}
AL8 Forum © All rights reserved.
Charis
0021081
頭銜: King
帖子: 637
精華: 0
積分: 3772 點
現金: 155 元
存款: 0 元
閱讀權限: 30
註冊: 2005-5-13
狀態: 離線
#33
大
中
小
發表於 2005-6-23 03:26
資料
個人空間
短消息
加為好友
唔該你
[Copy to clipboard]
[
-
]
CODE:
//回覆//
//---------------Hack Today Visit Start
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE lastvisit >='".($timestamp - 86400)."'");
$todaymembersnum = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM $table_members WHERE regdate>='".($timestamp - 86400)."'");
$membersaddtoday = $db->result($query, 0);
//---------------Hack Today Visit End
if(empty($gid)) {
$navigation = $navtitle = '';
$announcements = '';
if($_DCACHE['announcements']) {
$space = '';
foreach($_DCACHE['announcements'] as $announcement) {
if($timestamp >= $announcement['starttime'] && ($timestamp <= $announcement['endtime'] || !$announcement['endtime'])) {
if ($announcement['posturl']){
$announcements .= $space.'<a href="'.$announcement['posturl'].'" target="_blank"><span class="bold">'.$announcement['subject'].'</span> '.
'('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
}else{
$announcements .= $space.'<a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'" target="_blank"><span class="bold">'.$announcement['subject'].'</span> '.
'('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
}
$space = ' ';
}
}
}
unset($_DCACHE['announcements']);
$threads = $posts = 0;
$subforumlist= array(); //首頁顯示【子版列表】
$forumlist = $catforumlist = $forums = $catforums = $categories = array();
$sql = $accessmasks ? "SELECT f.fid, f.fup, f.type, f.icon, f.name, f.description, f.moderator, f.threads, f.posts, f.lastpost, f.viewperm, f.bgimage, a.allowview FROM $table_forums f
LEFT JOIN $table_access a ON a.uid='$discuz_uid' AND a.fid=f.fid
WHERE f.status='1' ORDER BY f.type, f.displayorder"
: "SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm, creditneeded, bgimage FROM $table_forums WHERE status='1' ORDER BY type, displayorder";
$query = $db->query($sql);
while($forum = $db->fetch_array($query)) {
$forumname[$forum['fid']] = strip_tags($forum['name']);
if($forum['type'] != 'group') {
$threads += $forum['threads'];
$posts += $forum['posts'];
if($forum['type'] != 'sub') {
$forums[$forum['fid']] = $forum;
//首 示【子版列表】by Windheart
} elseif((!$forum['viewperm'] && $allowview) || ($forum['viewperm'] && strstr($forum['viewperm'], "\t$groupid\t"))) {
$subforumlist[$forum['fup']] .= "*<a href=forumdisplay.php?fid=".$forum['fid']." >".$forum['name']."</a> ";
$forums[$forum['fup']]['threads'] += $forum['threads'];
$forums[$forum['fup']]['posts'] += $forum['posts'];
//End
} elseif($forums[$forum['fup']]['type'] == 'forum') {
$forums[$forum['fup']]['threads'] += $forum['threads'];
$forums[$forum['fup']]['posts'] += $forum['posts'];
}
} else {
$categories[] = $forum;
}
}
if($categories) {
foreach($categories as $group) {
$group_forum = array();
foreach($forums as $fid => $forum) {
if($forum['fup'] == $group['fid']) {
if(forum($forum)) {
$group_forum[] = $forum;
unset($forums[$fid]);
}
} elseif(!$forum['fup'] && $forum['type'] == 'forum') {
$catforums[] = $forum;
unset($forums[$fid]);
}
}
if($group_forum) {
$forumlist = array_merge($forumlist, array($group), $group_forum);
}
}
} else {
$catforums = $forums;
}
foreach($catforums as $forum) {
if($forum['fid'] && forum($forum) ) {
$catforumlist[] = $forum;
}
}
if($catforumlist) {
$forumlist[] = array('fid' => 0, 'type' => 'group', 'name' => $bbname);
$forumlist = array_merge($forumlist, $catforumlist);
}
unset($fid, $forums, $catforums, $catforumlist, $categories, $group, $forum, $group_forum);
if($whosonlinestatus == 1 || $whosonlinestatus == 3) {
$whosonlinestatus = 1;
$onlineinfo = explode("\t", $onlinerecord);
$detailstatus = ((!isset($_COOKIE['onlinedetail']) && $onlineinfo[0] < 500) || ($_COOKIE['onlinedetail'] || $showoldetails == 'yes')) && $showoldetails != 'no';
if($detailstatus) {
@include language('actions');
updatesession();
$onlinenum = $membercount = $invisiblecount = $guestcount = 0;
$whosonline = array();
$query = $db->query("SELECT uid, ip1, ip2, ip3, ip4, username, groupid, invisible, action, lastactivity, fid FROM $table_sessions");
while($online = $db->fetch_array($query)) {
if($online['uid']) {
$membercount++;
if(!$online['invisible']) {
//$online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
//(display all group) by pk0909 2005-2-23 start 2/2
if ($online['uid']) {
$online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
} elseif (isset($_DCACHE['onlinelist'][7])) {
$online['icon'] = $_DCACHE['onlinelist'][7];
$online['username'] = 'Guest';
}
//(display all group) by pk0909 2005-2-23 end 2/2
} else {
$invisiblecount++;
if ($adminid == 1 ){
$online['icon'] = 'online_invisible.gif';
}else{
continue;
}
}
$online['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
$online['action'] = $actioncode[$online['action']];
$online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
$whosonline[] = $online;
} else {
$guestcount++;
//(display all group) by pk0909 2005-2-23 start 1/1
if (isset($_DCACHE['onlinelist'][7])) {
$online['icon'] = $_DCACHE['onlinelist'][7];
$online['username'] = '遊客';
$online['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
$online['action'] = $actioncode[$online['action']];
$online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
$whosonline[] = $online;
}
//(display all group) by pk0909 2005-2-23 end 1/1
}
}
$onlinenum = $membercount + $guestcount;
unset($online);
} else {
$query = $db->query("SELECT COUNT(*) FROM $table_sessions");
$onlinenum = $db->result($query, 0);
}
if($onlinenum > $onlineinfo[0]) {
require_once DISCUZ_ROOT.'./include/cache.php';
$db->query("UPDATE LOW_PRIORITY $table_settings SET value='$onlinenum\t$timestamp' WHERE variable='onlinerecord'");
updatecache('settings');
$onlineinfo = array($onlinenum, $timestamp);
}
$onlineinfo[1] = gmdate($dateformat, $onlineinfo[1] + ($timeoffset * 3600));
} else {
$whosonlinestatus = 0;
}
if($discuz_user && $newpm) {
require DISCUZ_ROOT.'./include/pmprompt.php';
}
include template('index');
} else {
$forumlist = $cat = array();
$threads = $posts = 0;
$sql = $accessmasks
?
"SELECT f.fid, f.fup, f.type, f.icon, f.name, f.description, f.moderator, f.threads, f.posts, f.lastpost, f.viewperm, f.bgimage, a.allowview FROM $table_forums f
LEFT JOIN $table_access a ON a.uid='$discuz_uid' AND a.fid=f.fid
WHERE (f.fid='$gid' OR (f.fup='$gid' AND f.type='forum')) AND f.status='1' ORDER BY f.type, f.displayorder"
:
"SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm, bgimage FROM $table_forums
WHERE (fid='$gid' OR (fup='$gid' AND type='forum')) AND status='1' ORDER BY type, displayorder";
$query = $db->query($sql);
while($forum = $db->fetch_array($query)) {
if($forum['type'] == 'group') {
$cat = $forum;
} else {
$threads += $forum['threads'];
$posts += $forum['posts'];
}
if(forum($forum)) {
$forumlist[] = $forum;
}
}
if(empty($cat)) {
showmessage('forum_nonexistence', NULL, 'HALTED');
}
$navigation = '» '.$cat['name'];
$navtitle = ' - '.strip_tags($cat['name']);
include template('index');
}
?>
AL8 Forum © All rights reserved.
唔知
0001025
頭銜: Lord
帖子: 388
精華: 0
積分: 4684 點
現金: 21 元
存款: 0 元
閱讀權限: 25
註冊: 2004-4-2
狀態: 離線
#34
大
中
小
發表於 2005-6-23 03:26
資料
個人空間
短消息
加為好友
code左佢丫
AL8 Forum © All rights reserved.
唔知
0001025
頭銜: Lord
帖子: 388
精華: 0
積分: 4684 點
現金: 21 元
存款: 0 元
閱讀權限: 25
註冊: 2004-4-2
狀態: 離線
#35