function XwbconnectApp() { parent::__construct(); $this->_bink_mod =& m('member_bind'); $this->_app = 'xwb'; $this->xwb_config = $this->_hook('on_xwb_login'); }
function AlipayconnectApp() { parent::__construct(); $this->_bink_mod =& m('member_bind'); $this->_app = 'alipay'; $this->alipay_config = $this->_hook('on_alipay_login'); }
function ArticleApp() { parent::__construct(); $this->_article_mod =& m('article'); $this->_acategory_mod =& m('acategory'); $this->assign("m", "story"); }
function ArticleApp() { parent::__construct(); $this->_article_mod =& m('article'); $this->_acategory_mod =& m('acategory'); /* 获得系统分类cate_id数据 */ $this->_ACC = $this->_acategory_mod->get_ACC(); }
function GselectorApp() { parent::__construct(); $this->_is_dialog = isset($_GET['dialog']); $this->_store_id = empty($_GET['store_id']) ? 0 : intval($_GET['store_id']); $this->_title = empty($_GET['title']) ? 'gselector' : trim($_GET['title']); $this->_store_mod =& m('store'); $this->assign('title', Lang::get($this->_title)); }
function LogistApp() { parent::__construct(); $this->_store_mod =& m('store'); $this->_region_mod =& m('region'); $this->_delivery_mod =& m('delivery_template'); $this->_goods_mod =& m('goods'); $this->_address_mod =& m('address'); }
function _run_action() { /* 只有登录的用户才可访问 */ if (!$this->visitor->has_login && !in_array(ACT, array('login', 'register', 'check_user'))) { if (!IS_AJAX) { header('Location:index.php?app=member&act=login&ret_url=' . rawurlencode($_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'])); return; } else { $this->json_error('login_please'); return; } } parent::_run_action(); }
function Find_passwordApp() { parent::FrontendApp(); $this->_password_mod =& m("member"); }
function SearchApp() { parent::__construct(); $this->_gcategory_mod =& bm('gcategory'); $this->_goods_mod =& m('goods'); }
function WeixinApp() { parent::__construct(); $this->my_wxkeyword_mod =& m('wxkeyword'); $this->my_wxconfig_mod =& m('wxconfig'); }
function _run_action() { /* 只有登录的用户才可访问 */ if (!$this->visitor->has_login && !in_array(ACT, array('login', 'register', 'check_user', 'check_phone_mob', 'check_email_info'))) { if (!IS_AJAX) { header('Location:index.php?app=member&act=login&ret_url=' . rawurlencode($_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'])); return; } else { $this->json_error('login_please'); return; } } /* 如果是店小二登录,则不允许访问权限列表中的黑名单(如:我是买家菜单) */ if ($this->visitor->get('waiter_id') && $this->_in_waiter_black_privileges()) { $this->show_warning('no_permission'); return; } parent::_run_action(); }
function ChannelApp() { parent::__construct(); $this->_channel_mod =& af('channels'); $this->_gcategory_mod =& bm('gcategory', array('_store_id' => 0)); }