Вход Регистрация
Файл: severus/application/controllers/settings.php
Строк: 41
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class 
settings extends MY_Controller
{
    public function 
__construct()
    {
        
parent::__construct();
        
$this->load->database();
        
$this->load->library("authme");
        
$this->load->model("server_model");
        if( 
$this->session->userdata('logged_in') !== trueredirect($this->config->item("base_url").'index.php/home');
    }

    public function 
index()
    {
        
$data = array();
        
$settings $this->server_model->get_settings();

        if (!empty(
$_POST)) {
            
is_demo($this->config->item("base_url")."index.php/settings/");
            
$this->server_model->save_settings();
            
$settings $this->server_model->get_settings();
            
$data["message"] = '<p class="success flashmessage">'.trans('message_settings1','Settings updated').'</p>';
        } else {
            foreach (
$settings as $name => $value) {
                
$_POST[$name] = $value;
            }
        }
        
$data["metrics"] = $this->server_model->get_metrics();
        
$data["setting_display_public"] = $settings->setting_display_public;
        
$this->load->view('header'$data);
        
$this->load->view('settings'$data);
        
$this->load->view('footer'$data);
    }

}

/* End of file settings.php */
/* Location: ./application/controllers/settings.php */
Онлайн: 1
Реклама