forum_collection.php
940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: forum_collection.php 28448 2012-03-01 03:27:53Z chenmengshu $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
require_once libfile('function/collection');
$tpp = $_G['setting']['topicperpage']; //per page
$maxteamworkers = $_G['setting']['collectionteamworkernum'];
$action = trim($_GET['action']);
$ctid = $_GET['ctid'];
$page = $_GET['page'];
$tid = intval($_GET['tid']);
$op = trim($_GET['op']);
$page = $page ? $page : 1;
if(!is_array($ctid)) {
$ctid = intval($ctid);
$_G['collection'] = C::t('forum_collection')->fetch($ctid);
}
$allowaction = array('index', 'view', 'edit', 'follow', 'comment', 'mycollection', 'all');
if(!in_array($action, $allowaction)) {
$action = 'index';
}
require_once libfile('collection/'.$action, 'include');
?>