コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     // if ( !AT_Common::is_user_logged() && $this->uri->segments( 1 ) != 'upload' ) {
     // 	AT_Common::redirect('/');
     // }
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
     if ($this->core->get_option('site_type', 'mode_soletrader') != 'mode_partnership' && $this->uri->segments(1) != 'unlogged') {
         AT_Core::show_404();
     }
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
     if (!AT_Common::is_user_logged()) {
         AT_Common::redirect('/');
     }
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $site_type = $this->core->get_option('site_type', 'mode_soletrader');
     if (!in_array($site_type, array('mode_partnership', 'mode_board')) && $this->uri->segments(1) != 'unlogged') {
         AT_Core::show_404();
     }
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
     if (!AT_Common::is_user_logged() && $this->uri->segments(1) != 'upload') {
         AT_Common::redirect('/');
     }
     $user_model = $this->load->model('user_model');
     $user_info = $user_model->get_user_by_id(AT_Common::get_logged_user_id());
     if ($user_info['is_dealer']) {
         $this->_publish_limit = $this->core->get_option('car_limit_publish_dealer', 50);
     } else {
         $this->_publish_limit = $this->core->get_option('car_limit_publish', 10);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->validation();
     $this->method = 'SetExpressCheckout';
     $this->nvp = '';
     $this->username = $this->core->get_option('paypal_username');
     //'mm-facilitator_api1.winterjuice.com';
     $this->password = $this->core->get_option('paypal_password');
     $this->signature = $this->core->get_option('paypal_signature');
     $this->mode = $this->core->get_option('paypal_mode');
     $this->version = $this->core->get_option('paypal_version');
     $this->lang = strtoupper(substr(get_bloginfo('language'), 0, 2));
     //GB or EN
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
 }