Exemplo n.º 1
0
 public function __construct(&$app)
 {
     if (defined('WITHOUT_DESKTOP_RPCNOTIFY') && constant('WITHOUT_DESKTOP_RPCNOTIFY')) {
         die(app::get('desktop')->_('通知已被禁用'));
     }
     parent::__construct($app);
 }
Exemplo n.º 2
0
 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     //$cnt    = kernel::single('b2c_shop')->getShopBindStatus();
     $this->pagedata['cnt'] = $cnt;
 }
Exemplo n.º 3
0
 public function __construct($app)
 {
     parent::__construct($app);
     header('cache-control: no-store, no-cache, must-revalidate');
     $this->mPages = $this->app->model('pages');
     $this->_request = vmc::singleton('base_component_request');
 }
Exemplo n.º 4
0
 /**
  * 췽
  * @params object app object
  * @return null
  */
 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     $this->certi_id = base_certificate::certi_id();
     $this->token = base_certificate::token();
 }
Exemplo n.º 5
0
 function __construct($app)
 {
     parent::__construct($app);
     $this->ui = new base_component_ui($this);
     $this->app = $app;
     header("cache-control: no-store, no-cache, must-revalidate");
 }
Exemplo n.º 6
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->app = $app;
     //$this->mAd = $this->app->model('ad');
     $this->mSetting = $this->app->model('setting');
 }
Exemplo n.º 7
0
 function __construct($app)
 {
     parent::__construct($app);
     $this->_request = kernel::single('base_component_request');
     $this->_response = kernel::single('base_component_response');
     $this->_qrcode_model = $this->app->model('qrcode');
 }
Exemplo n.º 8
0
 function index($cpnsId = null)
 {
     if ($cpnsId) {
         parent::index(array('params' => array('cpns_id' => $cpnsId)));
     } else {
         parent::index();
     }
 }
Exemplo n.º 9
0
 public function __construct(&$app)
 {
     parent::__construct($app);
     if (!$this->user->is_super()) {
         header('Content-Type:text/html; charset=utf-8');
         echo '您无权操作';
         exit;
     }
 }
Exemplo n.º 10
0
 /**
  * 构造方法
  * @param object $app
  * @access public
  * @version 2 Jun 20, 2011 修改
  */
 public function __construct($app)
 {
     //调用父类构造方法
     parent::__construct($app);
     //初始化请求
     $this->_request = kernel::single('base_component_request');
     //初始化响应
     $this->_response = kernel::single('base_component_response');
 }
Exemplo n.º 11
0
 public function __construct($app)
 {
     parent::__construct($app);
     header('cache-control: no-store, no-cache, must-revalidate');
     $this->mPages = $this->app->model('pages');
     $this->mPosition = $this->app->model('pages_position');
     $this->mContent = $this->app->model('pages_content');
     $this->_request = vmc::singleton('base_component_request');
     $this->_filter = $this->_request->get_get('filter');
 }
Exemplo n.º 12
0
 function page($page = '')
 {
     $get_params = $_GET;
     unset($get_params['menu']);
     $this->pagedata['_QUERY_STRING'] = http_build_query($get_params);
     $this->pagedata['_PAGE_'] = $page;
     if (true) {
         $this->pagedata['_ACTIONS_'] = array('inbox' => '事务', 'account' => '账号', 'status' => '状态');
     }
     parent::display('flow/page.html');
 }
Exemplo n.º 13
0
 function __construct($app)
 {
     header("cache-control: no-store, no-cache, must-revalidate");
     kernel::single('base_session')->start();
     $o = kernel::single("desktop_user");
     $o->user_data['status'] = true;
     if (!$o->get_id()) {
         exit('error');
     }
     parent::__construct($app);
 }
Exemplo n.º 14
0
 public function __construct(&$app)
 {
     if (defined('WITHOUT_DESKTOP_APPMGR') && constant('WITHOUT_DESKTOP_APPMGR')) {
         die(app::get('desktop')->_('APP管理已被禁用'));
     }
     parent::__construct($app);
     if (!$this->user->is_super()) {
         header('Content-Type:text/html; charset=utf-8');
         echo "您无权操作";
         exit;
     }
 }
Exemplo n.º 15
0
 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     define('DPGB_TMP_MODE', 1);
     define('DPGB_HOME_MODE', 2);
     $this->pagedata['dpi'] = intval(app::get('b2c')->getConf('system.clientdpi'));
     if (!$this->pagedata['dpi']) {
         $this->pagedata['dpi'] = 96;
     }
     $this->model = $this->app->model('print_tmpl');
     $this->o =& app::get('image')->model('image_attach');
     $this->obj = $this;
 }
Exemplo n.º 16
0
 function __construct($app)
 {
     parent::__construct($app);
     $this->_response = kernel::single('base_component_response');
     $this->themesdir = array('wap' => WAP_THEME_DIR, 'pc' => THEME_DIR);
     //判断操作的模板是pc还是wap
     if (input::get('platform') == 'wap') {
         $this->platform = 'wap';
         $this->themes_dir = THEME_DIR;
     } else {
         $this->platform = 'pc';
         $this->themes_dir = WAP_THEME_DIR;
     }
 }
Exemplo n.º 17
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->obj_roles = kernel::single('desktop_roles');
     header("cache-control: no-store, no-cache, must-revalidate");
 }
Exemplo n.º 18
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->app = app::get('sysconf');
     //$app;
 }
Exemplo n.º 19
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->obj_roles = vmc::singleton('desktop_roles');
 }
Exemplo n.º 20
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->member_model = $this->app->model('members');
     header("cache-control: no-store, no-cache, must-revalidate");
 }
Exemplo n.º 21
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->app = $app;
 }
Exemplo n.º 22
0
 function __construct(&$app)
 {
     $this->app = $app;
     parent::__construct($app);
 }
Exemplo n.º 23
0
 public function __construct($app)
 {
     parent::__construct($app);
 }
Exemplo n.º 24
0
 function __construct($app)
 {
     parent::__construct($app);
     $this->pamUserModel = app::get('sysuser')->model('account');
     $this->sysUserModel = app::get('sysuser')->model('user');
 }
Exemplo n.º 25
0
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->app = app::get('ectools');
 }
Exemplo n.º 26
0
 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     $this->arr_status = array('1' => app::get('aftersales')->_('申请中'), '2' => app::get('aftersales')->_('审核中'), '3' => app::get('aftersales')->_('接受申请'), '4' => app::get('aftersales')->_('完成'), '5' => app::get('aftersales')->_('拒绝'));
 }
Exemplo n.º 27
0
 function __construct(&$app)
 {
     parent::__construct($app);
     $this->_request = kernel::single('base_component_request');
 }
Exemplo n.º 28
0
 function __construct($app)
 {
     parent::__construct($app);
     $this->messageImageModel = app::get('weixin')->model('message_image');
 }
Exemplo n.º 29
0
 function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     $this->app = $app;
 }
Exemplo n.º 30
0
 public function __construct($app)
 {
     parent::__construct($app);
     header('cache-control: no-store, no-cache, must-revalidate');
 }