Файл: Just Wallet 2.0.4/application/controllers/Instructions.php
Строк: 62
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Just Wallet
* Copyright (c), Just Didigital Tech
* Author code Anna Kantemirova and Sergey Plaxin
* Site developer http://justigniter.io/
* License https://codecanyon.net/licenses/terms/regular
**/
class Instructions 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 instructions'), $this->settings->site_name));
$data = $this->includes;
$page = $this->pages_model->get_page(7);
$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('instructions', $content_data, TRUE);
$this->load->view($this->template, $data);
}
}