Файл: public_html/style/head.php
Строк: 53
<?php
include_once($_SERVER["DOCUMENT_ROOT"]."/system/db.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/system/function.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/system/Js.php");
session_start();
echo '<head><meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">
<meta name="keywords" content="'.$sett['keywords'].'">
<meta name="description" content="'.$sett['description'].'">';
include_once($_SERVER["DOCUMENT_ROOT"]."/system/mobile_detect.php");
$detect = new Mobile_Detect;
if($detect->isMobile()){
echo'<link rel="stylesheet" href="/style/css/style.css" type="text/css" />';
}
elseif($detect->isTablet()){
echo'<link rel="stylesheet" href="/style/css/style2.css" type="text/css" />';
}
else
{
echo'<link rel="stylesheet" href="/style/css/web.css" type="text/css" />';
}
if($detect->isAndroidOS()){
echo'<link rel="stylesheet" href="/style/css/style.css" type="text/css" />';
}
if($detect->isiOS()){
echo'<link rel="stylesheet" href="/style/css/style2.css" type="text/css" />'; }
echo'
<link rel="shortcut icon" href="/style/images/favicon.ico">
';
echo'</head><body>';
echo'<div id="head"><table cellspacing="0" cellpadding="0"><tr><td width="450"><a href="#" id="logo">Рекламная Сеть</a></td><td width="50"><a href="/index.php" id="menu"><img src="/style/images/menu.png" id="m"></a></td></tr></table></div>';
echo '<div id="cont"><center>';
echo 'Сегодня - '.date("d F Y").'<br>';
echo 'Текущее время - '.date("H:i").'<br>';
echo'</center></div>';
if($admin){
echo '<div id="links"><a href="/adm"><img width="16" height="16" src="/style/images/error.png" alt="1shop"/> Админ-Панель</a></div>';
}
?>