Файл: touchSpace/head.php
Строк: 592
<?
$set['web']=true; $sofokles=true; echo '<?xml version="1.0" encoding="utf-8"?>';?>
<!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" ><head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="MobileOptimized" content="176" />
<meta name="HandheldFriendly" content="True" />
<base id="base">
<meta name="robots" content="noindex,nofollow" />
<title><?echo $set['title'];?></title>
<!--
Design NEW spaces.ru
For: DCMS-social
Author: SofoklesAjax {Andrian Zashariev}
Contacts: vk.com/sophoclesajax
--!>
<link rel="stylesheet" type="text/css" href="/style/themes/<?=$set['set_them']?>/touch_cache_r988p.css" main_css="1">
<link rel="stylesheet" type="text/css" href="/style/themes/<?=$set['set_them']?>/x7.demo.css" main_css="1">
<link rel="stylesheet" type="text/css" href="https://raw.github.com/daneden/animate.css/master/animate.css" main_css="1">
<link rel="stylesheet" type="text/css" href="/style/themes/<?=$set['set_them']?>/4154737527_r988p.css" main_css="1">
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/no-jquery.js?r=988p"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/loader.js?r=988p"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/jquery.js?r=988p"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/pushstream.js?r=988p"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/spaces.pushstream.js?r=988p"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/spacesLib.js?r=988p" id="spaces_lib" data-params="{ nid:1, CK:null, name:'null', lp:{host:'/?',port:'80',ch:'3143afb3798026ba8f1fb9e66c3eae7e'}, form_submit_key:'CTRL_ENTER' }"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/ajaxify.js?r=988p"></script>
<script type="text/javascript" src="/style/themes/<?=$set['set_them']?>/js/notifications.js?r=988p"></script>
<script src="/style/themes/<?=$set['set_them']?>/js/Likes_ajax.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/soundmanager2-nodebug-jsmin.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/avatar_change.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/dd_menu.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/files_uploader.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/FilesUploader.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/files_selector.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/slider.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/form_toolbar.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/form_toolbar.extended.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/form_toolbar.smiles_data.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/footer.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes/<?=$set['set_them']?>/js/ga.js?r=988p" type="text/javascript" async=""></script>
<script src="/style/themes<?=$set['set_them']?>/js/search_suggests.js?r=988p" type="text/javascript" async=""></script></head>
<?
if (isset($user)) {
?>
<body class="font-medium auth touch safari ver4 new_browser js-on flip animated" style="height: auto;">
<link type="text/css" rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/CommentWidget/toolbar.css?r=988p">
<link type="text/css" rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/AvatarSelector.css?r=988p">
<link type="text/css" rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/Gallery.css?r=988p">
<link type="text/css" rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/AvatarSelector.css?r=988p">
<!-- Подзагрузка контента с помощью ajax.
С этой функцией не работал, но всё-таки решил оставить.
Можно сделать, если будет желание
--!>
<script type="text/javascript">Loader.init()</script>
<div id="wrap_all"> <div id="main_shadow"> <div class="page_fixer"></div>
<div class="vert_line"></div> <div class="vert_line2"></div>
<div id="sidebarOverlay" onclick="Sidebar.toggle(event);"></div>
<div id="page_sidebar">
<link rel="stylesheet" type="text/css" href="/style/themes/<?=$set['set_them']?>/s_icons.css?r=988p">
<div id="left_nav_bg"></div>
<div id="sidebar_wrap">
<div id="left_nav">
<ul> <li class="sidebar-logo">
<a href="/?sid=66433332" class="sidebar-logo__link" id="main_logo_link"> <span class="ico ico_spacesru"></span> </a> </li>
<li class="left_nav_stat_item oh">
<form action="/user/users.php?go" method="post">
<a href="/user/users.php?go" class="left_nav_padding left_nav_search_input_ico" id="main_search_input_ico" style="display: block; "> Поиск </a>
<input type="hidden" name="link_id" value="0">
<input type="hidden" name="sid" value="">
<input type="hidden" name="CK" value="1">
<span id="main_search_form" class="left_nav_padding" style="display: none; ">
<input type="text" placeholder="Поиск" class="left_nav_search_input medium" name="usearch" id="main_search_input">
<input type="submit" class="main_search_input_submit" name="cfms" title="Найти" value=".">
</span></form></li>
<div class="swing"><li class="sep_bl"> <a href="/id<?=$user['id']?>?mysite" class="avatar_link user_avatar" title=" Моя страница">
<span class="for_avatar ava">
<style type="text/css">
.pxl{ /* селектор для класса avatar */
width: 40px; /* ширина */
height: 40px; /* высота */
}
.pxl img{ /* селектор для картинки, которая "внутри" класса avatar */
display: block; /* картинка выводится как блок, по ширине будет равен родителю(диву в котором находится) */
width: 100%; /* ширина 100% */
border: 0; /* граница нулевая */
margin: 0; /* внешний отступ отстутствует */
}
</style>
<?php
$p = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='$user[id]' LIMIT 1"));
$a = mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `id_user`='$user[id]' AND `avatar`='1' LIMIT 1"));
if (is_file(H."sys/gallery/50/$a[id].$a[ras]")) echo "<div class='pxl'><img src='/foto/foto50/$a[id].$a[ras]' alt='$a[name]' class='pxl'></div>";
else echo "<div class='pxl'><img src='/style/icons/avatar.png' class='pxl'></div>";
?></span><?
echo " $user[nick] ";
?></a> </li></div><? } else { ?>
<body class="font-medium not_auth touch safari ver4 new_browser js-on"> <script type="text/javascript">Loader.init()</script> <div id="wrap_all"> <div id="main_shadow"> <div class="page_fixer"></div> <div class="vert_line"></div> <div class="vert_line2"></div> <div id="sidebarOverlay" onclick="Sidebar.toggle(event);"></div> <div id="page_sidebar"> <link rel="stylesheet" type="text/css" href="http://spaces.ru/css/custom/Sidebar/s_icons.css?r=990p"> <div id="left_nav_bg"></div> <div id="sidebar_wrap"> <div id="left_nav"> <ul> <li class="sidebar-logo"> <a href="/?" class="sidebar-logo__link" id="main_logo_link"> <span class="ico ico_spacesru"></span> </a> </li>
<li class="stnd_padd bt0 last"> <div class="stnd_padd round_corners sidebar_reg_form"> <div class="t_center"> <a href="/aut.php" title="Вход">Вход</a> <a href="/reg.php" title="Регистрация">Регистрация</a> </div> </div> </li>
<? }
?>
<li class="sep_bl bt0 s_title">
<span class="s_i s_i_titles"></span>
<b class="m">Разделы сайта</b>
<a class="all" href="/sidebar.services.php">
<img src="http://i.spaces.ru/i/otherservices_sbar.png" alt=""></a></li>
<div class="swing">
<li class="bt0 "><a href="/obmen/" title="Зона обмена"> <span class="s_i s_i_exchange"></span><span class="m">Зона обмена</span></a> </li></div>
<div class="swing"><li> <a href="/user/music/" title="Музыка"> <span class="s_i s_i_music"></span> <span class="m">Музыка</span></a> </li></div>
<div class="swing"><li><a href="/user/love/" title="Знакомства"> <span class="s_i s_i_love"></span> <span class="m">Знакомства</span></a> </li></div>
<div class="swing"><li><a href="/user/users.php?go" title="Найти пару">
<span class="s_i s_i_findPair"></span> <span class="m">Найти пару</span></a></li></div>
<div class="swing"><li><a href="/plugins/notes/" title="Блоги"> <span class="s_i s_i_diary"></span> <span class="m">Блоги</span></a> </li></div>
<div class="swing"><li><a href="/guest/" title="Гостевая"> <span class="s_i s_i_community"></span> <span class="m">Гостевая</span></a> </li></div>
<div class="swing"><li><a href="/forum/" title="Форум"> <span class="s_i s_i_forum"></span> <span class="m">Форум</span></a> </li></div>
<div class="swing"><li><a href="/chat/" title="Чат"> <span class="s_i s_i_chat"></span> <span class="m">Чат</span></a> </li></div>
<div class="swing"><li> <a href="/user/liders/" title="Лидеры"> <span class="s_i s_i_games"></span> <span class="m">Лидеры</span></a> </li></div>
<div class="swing"><li> <a href="/news/" title="Новости">
<span class="s_i s_i_announcement"></span> <span class="m">Новости</span></a> </li></div>
<div class="swing"><li> <a href="/user/users.php" title="Обитатели">
<span class="s_i s_i_people"></span> <span class="m">Обитатели</span></a> </li></div>
<div class="swing"><li class=" last "> <a href="/plugins/rules/" title="О сайте">
<span class="s_i s_i_mobiles"></span> <span class="m">О сайте</span></a> </li></div>
<?
if (isset($user)) {
?>
<li class="sep_bl bt0 s_title"> <span class="s_i s_i_titles"></span>
<b class="m">Мои разделы</b> </li>
<div class="swing"><li class="bt0"> <a href="/user/music/" title="Моя музыка"> <span class="s_i s_i_music"></span><span class="m">Моя музыка</span> </a> </li></div>
<div class="swing"><li> <a href="/user/bookmark/" title="Закладки">
<span class="s_i s_i_favorites"></span> <span class="m">Закладки</span> </a> </li></div>
<div class="swing"><li> <a href="/user/frends/" title="Друзья">
<img src="http://i.spaces.ru/i/tortik.gif" alt="" class="right hide" id="friends_cake" style="display: none; "> <span class="s_i s_i_friends"></span>
<span class="m">Друзья</span> <span class="m hide" title="онлайн" style="display: none; ">(<span id="friends_cnt">0</span>)</span> </a> </li></div>
<div class="swing"><li class=" last"> <a href="/my_aut.php" title="История посещений">
<span class="s_i s_i_history"></span> <span class="m">История посещений</span> </a> </li></div>
<li class="sep_bl bt0 s_title"> <span class="s_i s_i_titles"></span>
<b class="m">Настройка</b> </li>
<?
if (user_access('adm_panel_show'))
{ ?>
<div class="swing"><li class="bt0"> <a href="/plugins/admin/" title="Секретное хранилище"> <span class="s_i s_i_menu"></span> <span class="m">Настройка сайта</span> </a> </li></div>
<? }
?>
<div class="swing"><li> <a href="/user/money/" title="Дополнительные услуги">
<span class="s_i s_i_allservices_gray"></span> <span class="m">Дополнительные услуги</span> </a> </li></div>
<div class="swing"><li> <a href="/user/info/settings.php" title="Настройки">
<span class="s_i s_i_options"></span> <span class="m">Настройки</span> </a> </li></div>
<div class="swing"><li> <a href="/plugins/rules/" title="Помощь"> <span class="s_i s_i_help"></span> <span class="m">Помощь</span> </a> </li></div>
<div class="swing"><li> <a href="/exit.php" title="Выход">
<span class="s_i s_i_exit"></span>
<span class="m">Выход</span> </a> </li></div>
</ul> </div><!-- #left_nav --> </div> </div>
<? } else { ?>
</ul> </div><!-- #left_nav --> </div> </div>
<?
}
if (isset($user)) {
?>
<div id="main_content_block"> <div class="content_wrap" id="content_wrap_move" style="margin-right: 0px; "> <div id="header_elements"> <div id="wrapper_for_header"> <div id="wrapper_for_header_fix"> <span style="display:none;"><img id="site_logo" src="/sofokles1.png" alt=""></span>
<?
$k_new = mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` IS NULL OR `users_konts`.`type` = 'common' OR `users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);
$k_new_fav = mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);
$lenta = mysql_result(mysql_query("SELECT COUNT(`read`) FROM `tape` WHERE `id_user` = '$user[id]' AND `read` = '0' "),0);
$discuss = mysql_result(mysql_query("SELECT COUNT(`count`) FROM `discussions` WHERE `id_user` = '$user[id]' AND `count` > '0' "),0);
$k_frend = mysql_result(mysql_query("SELECT COUNT(id) FROM `frends_new` WHERE `to` = '$user[id]'"), 0);
$k_notif = mysql_result(mysql_query("SELECT COUNT(`read`) FROM `notification` WHERE `id_user` = '$user[id]' AND `read` = '0'"), 0);
?>
<div id="navi" class="horiz-menu"> <table cellspacing="0" cellpadding="0" class="horiz-menu__wrapper" width="100%">
<tbody><tr width="100%">
<td width="20%" class="horiz-menu__col" id="home_link_td">
<a href="/?link_id=&sid=" class="horiz-menu__link" title="Меню" id="home_link" onclick="Sidebar.toggle(event);">
<span class="horiz-menu__link-ico horiz-menu__link-ico_menu"></span> <span class="horiz-menu__link-text">Меню</span> </a> </td>
<td width="20%" class="horiz-menu__col"> <a href="/new_mess.php" class="horiz-menu__link" title="Почта"> <span class="horiz-menu__link-ico horiz-menu__link-ico_mail"> <span class="horiz-menu__link-event" id="mail_notif_cnt"></span> </span>
<span class="horiz-menu__link-text">Почта </span><span class="horiz-menu__link-text">
<?php
if ($k_new != 0 && $k_new_fav == 0)
{ ?>+<?=$k_new?></span><? } ?>
</a></td>
<td width="20%" class="horiz-menu__col"> <a href="/user/frends/new.php" class="horiz-menu__link" title="Журнал"> <span class="horiz-menu__link-ico horiz-menu__link-ico_journal"> <span class="horiz-menu__link-event" id="jour_notif_cnt"></span> </span> <span class="horiz-menu__link-text">Журнал</span>
<?php
if ($k_frend > 0)
{ ?> <span class="horiz-menu__link-text">+<?=$k_frend?></span><? } ?>
</a> </td>
<?
if ($lenta > 0)
{
$j2 = 'tape';
}
elseif ($discuss > 0)
{
$j2 = 'discussions';
}
elseif ($k_notif > 0)
{
$j2 = 'notification';
}
else
{
$j2 = 'tape';
}
?>
<td width="20%" class="horiz-menu__col"> <a href="/user/<?=$j2?>/index.php" class="horiz-menu__link" title="Лента"> <span class="horiz-menu__link-ico horiz-menu__link-ico_lenta"> <span class="horiz-menu__link-event" id="lent_notif_cnt"></span> </span> <span class="horiz-menu__link-text">Лента</span> <span class="horiz-menu__link-text">
<?php
$k_l = $lenta + $k_notif + $discuss;
if($k_l > 0)
{
?>
+<?=$k_l?>
<?
}
?></span></a> </td>
<td width="20%" class="horiz-menu__col"> <a href="id<?=$user['id']?>?mysite" class="horiz-menu__link" title="Вы"> <span class="horiz-menu__link-ico horiz-menu__link-wrap_ico_user"> <span class="horiz-menu__link-ico horiz-menu__link-ico_user"> <?php
$p = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='$user[id]' LIMIT 1"));
$a = mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `id_user`='$user[id]' AND `avatar`='1' LIMIT 1"));
if (is_file(H."sys/gallery/50/$a[id].$a[ras]")) echo "<div class='rollln animated'><img src='/foto/foto50/$a[id].$a[ras]' alt='$a[name]'></div>";
else echo '<img src="http://ts01.userfiles.me/tpic/622da2d63f1dabb5b5d82a101107247e/90076792.p.41.40.0.jpg?1417793862" alt="">'; ?> </span> </span> <span class="horiz-menu__link-text horiz-menu__link-text_user">Вы</span> </a> </td> </tr> </tbody></table> </div> </div> </div>
<?
} else {
?>
<div id="main_content_block">
<div class="content_wrap" id="content_wrap_move">
<div id="header_elements"> <div id="wrapper_for_header">
<div id="wrapper_for_header_fix">
<span style="display:none;">
<img id="site_logo" src="http://i.spaces.ru/i/spaces.ru_logo_big.png" alt=""></span> <div class="unauth_header">
<table width="100%" class="unauth_header" cellspacing="0" cellpadding="0"> <tbody><tr width="100%">
<td class="to">
<a href="/startpage/?r=main/guest&sid=" id="home_link" class="unauth_header__link unauth_header__link_menu" onclick="Sidebar.toggle(event);"> <span class="ico ico_menu m"></span>
<span class="m">Меню</span></a> </td>
<td class="to" style="width: 100%;">
<a href="/?" class="unauth_header__link unauth_header__link_logo t_center"> <span class="ico ico_logo"></span> </a> </td>
<td class="to">
<a href="/aut.php" class="unauth_header__link unauth_header__link_enter">
<span class="m">Вход</span>
<span class="ico ico_enter m"></span></a> </td>
</tr> </tbody></table> </div> </div> </div>
<?
}
?>
<?
if ($_SERVER['PHP_SELF'] != '/index.php')
{
//Выводим навигацию. С разметкой дивов аккуратнее// ?>
<script type="text/javascript" src="http://spaces.ru/js/Sidebar_Touch.js?r=988p"></script> </div> <div class="space_main" id="siteContent"> <div id="location_header"> <div class="location-bar location-bar_no-break" id="header_path">
<span class="location-bar__item location-bar__item_home"> <a href="/" class="location-bar__home-link ico"></a>
<span class="location-bar__sep ico"></span> </span><!-- -->
<span class="location-bar__item"> <span class="location-bar__sep ico"></span>
<?
if (isset($user)) { ?>
<a href="/info.php?mysite" <? } else { ?> <a href="/aut.php" <? } ?> class=" location-bar__half">
<?
if (isset($user)) {
echo " $user[nick] "; } else { echo " Гость"; }
?>
</a>
<span class="location-bar__sep ico"></span></span><!-- -->
<span class="location-bar__item"> <span class="location-bar__sep ico"></span>
<span class="location-bar__title no_max_width">
<?echo $set['title'];?>
</span> </span>
</div> </div>
<div id="main_content"> <div>
<div class="content-user">
<?
}
?>