Файл: system/class/diz.php
Строк: 63
<?php
defined('GCMS') or die('Ошибка!');
if ($aut == true) {
define('STYLE',"$ya[style]");}else{define('STYLE',"$nastr[ststyle]");}
//////Файл оболочки,не советую шо то ту менять!
final class diz {
public function head($title = '$nastr[title]') {
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");
echo '<?xml version="1.0" encoding="utf-8"?>' . "n";
echo "n" . '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">';
echo "n" . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">';
echo "n" . '<head>
<meta http-equiv="description" content="GlobalTech,GlobalCMS x3.0"/>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>';
echo "n" . '<meta name="copyright" content="Лорд" />';
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" />';
echo "n" . '</head><body><div class="main">';
}
//Шапка)
public function title($title) {
echo '<div class="end">'.$title.'</div>';}
public function line($msg) {
echo '<div class="end">'.$msg.'</div>';}
public function verh($msg) {
echo '<div class="end">'.$msg.'</div>';}
//Вывод копирайта
public function out($msg) {
echo $msg;
include_once ($_SERVER['DOCUMENT_ROOT'].'/system/end.php');
}
//Путь к картинкам
public function img($img) {
if (is_file($_SERVER['DOCUMENT_ROOT'].'/styles/'.STYLE.'/images/'.$img)) {
$img = '<img src="/styles/'.STYLE.'/images/'.$img.'" alt="*" />';
} else $img = '';
return $img;
}
}
?>