1 Star 0 Fork 10

sosforever/Discuz

forked from Rocky-ZHAO/Discuz 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tool.php 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rocky-ZHAO 提交于 2017-02-11 19:37 . Signed-off-by: zcy 361689540@qq.com
<?php
//定义常量
define('APPTYPEID', 10);
define('CURSCRIPT', 'tool');
//引入核心类库,并且初始化
require './source/class/class_core.php';
$discuz = C::app();
$discuz->init();
//引入第三方类库
require DISCUZ_ROOT . './source/class/upload/class_upload.php';
//逻辑分发处理
if(empty($_GET['mod']) || !in_array($_GET['mod'], array('index'))) $_GET['mod'] = 'index';
define('CURMODULE', $_GET['mod']);
//设置全局变量
$_G['disabledwidthauto'] = 1;
//根据Mod参数分发到对应模块
require_once libfile('tool/'.$_GET['mod'], 'module');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/luckyforever/Discuz.git
git@gitee.com:luckyforever/Discuz.git
luckyforever
Discuz
Discuz
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385