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(); } }
* $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';
/** * [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');