本文整理汇总了PHP中runhooks函数的典型用法代码示例。如果您正苦于以下问题:PHP runhooks函数的具体用法?PHP runhooks怎么用?PHP runhooks使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了runhooks函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MasterObject
function MasterObject(&$config, $auto_run = false)
{
global $_J;
$this->Config = $config;
$this->Get =& $_GET;
$this->Post =& $_POST;
$this->Module = get_param('mod');
$this->Code = get_param('code');
$this->DatabaseHandler =& Obj::registry('DatabaseHandler');
if (!jget('uninitmember')) {
$this->initMemberHandler();
}
if ($this->Config['seccode_enable'] > 1 && $this->Config['seccode_pub_key'] && $this->Config['seccode_pri_key']) {
$this->yxm_html = jlogic('seccode')->GetYXM();
$this->yxm_title = jlogic('seccode')->TitleYXM();
}
if (!isset($_J['plugins'])) {
jlogic('plugin')->loadplugincache();
}
runhooks('global');
if ($this->auto_run || $auto_run) {
$this->auto_run();
}
}
示例2: define
* $Id: group.php 31307 2012-08-10 02:10:56Z zhengqingpeng $
* Modified by Valery Votintsev, codersclub.org
*/
define('APPTYPEID', 3);
define('CURSCRIPT', 'group');
require './source/class/class_core.php';
$discuz = C::app();
$cachelist = array('grouptype', 'groupindex', 'diytemplatenamegroup');
$discuz->cachelist = $cachelist;
$discuz->init();
/*vot*/ settings_localize(); // Localize Navigation & Settings
$_G['disabledwidthauto'] = 0;
$modarray = array('index', 'my', 'attentiongroup');
$mod = !in_array($_G['mod'], $modarray) ? 'index' : $_G['mod'];
define('CURMODULE', $mod);
runhooks();
$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['group']);
require DISCUZ_ROOT.'./source/module/group/group_'.$mod.'.php';
示例3: define
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: home.php 32932 2013-03-25 06:53:01Z zhangguosheng $
*/
define('APPTYPEID', 1);
define('CURSCRIPT', 'home');
if (!empty($_GET['mod']) && ($_GET['mod'] == 'misc' || $_GET['mod'] == 'invite')) {
define('ALLOWGUEST', 1);
}
require_once './source/class/class_core.php';
require_once './source/function/function_home.php';
$discuz = C::app();
$cachelist = array('magic', 'userapp', 'usergroups', 'diytemplatenamehome');
$discuz->cachelist = $cachelist;
$discuz->init();
$space = array();
$mod = getgpc('mod');
if (!in_array($mod, array('space', 'spacecp', 'misc', 'magic', 'editor', 'invite', 'task', 'medal', 'rss', 'follow'))) {
$mod = 'space';
$_GET['do'] = 'home';
}
if ($mod == 'space' && ((empty($_GET['do']) || $_GET['do'] == 'index') && $_G['inajax'])) {
$_GET['do'] = 'profile';
}
$curmod = !empty($_G['setting']['followstatus']) && (empty($_GET['diy']) && empty($_GET['do']) && $mod == 'space' || $_GET['do'] == 'follow') ? 'follow' : $mod;
define('CURMODULE', $curmod);
runhooks($_GET['do'] == 'profile' && $_G['inajax'] ? 'card' : $_GET['do']);
require_once libfile('home/' . $mod, 'module');