Ejemplo n.º 1
0
 function XwbconnectApp()
 {
     parent::__construct();
     $this->_bink_mod =& m('member_bind');
     $this->_app = 'xwb';
     $this->xwb_config = $this->_hook('on_xwb_login');
 }
Ejemplo n.º 2
0
 function AlipayconnectApp()
 {
     parent::__construct();
     $this->_bink_mod =& m('member_bind');
     $this->_app = 'alipay';
     $this->alipay_config = $this->_hook('on_alipay_login');
 }
Ejemplo n.º 3
0
 function ArticleApp()
 {
     parent::__construct();
     $this->_article_mod =& m('article');
     $this->_acategory_mod =& m('acategory');
     $this->assign("m", "story");
 }
Ejemplo n.º 4
0
 function ArticleApp()
 {
     parent::__construct();
     $this->_article_mod =& m('article');
     $this->_acategory_mod =& m('acategory');
     /* 获得系统分类cate_id数据 */
     $this->_ACC = $this->_acategory_mod->get_ACC();
 }
Ejemplo n.º 5
0
 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));
 }
Ejemplo n.º 6
0
 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');
 }
Ejemplo n.º 7
0
 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();
 }
Ejemplo n.º 8
0
 function Find_passwordApp()
 {
     parent::FrontendApp();
     $this->_password_mod =& m("member");
 }
Ejemplo n.º 9
0
 function SearchApp()
 {
     parent::__construct();
     $this->_gcategory_mod =& bm('gcategory');
     $this->_goods_mod =& m('goods');
 }
Ejemplo n.º 10
0
 function WeixinApp()
 {
     parent::__construct();
     $this->my_wxkeyword_mod =& m('wxkeyword');
     $this->my_wxconfig_mod =& m('wxconfig');
 }
Ejemplo n.º 11
0
 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();
 }
Ejemplo n.º 12
0
 function ChannelApp()
 {
     parent::__construct();
     $this->_channel_mod =& af('channels');
     $this->_gcategory_mod =& bm('gcategory', array('_store_id' => 0));
 }