/** * pagefactory * * @access public * @return void */ function shopPage() { parent::pageFactory(); $this->setError(); $this->header .= "<meta name=\"generator\" content=\"ShopEx " . $this->system->_app_version . "\" />\n"; /* $theme_id=$this->system->getConf('system.ui.current_theme'); $this->header.="<meta name=\"TemplateID\" content=\"".$theme_id."\">"; $o_theme=$this->system->loadModel('system/template'); $them_info=$o_theme->getThemeInfo($theme_id); $this->header.="<meta name=\"TemplateName\" content=\"".$them_info['name']."\">"; */ if (constant('WITHOUT_STRIP_HTML')) { $this->enable_strip_whitespace = false; } $this->system->controller =& $this; if (!$this->system->_base_link) { if (!$this->system->getConf('system.seo.emuStatic') || $this->system->getConf('system.seo.emuStatic') == 'false') { $this->system->_base_link .= APP_ROOT_PHP . '?'; } } //review 读setting表 $this->_env_vars = array('base_url' => $this->system->_base_link); }
function admin_ctl_taobao_goods() { parent::pageFactory(); $this->system =& $GLOBALS['system']; $this->db =& $this->system->database(); $appmgr = $this->system->loadModel('system/appmgr'); $tb_api =& $appmgr->load('taobao_goods'); $this->tb =& $tb_api; require 'mdl.taobao.php'; $this->model = new mdl_taobao(); }
/** * pagefactory * * @access public * @return void */ function adminPage() { parent::pageFactory(); if (defined('CUSTOM_CORE_DIR') && substr(get_class($this), 0, 4) == 'cct_') { $this->template_dir = CUSTOM_CORE_DIR . '/admin/view/'; } else { $this->template_dir = CORE_DIR . '/admin/view/'; } $this->system =& $GLOBALS['system']; $this->pagedata = array(); if (DEBUG_TEMPLETE) { $o =& $this->system->loadModel('system/template'); $theme = $this->system->getConf('system.ui.current_theme'); $o->resetTheme($theme); } if (!$this->system->_base_link) { $this->system->_base_link = $base_url; if (!$this->system->getConf('system.seo.emuStatic') || $this->system->getConf('system.seo.emuStatic') == 'false') { $this->system->_base_link .= APP_ROOT_PHP . '?'; } } $this->_env_vars = array('base_url' => $this->system->_base_link); if ($_GET['_ajax']) { if (!defined('IN_AJAX')) { define('IN_AJAX', true); ob_start(); } } else { define('IN_AJAX', false); } if ($_GET['ctl'] != 'passport') { $lg_key = $_GET['ctl'] == 'system/comeback' ? $_COOKIE['SHOPEX_LG_KEY'] : $_SESSION['SHOPEX_LG_KEY']; if (false === $this->system->op_id || $this->system->op_is_disabled || $lg_key != MD5(remote_addr() . $this->system->op_id)) { $this->notAuth(); } else { if (!$this->system->op_is_super) { $oOpt =& $this->system->loadModel('admin/operator', 'config'); if (!$oOpt->check_role($this->system->op_id, $this->workground)) { $this->system->responseCode(403); exit; } } } } // 是否拥有分销权限 2009-11-20 13:48 wubin $this->pagedata['distribute'] = $this->system->getConf('certificate.distribute'); }
function commodity_radar_default_modifiers() { parent::pageFactory(); $this->system =& $GLOBALS['system']; }
function taobao_goods_product_listener() { parent::pageFactory(); $this->system =& $GLOBALS['system']; $this->db =& $this->system->database(); }
function shopex_stat_modifiers() { parent::pageFactory(); $this->system =& $GLOBALS['system']; }