index.php
来自「Discuz! 论坛软件系统 UTF8」· PHP 代码 · 共 56 行
PHP
56 行
<?php
/*
[DISCUZ!] wap/index.php - WAP Version of Crossday Discuz! Board
This is NOT a freeware, use is subject to license terms
Version: 4.0.0
Web: http://www.comsenz.com
Copyright: 2001-2005 Comsenz Technology Ltd.
Last Modified: 2005-2-28 10:15
*/
define('CURSCRIPT', 'wap');
require_once '../include/common.inc.php';
require_once './include/global.func.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
$discuz_action = 191;
if($charset != 'utf-8') {
require_once './include/chinese.class.php';
}
$action = isset($action) ? $action : 'home';
if($action == 'goto' && !empty($url)) {
header("Location: $url");
} else {
wapheader($bbname);
}
include language('wap');
if(!$wapstatus) {
wapmsg('wap_disabled');
} elseif($bbclosed) {
wapmsg('board_closed');
}
if($_POST && $charset != 'utf-8') {
$chs = new Chinese('UTF8', $charset);
foreach($_POST as $key => $value) {
$$key = $chs->Convert($value);
}
unset($chs);
}
if(in_array($action, array('home', 'login', 'stats', 'myphone', 'goto', 'forum', 'thread', 'post', 'pm'))) {
require_once './include/'.$action.'.inc.php';
} else {
wapmsg('undefined_action');
}
wapfooter();
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?