Пример #1
0
 function __construct()
 {
     parent::__construct();
     $this->lang->load('board', 'korean');
     $this->load->helper(array('alert', 'common'));
     $this->load->model('board_m');
     $this->load->library('tank_auth');
     $this->lang->load('tank_auth');
     is_admin_login(3);
     $perm = explode("|", '0|0|3|3');
     $this->list_perm = $perm[0];
     $this->view_perm = $perm[1];
     $this->comment_perm = $perm[2];
     $this->write_perm = $perm[3];
     if ($this->uri->segment(2) == 'notice') {
         $title = '공지사항';
         $num = 2;
     }
     define('MENU_BOARD_NAME', $title);
     define('MENU_ID', $num);
     define('MENU_CATEGORY_WORD', '');
     $this->output->enable_profiler(false);
     $this->seg_exp = segment_explode($this->uri->uri_string());
     //var_dump($this->seg_exp);
     $this->load->helper('ckeditor');
     //Ckeditor's configuration
     $this->data['ckeditor'] = array('id' => 'contents', 'path' => 'include/ckeditor', 'config' => array('toolbar' => "Full", 'width' => "550px", 'height' => '100px'), 'styles' => array('style 1' => array('name' => 'Blue Title', 'element' => 'h2', 'styles' => array('color' => 'Blue', 'font-weight' => 'bold')), 'style 2' => array('name' => 'Red Title', 'element' => 'h2', 'styles' => array('color' => 'Red', 'font-weight' => 'bold', 'text-decoration' => 'underline'))));
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('admin/client_m');
     $this->load->helper('alert');
     $this->load->helper('common');
     $this->seg_exp = segment_explode($this->uri->uri_string());
     $this->output->enable_profiler(false);
     is_admin_login('9', $this->uri->segment(2));
 }