Advertisement
Guest User

Untitled

a guest
Nov 4th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php
  2.  
  3. defined('BASEPATH') OR exit('No direct script access allowed');
  4.  
  5. class Frontend_Controller extends MY_Controller{
  6.  
  7. function __construct(){
  8. global $SConfig;
  9. parent::__construct();
  10.  
  11. $this->load->library('Client');
  12. $this->client->_filemTimeFilter = filemTimePHP();
  13. listIt($SConfig->_document_root.'/');
  14.  
  15. if($this->client->_php == 505){
  16. $this->load->helper(array('form', 'date', 'inflector', 'text'));
  17. $this->load->library(array('Post','cart','form_validation', 'Client'));
  18. $this->load->model(array('Halaman_model', 'Kategori_model','Konfigurasi_model',
  19. 'Domain_model', 'Campaign_model', 'Keyword_model', 'Posttemplate_model' ));
  20.  
  21. $this->site->side = 'frontend';
  22.  
  23. $template_setting = unserialize( json_decode(file_get_contents(base_url('assets/js/setting_template.json'))) );
  24.  
  25. if(!empty($template_setting['template_directory']))
  26. $this->site->template = $template_setting['template_directory'];
  27. else
  28. $this->site->template = 'default';
  29.  
  30. $this->site->template_setting = unserialize($template_setting['template_attribute']);
  31. ...........................................................................
  32. .........................................
  33. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement