Revize 592
Přidáno uživatelem Tomáš Dulík před téměř 15 roky(ů)
freenetis/trunk/kohana/media/css/style.css | ||
---|---|---|
margin-top: 0px;
|
||
}
|
||
|
||
h1 {
|
||
h1#logo {
|
||
position:absolute;
|
||
top:24px;
|
||
left:18px;
|
||
... | ... | |
width:212px;
|
||
height:49px;
|
||
}
|
||
h1 span {
|
||
h1#logo span {
|
||
visibility:hidden;
|
||
}
|
||
h2 {
|
freenetis/trunk/kohana/application/controllers/settings.php | ||
---|---|---|
function __construct()
|
||
{
|
||
parent::__construct();
|
||
$array[] = html::anchor(url_lang::base().'settings/info', url_lang::lang('texts.Info'));
|
||
$array[] = html::anchor(url_lang::base().'settings/system', url_lang::lang('texts.System'));
|
||
$array[] = html::anchor(url_lang::base().'settings/voip', url_lang::lang('texts.VoIP'));
|
||
$array[] = html::anchor(url_lang::base().'settings/gateway', url_lang::lang('texts.Gateway'));
|
||
$array[] = html::anchor(url_lang::base().'settings/map', url_lang::lang('texts.Map'));
|
||
$array[] = html::anchor(url_lang::base().'settings/registration_export', url_lang::lang('texts.Export of registration'));
|
||
$this->links = implode(' | ', $array);
|
||
|
||
}
|
||
|
||
function index()
|
||
... | ... | |
url::redirect(url_lang::base().'settings/system');
|
||
}
|
||
|
||
|
||
/**
|
||
* @author Tomas Dulik
|
||
* info() displays various system information
|
||
* @return unknown_type
|
||
*/
|
||
function info()
|
||
{
|
||
if (!$this->acl_check_edit('Settings_Controller','system'))
|
||
Controller::error(ACCESS);
|
||
$status = @shell_exec("svnversion ".dirname(__FILE__)."/../../../");
|
||
$data=array(
|
||
"SVN revision"=>$status,
|
||
"DB schema revision"=>$this->setting->db_schema_version
|
||
);
|
||
ob_start();
|
||
phpinfo();
|
||
$html=ob_get_contents();
|
||
ob_end_clean();
|
||
// Delete styles from output (credits: Moodle.org)
|
||
$html = preg_replace('#(\n?<style[^>]*?>.*?</style[^>]*?>)|(\n?<style[^>]*?/>)#is', '', $html);
|
||
$html = preg_replace('#(\n?<head[^>]*?>.*?</head[^>]*?>)|(\n?<head[^>]*?/>)#is', '', $html);
|
||
// Delete DOCTYPE from output
|
||
$html = preg_replace('/<!DOCTYPE html PUBLIC.*?>/is', '', $html);
|
||
// Delete body and html tags
|
||
$html = preg_replace('/<html.*?>.*?<body.*?>/is', '', $html);
|
||
$html = preg_replace('/<\/body><\/html>/is', '', $html);
|
||
$html = preg_replace('/table border="0"/is', 'table class="extended"', $html);
|
||
$table=new View('table_2_columns');
|
||
$table->table_data = $data;
|
||
$view = new View('main');
|
||
$view->content = new View("show_all");
|
||
$view->content->link_back = $this->links;
|
||
$view->title=$view->content->headline = url_lang::lang('texts.System').' - '.url_lang::lang('texts.Info');
|
||
$view->content->table=$table . $html;
|
||
$view->render(TRUE);
|
||
|
||
}
|
||
/**
|
||
* @author Michal Kliment
|
||
* Form to set up system variables
|
||
*/
|
||
|
||
*/
|
||
function system()
|
||
{
|
||
// access control
|
freenetis/trunk/kohana/application/views/main.php | ||
---|---|---|
<body <?php echo isset($onload) ? 'onload="'.$onload.'"' : '' ?> >
|
||
<div id="main">
|
||
<div id="header">
|
||
<h1><span>FreeNetIS</span></h1>
|
||
<h1 id="logo"><span>FreeNetIS</span></h1>
|
||
<div class="separator1"></div>
|
||
<div class="status">
|
||
<span><?php echo $this->session->get('user_id', 0) ? url_lang::lang('texts.Logged user') : url_lang::lang('texts.Unlogged user') ?></span>
|
Také k dispozici: Unified diff
Do menu "Administrace" - "Nastaveni" - pridana nova polozka "Info", ktera zobrazi aktualni SVN revizi, verzi DB schematu a PHP info.