-
Notifications
You must be signed in to change notification settings - Fork 1
/
links.php
52 lines (47 loc) · 1.2 KB
/
links.php
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
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* @package phpBB-WAP
* @简体中文:中文phpBB-WAP团队
* @license http://opensource.org/licenses/gpl-license.php
**/
/**
* 这是一款自由软件, 您可以在 Free Software Foundation 发布的
* GNU General Public License 的条款下重新发布或修改; 您可以
* 选择目前 version 2 这个版本(亦可以选择任何更新的版本,由
* 你喜欢)作为新的牌照.
**/
define('IN_PHPBB', true);
define('ROOT_PATH', './');
require(ROOT_PATH . 'common.php');
$userdata = $session->start($user_ip, PAGE_MODS);
init_userprefs($userdata);
$mode = (isset($_GET['mode'])) ? $_GET['mode'] : '';
switch ($mode)
{
case 'cat':
require ROOT_PATH . 'includes/links/cat.php';
break;
case 'view':
require ROOT_PATH . 'includes/links/view.php';
break;
case 'edit':
require ROOT_PATH . 'includes/links/edit.php';
break;
case 'manage':
require ROOT_PATH . 'includes/links/manage.php';
break;
case 'join':
require ROOT_PATH . 'includes/links/join.php';
break;
case 'out':
require ROOT_PATH . 'includes/links/out.php';
break;
break;
case 'in':
require ROOT_PATH . 'includes/links/in.php';
break;
default:
require ROOT_PATH . 'includes/links/link.php';
break;
}
?>