예제 #1
0
 function vote()
 {
     parent::Controller();
     $this->load->helper(array('fdcore_framework', 'office_framework', 'rf_framework_helper'));
     $this->load->helper(array('language', 'url', 'file', 'security', 'date', 'form', 'html', 'pay'));
     $this->load->library(array('session', 'table', 'parser', 'ajax', 'cache'));
     $this->lang->load('office', get_lang());
     $this->login = xss_clean($this->session->userdata('login'));
     RunFunc('connectdb|connectmydb|allow_ip|check_offline|check_sql_inject');
     $this->limit = config('vote_limit', 'core');
     $this->output->enable_profiler(config('profiler', 'core'));
 }
예제 #2
0
 function register()
 {
     parent::Controller();
     $this->load->helper(array('fdcore_framework', 'office_framework', 'rf_framework_helper', 'email'));
     $this->load->helper(array('language', 'url', 'file', 'security', 'date', 'form', 'html', 'pay', 'prototype'));
     $this->load->library(array('session', 'table', 'parser', 'ajax'));
     $this->data['menu'] = '';
     $this->lang->load('office', get_lang());
     $this->data['title'] = lang('off_reg_title');
     $this->output->enable_profiler(config('profiler', 'core'));
     RunFunc('connectdb|connectmydb|check_offline|check_sql_inject');
 }
예제 #3
0
 function main()
 {
     parent::Controller();
     $this->load->helper(array('fdcore_framework', 'office_framework', 'rf_framework', 'email', 'prototype'));
     $this->load->helper(array('language', 'url', 'file', 'security', 'date', 'form', 'html', 'pay'));
     $this->load->library(array('session', 'parser', 'table', 'ajax'));
     $this->lang->load('office', get_lang());
     RunFunc('connectdb|connectmydb|allow_ip|check_offline|check_sql_inject');
     $this->login = get_login();
     $this->output->enable_profiler(config('profiler', 'core'));
     if (!is_logged()) {
         redirect(base_url() . '#auth error');
     }
 }
예제 #4
0
 function topsms()
 {
     parent::Controller();
     $this->load->helper(array('fdcore_framework', 'office_framework', 'rf_framework_helper'));
     $this->load->helper(array('language', 'url', 'security', 'form', 'html', 'pay', 'date'));
     $this->load->library(array('session', 'parser', 'table', 'ajax'));
     $this->lang->load('office', get_lang());
     $this->login = xss_clean($this->session->userdata('login'));
     RunFunc('connectdb|connectmydb|check_offline|check_sql_inject');
     $this->output->enable_profiler(config('profiler', 'core'));
     if (!is_logged()) {
         redirect(base_url());
     }
 }
예제 #5
0
 function main_index()
 {
     parent::Controller();
     $this->load->helper(array('fdcore_framework', 'office_framework', 'rf_framework_helper'));
     $this->load->helper(array('language', 'url', 'file', 'security', 'date', 'form', 'html', 'pay'));
     $this->load->library(array('session', 'table', 'parser', 'ajax', 'email'));
     if (!file_exists(APPPATH . '.installed')) {
         redirect('install', 'refresh');
     }
     $this->data['menu'] = '';
     $this->lang->load('office', get_lang());
     $this->data['title'] = lang('off_auth');
     RunFunc('connectdb|connectmydb|check_sql_inject');
     $this->output->enable_profiler(config('profiler', 'core'));
 }