本帖最后由 bruceteh95 于 2018-6-23 11:01 编辑
我网络空间商是用cpanel的 这下面两张图是我的论坛的文件
然后 , 我的portal.php 的函数是
- <?php
- /**
- * [Discuz!] (C)2001-2099 Comsenz Inc.
- * This is NOT a freeware, use is subject to license terms
- *
- * $Id: portal.php 33234 2013-05-08 04:13:19Z andyzheng $
- */
- define('APPTYPEID', 4);
- define('CURSCRIPT', 'portal');
- require './source/class/class_core.php';
- $discuz = C::app();
- $cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal');
- $discuz->cachelist = $cachelist;
- $discuz->init();
- require DISCUZ_ROOT.'./source/function/function_home.php';
- require DISCUZ_ROOT.'./source/function/function_portal.php';
- if(empty($_GET['mod']) || !in_array($_GET['mod'], array('list', 'view', 'comment', 'portalcp', 'topic', 'attachment', 'rss', 'block'))) $_GET['mod'] = 'index';
- define('CURMODULE', $_GET['mod']);
- runhooks();
- $navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['portal']);
- $_G['disabledwidthauto'] = 1;
- require_once libfile('portal/'.$_GET['mod'], 'module');
- ?>
复制代码 然后 , 假如我把portal.php 设置去 0777 的话 ,就会变成这样
|