Файл: Just Wallet 2.0.4/application/controllers/Privacy.php
Строк: 45
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Privacy extends Public_Controller {
/**
* Constructor
*/
function __construct()
{
parent::__construct();
// load the language file
$this->lang->load('welcome');
$this->load->model('pages_model');
}
/**
* Default
*/
function index()
{
// setup page header data
$this->set_title(sprintf(lang('core button privacy'), $this->settings->site_name));
$data = $this->includes;
$page = $this->pages_model->get_page(6);
$content = (@unserialize($page['content']) !== FALSE) ? unserialize($page['content']) : $page['content'];
// set content data
$content_data = array(
'content' => $content[$this->session->language]
);
// load views
$data['content'] = $this->load->view('privacy', $content_data, TRUE);
$this->load->view($this->template, $data);
}
}