[mw_shl_code=php,true]<?php
0 Q X' @% E- |) \4 r
* P5 e- `/ j& j% A8 r) T P/**# B: E& l0 B8 D/ a: Z" p* y
* [Discuz!] (C)2001-2099 Comsenz Inc.
' {2 z/ N: T* ?( _, H% j8 L) Y * This is NOT a freeware, use is subject to license terms# M/ |, j2 G% a o. `9 r$ m8 f2 u9 e
*& T0 H' J+ s4 s! B. `
* $Id: forum.php 33828 2013-08-20 02:29:32Z nemohou $# B" n7 n7 y! N0 C- K, B7 j
*/
1 G2 t% ^7 W0 _0 m( z) a5 ~3 A
3 N! \: k7 o: q' F! t: J
- a6 q5 I( D0 d0 ddefine('APPTYPEID', 2);( N7 C4 G" |7 h" K5 C
define('CURSCRIPT', 'forum');
# c) ~5 ~$ [, ?; \+ Q
$ G: T; x8 }" n! D2 {6 b6 m) A I; ]; V
require './source/class/class_core.php';9 w2 I+ L: N1 k/ I! O1 R# k
0 i4 w2 z, Y- P7 `0 Q
: i) G- r/ s* H5 C% d( E" Grequire './source/function/function_forum.php';7 J3 \ x; {& ~) K" a- N/ E
5 S6 z6 M/ |% a9 Z% ^, _' H# x$ n% a% b
J" e- z6 N3 x/ \$modarray = array('ajax','announcement','attachment','forumdisplay',
( F: _: A' l6 F9 f; a3 a- D 'group','image','index','medal','misc','modcp','notice','post','redirect',
, B/ j( U9 F9 v 'relatekw','relatethread','rss','topicadmin','trade','viewthread','tag','collection','guide'5 H$ ]' o" T1 U8 X$ \( C
);
) @, ^ W5 d6 e3 l" d5 b
0 W1 u. D7 r, Z" J9 D$modcachelist = array(
1 m* X% o2 S6 L0 f2 `7 p 'index' => array('announcements', 'onlinelist', 'forumlinks',/ j/ H. S: d E( k
'heats', 'historyposts', 'onlinerecord', 'userstats', 'diytemplatenameforum'),0 I+ H1 p8 V$ m" k- X, w! ?7 L: z
'forumdisplay' => array('smilies', 'announcements_forum', 'globalstick', 'forums',
9 y) A6 u# }: d3 ~ 'onlinelist', 'forumstick', 'threadtable_info', 'threadtableids', 'stamps', 'diytemplatenameforum'),
+ r3 g4 }& t' ?9 R* Y% t, U. O 'viewthread' => array('smilies', 'smileytypes', 'forums', 'usergroups',1 y4 P1 S1 v: j5 W( _- m
'stamps', 'bbcodes', 'smilies', 'custominfo', 'groupicon', 'stamps',
0 O0 @6 R" \- S3 F$ J 'threadtableids', 'threadtable_info', 'posttable_info', 'diytemplatenameforum'),
$ N M" v X1 l7 _ 'redirect' => array('threadtableids', 'threadtable_info', 'posttable_info'),
. I* G. I7 C9 F1 x3 p0 ` 'post' => array('bbcodes_display', 'bbcodes', 'smileycodes', 'smilies', 'smileytypes',0 Y6 M D5 p- H2 M' b4 y0 R5 c
'domainwhitelist', 'albumcategory'),/ I$ _& O7 |0 w5 ]7 J/ v
'space' => array('fields_required', 'fields_optional', 'custominfo'),/ N2 u/ P* I+ G7 W" P
'group' => array('grouptype', 'diytemplatenamegroup'),
" C$ g+ p6 a* a6 [ 'topicadmin' => array('usergroups'),
; `" \' p. S. X);6 s6 x( E# g+ |' M2 `$ ^* q
0 N6 J: c( Z1 d1 ^" w: y$mod = !in_array(C::app()->var['mod'], $modarray) ? 'index' : C::app()->var['mod'];
0 e) |$ P& `" h, n8 \4 i' I9 T3 C) M) N' {: \1 e9 {9 y6 I
define('CURMODULE', $mod);
& A* _/ `2 d1 ~% ~. m1 I/ x; a$cachelist = array();
+ M$ f# x) i2 ?% rif(isset($modcachelist[CURMODULE])) {
2 U9 }2 @9 @( ^( s5 T) c $cachelist = $modcachelist[CURMODULE];
/ S' M. a0 B0 X/ g/ a5 T& b) L3 A
+ X$ J7 f: D9 a; G2 \" q7 a $cachelist[] = 'plugin';
0 x' e7 R- @9 ?. w6 ^# d; e $cachelist[] = 'pluginlanguage_system';: L( [# ]4 [0 L% O9 a
}& s0 p8 ?, p2 h$ [3 }
if(C::app()->var['mod'] == 'group') {
% Y1 ~3 t7 k6 m $_G['basescript'] = 'group';
/ U3 ?! P3 E1 [0 O}
" Z; K! R8 a, D, N& z5 l, A& v; i7 S# a% A9 n8 p" Y
C::app()->cachelist = $cachelist;
0 q5 e/ i9 V8 t) tC::app()->init();+ ~5 v2 g8 M5 [* f' {2 E# w! R
2 N+ Q, r( e) h. k; K2 Q
8 @+ R, O- ]9 x) {% @" ^loadforum();) T+ T% c8 w# X" ~! w2 L
3 _6 ~. @; s) |: W7 I% \
9 C, e: o8 s, A$ u, Yset_rssauth();
0 @/ K9 c ^) l7 W8 X, {
- F% c: p2 Q' Y6 s& b7 f( J0 V: v& R+ S
runhooks();
% M0 v- f, P1 Z# v; W: T+ a# x% n" Z; S) f
8 n( H1 f5 s0 s* j
* r& e. B: S/ @, ^$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['forum']);
, v0 ?4 o- H+ b0 ^5 r$ `$_G['setting']['threadhidethreshold'] = 1;2 C( a/ |8 j" E/ ?9 C3 S7 f7 L: J' q8 K
require DISCUZ_ROOT.'./source/module/forum/forum_'.$mod.'.php';0 T: H1 {* E/ F5 I* N7 r# Q
2 q- G1 T& e5 b" N' E; B
?>[/mw_shl_code]
6 o% Q# j3 I- V( [0 Z4 D |