function __construct($login_verify = true, $userTyp = 'a')
 {
     parent::__construct();
     date_default_timezone_set("Asia/Shanghai");
     P_Controller::Register();
     $this->is_login = false;
     // $this->db = $this->cimongo;
     if (DB_TYPE == "MONGO") {
         $this->db = $this->cimongo;
     } else {
     }
     $this->force_lightbox = false;
     $this->load->helper('url');
     $this->controller_name = $this->uri->segment(1) === false || $this->uri->segment(1) == "" ? 'index' : $this->uri->segment(1);
     $this->system_name = substr($this->controller_name, 0, 1);
     $this->method_name = $this->uri->segment(2) === false || $this->uri->segment(2) == "" ? 'index' : $this->uri->segment(2);
     if ($this->method_name == 'info') {
         $this->method_name = 'index';
     }
     $this->searchInfo = array('t' => 'no');
     $this->userTyp = $userTyp;
     $this->realLogin = $this->login;
     if ($login_verify) {
         $this->login_verify(true);
         $this->canEdit = $this->checkEditRule();
     } else {
         $this->login_verify(false);
     }
     $this->title = array($this->config->item('base_title'));
     $this->perPage = 10;
     $this->cur_page = 1;
 }
Beispiel #2
0
 function __construct()
 {
     parent::__construct(true, 'a');
     $this->relates = array();
     $this->is_lightbox = true;
     $this->plusId = '';
 }
Beispiel #3
0
 /**
  * 构造函数
  * @access  public
  * @return  void
  */
 public function __construct()
 {
     parent::__construct();
     if (!$this->session->this_user) {
         redirect(site_url('sign/signin'));
     }
 }
Beispiel #4
0
 /**
  * 构造函数
  * @access  public
  * @return  void
  */
 public function __construct()
 {
     parent::__construct();
     $captcha_cfg['useImgBg'] = TRUE;
     $captcha_cfg['useNoise'] = FALSE;
     $captcha_cfg['useCurve'] = FALSE;
     $captcha_cfg['useZh'] = FALSE;
     $captcha_cfg['fontSize'] = 16;
     $captcha_cfg['length'] = 4;
     $captcha_cfg['imageL'] = 120;
     $this->load->library('captcha', $captcha_cfg);
     $this->load->model('mdl_member');
 }
 function __construct()
 {
     parent::__construct();
     date_default_timezone_set("Asia/Shanghai");
     P_Controller::Register();
     $this->db = $this->cimongo;
     $this->load->helper('url');
     $this->controller_name = $this->uri->segment(1) === false || $this->uri->segment(1) == "" ? 'index' : $this->uri->segment(1);
     $this->method_name = $this->uri->segment(2) === false || $this->uri->segment(2) == "" ? 'index' : $this->uri->segment(2);
     if ($this->method_name == 'info') {
         $this->method_name = 'index';
     }
     $this->searchInfo = array('t' => 'no');
     $this->title = array($this->config->item('base_title'));
     $this->perPage = 10;
     $this->cur_page = 1;
     if ($this->login->is_login()) {
         $this->logined = true;
     }
 }
Beispiel #6
0
 function __construct()
 {
     parent::__construct(true, 'a');
     $this->load->library('pagination');
 }
Beispiel #7
0
 /**
  * 构造函数
  *
  * @access  public
  * @return  void
  */
 public function __construct()
 {
     parent::__construct();
     $this->this_view_data['_js'][] = 'slider';
 }
Beispiel #8
0
 /**
  * 构造函数
  * @access  public
  * @return  void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Mdl_member');
 }
Beispiel #9
0
 function __construct()
 {
     parent::__construct(true, 'a');
     $this->relates = array();
 }