コード例 #1
0
ファイル: galleries.php プロジェクト: jacksun101/PyroAddons
 public function __construct()
 {
     parent::__construct();
     //Load lang
     $this->lang->load('galleries/galleries');
     $this->load->model('galleries/galleries_m');
 }
コード例 #2
0
ファイル: home.php プロジェクト: nockout/tshpro
 /**
  * Every time this controller is called should:
  */
 public function __construct()
 {
     parent::__construct();
     $this->lang->load("home");
     $this->config->load("tdesign");
     $this->load->helper(array("currency", "tdesign"));
 }
コード例 #3
0
ファイル: Auth.php プロジェクト: kidino/kidinoci
 function __construct()
 {
     parent::__construct();
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
     //$this->load->library('security');
 }
コード例 #4
0
ファイル: show.php プロジェクト: jacksun101/PyroAddons
 public function __construct()
 {
     parent::__construct();
     $this->config->load('files/files');
     $this->load->library('files/files');
     $this->_path = FCPATH . rtrim($this->config->item('files:path'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
 }
コード例 #5
0
ファイル: stats.php プロジェクト: TrinataBhayanaka/damkar
 function __construct()
 {
     parent::__construct();
     $this->folder = "";
     $this->module = $this->folder;
     $this->page_active = "stats";
     $this->http_ref = base_url() . $this->module;
     $this->load->model("general_model");
     $this->model = new general_model("wa_data");
     $this->model_view = new general_model("v_wa_data");
     $this->model_contact = new general_model("wa_contact");
     $this->model_hukum_adat = new general_model("wa_hukum_adat");
     $this->model_hayati = new general_model("wa_hayati");
     $this->model_hak_atas_tanah = new general_model("wa_hak_atas_tanah");
     $this->model_sejarah = new general_model("wa_sejarah");
     $this->model_lembaga_adat = new general_model("wa_lembaga_adat");
     $this->model_potensi_hayati = new general_model("wa_potensi_hayati");
     //$this->load->model('ion_auth_model')
     $this->load->libraries(array('ion_auth', 'form_validation', 'utils'));
     $this->load->helpers(array('form', 'url', 'lookup', 'language'));
     $this->lang->load('auth');
     $this->user = (array) $this->ion_auth->user()->row();
     $this->tbl_idx = "idx";
     $this->admin_layout = "layout/main_layout";
 }
コード例 #6
0
ファイル: profile.php プロジェクト: Tapha/pyrocms
 /**
  * Constructor method
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     // Call the parent's constructor method
     parent::Public_Controller();
     // Load the required classes
     $this->load->model('users_m');
     $this->load->model('profile_m');
     $this->load->helper('user');
     $this->load->helper('date');
     $this->lang->load('user');
     $this->lang->load('profile');
     $this->load->library('form_validation');
     // Validation rules - git is really pissing me off right now
     $this->validation_rules = array(array('field' => 'display_name', 'label' => lang('profile_display'), 'rules' => 'required|trim|alphanumeric'), array('field' => 'gender', 'label' => lang('profile_gender'), 'rules' => 'trim|max_length[1]'), array('field' => 'dob_day', 'label' => lang('profile_dob_day'), 'rules' => 'trim|numeric|required'), array('field' => 'dob_month', 'label' => lang('profile_dob_month'), 'rules' => 'trim|numeric|required'), array('field' => 'dob_year', 'label' => lang('profile_dob_year'), 'rules' => 'trim|numeric|required'), array('field' => 'bio', 'label' => lang('profile_bio'), 'rules' => 'trim|max_length[1000]'), array('field' => 'phone', 'label' => lang('profile_phone'), 'rules' => 'trim|alpha_numeric|max_length[20]'), array('field' => 'mobile', 'label' => lang('profile_mobile'), 'rules' => 'trim|alpha_numeric|max_length[20]'), array('field' => 'address_line1', 'label' => lang('profile_address_line1'), 'rules' => 'trim'), array('field' => 'address_line2', 'label' => lang('profile_address_line2'), 'rules' => 'trim'), array('field' => 'address_line3', 'label' => lang('profile_address_line3'), 'rules' => 'trim'), array('field' => 'postcode', 'label' => lang('profile_postcode'), 'rules' => 'trim|max_length[20]'), array('field' => 'msn_handle', 'label' => lang('profile_msn_handle'), 'rules' => 'trim|valid_email'), array('field' => 'aim_handle', 'label' => lang('profile_aim_handle'), 'rules' => 'trim|alpha_numeric'), array('field' => 'yim_handle', 'label' => lang('profile_yim_handle'), 'rules' => 'trim|alpha_numeric'), array('field' => 'gtalk_handle', 'label' => lang('profile_gtalk_handle'), 'rules' => 'trim|valid_email'), array('field' => 'gravatar', 'label' => lang('profile_gravatar'), 'rules' => 'trim|valid_email'));
     // Set the validation rules
     $this->form_validation->set_rules($this->validation_rules);
     // If profiles are not enabled, pretend they don't exist
     if (!$this->settings->item('enable_profiles')) {
         show_404();
     }
     // Get the user ID, if it exists
     if ($user = $this->ion_auth->get_user()) {
         $this->user_id = $user->id;
     }
     // The user is not logged in, send them to login page
     if (!$this->ion_auth->logged_in()) {
         redirect('users/login');
     }
 }
コード例 #7
0
ファイル: Posts.php プロジェクト: csiber/ci-blog
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Post');
     $this->load->model('Category');
     $this->load->model('Tag');
 }
コード例 #8
0
ファイル: nurseries.php プロジェクト: unisexx/thaigcd2015
 function __construct()
 {
     if (login_data('nursery') == "") {
         redirect('home');
     }
     parent::__construct();
 }
コード例 #9
0
 /**
  * The constructor
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->data = new stdClass();
     $this->lang->load('testimonials');
     $this->load->driver('Streams');
 }
コード例 #10
0
ファイル: main.php プロジェクト: ndokceplok/Huntdrop
 function __construct()
 {
     parent::__construct();
     $this->load->model(array('m_profiles', 'm_posts', 'm_projects', 'm_blogs', 'm_reviews', 'm_videos', 'm_accounts', 'm_comments', 'm_threads', 'm_banners', 'm_stats'));
     $this->load->helper(array('pretty_date'));
     $this->load->vars(array('active' => 'home'));
 }
コード例 #11
0
ファイル: comments.php プロジェクト: netfreak/pyrocms
 function __construct()
 {
     parent::Public_Controller();
     $this->load->library('validation');
     $this->load->model('comments_m');
     $this->lang->load('comments');
 }
コード例 #12
0
ファイル: checkout.php プロジェクト: rat4m3n/PyroCart
 /**
  * Constructor method
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::Public_Controller();
     $this->config->load('paypal_constants');
     $this->load->model('orders_m');
     $this->load->model('checkout_m');
 }
コード例 #13
0
ファイル: checkout.php プロジェクト: nockout/tshpro
 function __construct()
 {
     parent::__construct();
     $this->load->library("go_cart");
     $this->load->helper('currency');
     $this->lang->load(array("cart"));
     $this->load->model(array("location_model"));
     /*make sure the cart isnt empty*/
     if ($this->go_cart->total_items() == 0) {
         redirect('home');
     }
     /*is the user required to be logged in?*/
     if (config_item('require_login')) {
         $this->Customer_model->is_logged_in('checkout');
     }
     if (!config_item('allow_os_purchase') && config_item('inventory_enabled')) {
         /*double check the inventory of each item before proceeding to checkout*/
         $inventory_check = $this->go_cart->check_inventory();
         if ($inventory_check) {
             /*
             OOPS we have an error. someone else has gotten the scoop on our customer and bought products out from under them!
             we need to redirect them to the view cart page and let them know that the inventory is no longer there.
             */
             $this->session->set_flashdata('error', $inventory_check);
             redirect('cart/view_cart');
         }
     }
     header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
     header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
     header("Cache-Control: no-store, no-cache, must-revalidate");
     header("Cache-Control: post-check=0, pre-check=0", false);
     header("Pragma: no-cache");
     $this->load->library('form_validation');
 }
コード例 #14
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('facebook');
     $this->load->library('gr_auth', IMS_DB_PREFIX . 'customer');
     $this->load->model(['user_home_model', 'event_public/event_public_model', 'rating/rating_model']);
 }
コード例 #15
0
 function __construct()
 {
     parent::Public_Controller();
     if (!$this->data->user === FALSE) {
         header('Location: ' . $this->config->item('base_url') . 'admin');
     }
 }
コード例 #16
0
ファイル: reader.php プロジェクト: Nakei/FoOlSlide
	function __construct() {
		parent::__construct();
		$this->load->library('pagination');
		$this->load->library('template');
		$this->load->helper('reader');
		$this->template->set_layout('reader');
	}
コード例 #17
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('newsletters_m');
     $this->load->model('subscribers_m');
     $this->lang->load('newsletter');
 }
コード例 #18
0
ファイル: home.php プロジェクト: soarmorrow/booking-demo
 public function __construct()
 {
     parent::__construct();
     $this->load->model('home_model');
     $this->load->library('pagination');
     $this->load->library('facebook');
 }
コード例 #19
0
ファイル: api.php プロジェクト: 32x32/spaghescript
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Gallery_model');
     $this->load->helper(['url', 'html', 'form']);
     $this->load->library(['form_validation', 'session']);
 }
コード例 #20
0
ファイル: portfolio.php プロジェクト: numerogeek/PyroFolio
 public function __construct()
 {
     parent::__construct();
     $this->lang->load('portfolio');
     $this->load->model('portfolio/portfolio_m');
     $this->template->append_css('module::portfolio.css')->append_js('module::jquery.quicksand.js')->append_js('module::portfolio.js');
 }
コード例 #21
0
ファイル: shop.php プロジェクト: JamieLomas/pyrocms-shop
    public function  __construct()
    {
        parent::__construct();
        
        $this->load->model('shop_cat_m');
        $this->load->model('shop_items_m');
        $this->load->model('cart_m');
        $this->load->model('galleries/galleries_m');
        $this->load->model('galleries/gallery_images_m');
        $this->lang->load('shop'); 
        $this->load->library('cart');
        $this->load->library('form_validation');

        $this->cart_validation_rules = array(
            array(
                'field' => 'qty[]',
                'label' => 'lang:shop.qty_label',
                'rules' => 'trim|required|numeric'
            ),
            array(
                'field' => 'rowid[]',
                'label' => 'hidden',
                'rules' => 'required'
            )
        );

        $this->add_to_cart_rules = array(
            array(
                'field' => 'item_options[]',
                'label' => 'lang:shop.item_options_label',
                'rules' => 'trim'
            )
        );
    }
コード例 #22
0
ファイル: auth.php プロジェクト: hackjatra/twischedule
 /**
  * Constructor
  */
 function auth()
 {
     parent::Public_Controller();
     // Load the Auth_form_processing class
     $this->load->library('auth_form_processing');
     log_message('debug', 'BackendPro : Auth class loaded');
 }
コード例 #23
0
ファイル: files.php プロジェクト: JamieLomas/pyrocms
	public function __construct()
	{	
		parent::Public_Controller();
		
		$this->config->load('files');
		$this->_path = FCPATH . $this->config->item('files_folder') . DIRECTORY_SEPARATOR;
	}
コード例 #24
0
ファイル: rss.php プロジェクト: bema2004sw/pyrocms
 function __construct()
 {
     parent::Public_Controller();
     $this->load->model('news_m');
     $this->load->helper('xml');
     $this->load->helper('date');
 }
コード例 #25
0
ファイル: error.php プロジェクト: TrinataBhayanaka/damkar
 function __construct()
 {
     parent::__construct();
     $this->folder = "admin/";
     $this->module = $this->folder . "error/";
     $this->http_ref = base_url() . $this->module;
 }
コード例 #26
0
 function __construct()
 {
     parent::__construct();
     if (!$this->secure->get_user_session()->id) {
         redirect(site_url('/users/login'));
     }
 }
コード例 #27
0
ファイル: U.php プロジェクト: axlyody/daijoubucms
 function __construct()
 {
     parent::__construct();
     $this->load->library('ion_auth');
     $this->load->library('postal');
     $this->load->helper('url');
 }
コード例 #28
0
ファイル: contact.php プロジェクト: 8496tar/pyrocms
 function __construct()
 {
     parent::Public_Controller();
     $this->lang->load('contact');
     $this->subjects = array('support' => lang('subject_support'), 'sales' => lang('subject_sales'), 'payments' => lang('subject_payments'), 'business' => lang('subject_business'), 'feedback' => lang('subject_feedback'), 'other' => lang('subject_other'));
     $this->rules = array(array('field' => 'contact_name', 'label' => lang('contact_name_label'), 'rules' => 'required|trim|max_length[80]'), array('field' => 'contact_email', 'label' => lang('contact_email_label'), 'rules' => 'required|trim|valid_email|max_length[80]'), array('field' => 'company_name', 'label' => lang('contact_company_name_label'), 'rules' => 'trim|max_length[80]'), array('field' => 'subject', 'label' => lang('contact_subject_label'), 'rules' => 'required|trim'), array('field' => 'message', 'label' => lang('contact_message_label'), 'rules' => 'required'));
 }
コード例 #29
0
ファイル: users.php プロジェクト: netfreak/pyrocms
 function __construct()
 {
     parent::Public_Controller();
     $this->load->library('user_lib');
     $this->load->model('users_m');
     $this->load->helper('user');
     $this->lang->load('user');
 }
コード例 #30
0
ファイル: User.php プロジェクト: ufhy/ci3-fire-starter
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // load the users model
     $this->load->model('users_model');
     // load the users language file
     $this->lang->load('users');
 }