Вход Регистрация
Файл: system/class/diz.php
Строк: 95
<?
defined
('GCMS') or die('Ошибка!');
if (
$aut == true) {
define('STYLE',"$ya[style]");
}else{
define('STYLE',"$nastr[ststyle]");
}
define('TIMEZONE',"$nastr[timezone]");
define('KEYWORDS',"$nastr[keywords]");
define('DESCRIPTION',"$nastr[description]");
define('VERSION',"$nastr[web]");
//////Файл оболочки,не советую шо то ту менять!
final class diz {
public function 
head($title '$nastr[title]',$descriptions=DESCRIPTION,$keywords=KEYWORDS) {
date_default_timezone_set(''.TIMEZONE.'');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Last-Modified: ".gmdate("D, d M Y H:i:s"). "GMT");
header("Content-Type: text/html; charset=utf-8 Accept-Encoding: gzip, deflate");

echo 
'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"><head>'
;
echo 
"n" "<meta name='copyright' content='Лорд' />";
echo 
"n" "<meta name='cms' content='GlobalCMS'>
<meta name='keywords' content='"
.$keywords."'/>
<meta name='description' content='"
.$descriptions."'/>";
echo 
"n" "<meta name='robots' content='index,follow'>";
echo 
"n" "<meta name='author' content='Лорд'>";
echo 
'<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">'
;
echo 
"n" '<link rel="shortcut icon" href="/styles/'.STYLE.'/favicon.ico" />';
echo 
"n" '<title>'.$title.'</title>';
echo 
"n" '<link rel="stylesheet" href="/styles/'.STYLE.'/style.css" type="text/css" />
<script language="JavaScript" src="/styles/'
.STYLE.'/scripts.js"></script>';
?>
<code>
<script src="/media/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="/media/mediaelementplayer.min.css" />
</code>   
<script src="/media/settings.js"></script>
<?
echo "n" '</head><body>';
}
//Шапка)
public function title($title) {
include_once (
$_SERVER['DOCUMENT_ROOT'].'/styles/'.STYLE.'/face.php');
}
//Вывод
public function out($msg) {
echo 
$msg;
include_once (
$_SERVER['DOCUMENT_ROOT'].'/system/end.php');
}
//Путь к картинкам
public function img($img,$alt="*",$width=0,$height=0) {
if (
is_file($_SERVER['DOCUMENT_ROOT'].'/styles/'.STYLE.'/images/'.$img)) {
if(
intval(abs($width))>0)$w='width='.$width; else $w=null;
if(
intval(abs($height))>0)$h='width='.$height; else $h=null;
$img '<img src="/styles/'.STYLE.'/images/'.$img.'" alt="'.$alt.'" '.$w.' '.$h.'/>';
} else 
$img=null;
return 
$img;
}
}
?>
Онлайн: 0
Реклама