Вход Регистрация
Файл: fnc/head.php
Строк: 78
<?php
/*

MonsterCMS 0.6
ICQ: 22-22-095
ВКонтакте: https://vk.com/robot_anton
By Phenomenal

*/

$set $db->super_query("SELECT * FROM `monstercms_site_setting` WHERE `id` = '1'");

##Дизайн
if (isset($user['id']))
    
$style $user['style'];
else
    
$style $set['style'];

##icons
if (isset($user['id']))
    
$ico_size $user['size_ico'];
else
    
$ico_size $set['size_ico'];


echo 
'<html>
    
<head>

<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>

<meta http-equiv="Content-Style-Type" content="text/css" />

<link rel="shortcut icon" href="/style/themes/'
.$style.'/favicon.ico" />

<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<link rel="alternate" hreflang="ru" href="https://monstercms.tk/" />'
;

echo
'<link rel="stylesheet" type="text/css" href="/style/themes/'.$style.'/style.css">

'
;

  echo
'<link rel="stylesheet" type="text/css" href="/style/themes/'.$style.'/s_cfmxw.css">
  <link rel="stylesheet" type="text/css" href="/style/themes/'
.$style.'/s_yzgt.css">';

?>

<script type="text/javascript" src="/style/js/js.js"></script>

<script type="text/javascript">
function anichange (objName) {
 if ( $(objName).css('display') == 'none' ) {
 $(objName).animate({height: 'show'}, 500);
 } else {
 $(objName).animate({height: 'hide'}, 500);
 }
}

</script>



 <script type="text/javascript">domStarted();</script>

<?

echo'<title>'.$title.'</title>
    
</head>
    
<body>'
;
if (isset(
$user['id']))
{
    
$db->query("UPDATE `monstercms_account` SET `ip`='".$IP."',`browser`='".$UA."' WHERE `id`='".$user['id']."'");
}

echo
'<div id="head">';

echo
'<table cellspacing="0" cellpadding="0">';
echo
'<tr>';


if(isset(
$user)){ 
    echo
'<td width="50">';
    echo
'<a href="/cab" id="menu"> <img src="/style/themes/'.$style.'/img/24/cab.png" id="m"></a>';
    echo
'</td>'//<! -- td 50-->


}else{ 
    echo
'<td width="50">';
    echo
'<a href="/login" id="menu"> <img src="/style/themes/'.$style.'/img/24/login.png" id="m" title="Вход"></a>';
    echo
'</td>'//<! -- td 50-->

}

echo
'<td width="400">';
    echo
'<a href="/" id="logo">MonsterCMS</a>
</td>'
//<! -- td 400-->

if(isset($user)){ 
    echo
'<td width="50">';
    echo
'<a href="/exit" id="menu"> <img src="/style/themes/'.$style.'/img/24/exit.png" id="m" title="Выход"></a>';
    echo
'</td>'//<! -- td 50--> 


}else{ 
    echo
'<td width="50">';
    echo
'<a href="/reg" id="menu"> <img src="/style/themes/'.$style.'/img/24/reg.png" id="m" title="Регистрация"></a>';
    echo
'</td>'//<! -- td 50-->
}
    
echo
'</tr></table></div>';

echo
'<div id="styles">';
if(isset(
$user)){ 

}


if(isset(
$user)){

/*

-
-
-
-

*/

/*Почта*/
if($db->query("SELECT * FROM `monstercms_msg` WHERE `ank` = '$user[id]' AND `status` = '0'")->num_rows != '0') echo '<div id="cards"><img src="/style/themes/'.$style.'/img/'.$ico_size.'/mes.png"> <a href="/im"> Почта <font color="red"> + '.$db->query("SELECT * FROM `monstercms_msg` WHERE `ank` = '$user[id]' AND `status` = '0'")->num_rows.'</font></a></div>';

/*

-
-
-
-

*/

  /*Журнал*/
if($db->query("SELECT * FROM `monstercms_journal` WHERE `ank_id` = '".$user['id']."' AND `status` = '1'")->num_rows '0') echo '<div id="cards"><img src="/style/themes/'.$style.'/img/'.$ico_size.'/notification.png">  <a href="/journal"> <font color="red">Уведомлений в журнале  + '.$db->query("SELECT * FROM `monstercms_journal` WHERE `ank_id` = '".$user['id']."' AND `status` = '1'")->num_rows.'</font></a></div>';
/*

-
-
-
-

*/


}
if(isset(
$_SESSION['message'])){ 

echo 
'<div id="error"> '.htmlspecialchars($_SESSION['message']).'</div>'

$_SESSION['message'] = NULL; }
Онлайн: 2
Реклама