本帖最后由 googlg 于 2013-7-22 17:47 编辑
在 http://www.oicto.com/discuzx-portal-php/ 上看到的protal.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 $
*/
//====定义app类型id以及当前脚本名称常量====
define('APPTYPEID', 4);
define('CURSCRIPT', 'portal');
//====加载核心类库,函数库====
require './source/class/class_core.php';
require DISCUZ_ROOT.'./source/function/function_home.php';
require DISCUZ_ROOT.'./source/function/function_portal.php';
$discuz = C::app();
//====设置缓存列表====
$cachelist = array('userapp', 'portalcategory', 'diytemplatenameportal');
$discuz->cachelist = $cachelist;
//====初始化系统====
$discuz->init();
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();
//====判断$_GET['mod']是否为空或是否在允许数组中,如果为空或不存在则更改为index====
$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['portal']);
$_G['disabledwidthauto'] = 1;
//====加载source/module/portal/文件夹下的mod文件====
require_once libfile('portal/'.$_GET['mod'], 'module');
?>
不知道对不对,本人菜鸟,在想portal.php 在哪里调用的 template/default/portal/index.htm文件的啊????
|