Файл: style/themes/default_web/head.php
Строк: 79
<?php
/**
* @package Prime Social
* @link http://primesocial.ru
* @copyright Copyright (C) 2016 Prime Social
* @author BoB | http://primesocial.ru/about
*/
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><meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta name="name" content="Prime Social" /><meta name="description" content="Prime Social" />
<link rel="shortcut icon" href="'.HOME.'/style/themes/' .$styler. '/favicon.ico" />
<link rel="stylesheet" href="'.HOME.'/style/themes/' .$styler. '/style.css" type="text/css"/>
<link rel="stylesheet" href="'.HOME.'/style/themes/' .$styler. '/tables.css" type="text/css"/>
<title>'.$title.'</title></head><body>
'.DIV_BODY.'<div>';
/// Tegilmasin
if (!empty($user)) {
DB::$dbs->query("UPDATE ".USERS." SET `location` = ? WHERE `user_id` = ? ",array($title, num($_SESSION['user_id'])));
}
////
if($user){
/* Pochta */
$all = DB::$dbs->querySingle("SELECT COUNT(*) FROM ".DIALOG_MSG." WHERE `user_friend` = ? AND `status` = ? ", array($user['user_id'], 1));
/* Tasma */
$lenta = DB::$dbs->querySingle("SELECT COUNT(*) FROM ".LENTA." WHERE `user_id` = ? AND `status` = ? ", array($user['user_id'], 1));
echo '<table cellspacing="0" cellpadding="0" width="100%" ><tr>
<td class="title" width="6%"><center><a href="/"><img src="/style/themes/' .$styler. '/logo.png"></a></center>';
echo '</td>';
echo '<td class="title" width="70%" >';
echo ' <form action="'.HOME.'/search/" method="post">
<div style="font: 11px Tahoma;"> <input name="sql" style = "width:30%;" placeholder="Sayt bo`yicha izlash"/>
<input type="submit" value="GO!"/>';
echo '</form>';
echo '</td>';
echo '<td class="title" width="5%" >';
echo '<center><a href="'.HOME.'/page"><img src="/style/themes/' .$styler. '/ico/user.png"> </a></center>';
echo '</td>';
echo '<td class="title" width="5%" >';
echo '<center><a href="'.HOME.'/mail/"><img src="/style/themes/' .$styler. '/ico/mail.png"> '.($all > 0 ? ' <span>'.$all.'</span>' : NULL).'</a></center>';
echo '</td>';
echo '<td class="title" width="5%" >';
echo '<center><a href="'.HOME.'/lenta/"><img src="/style/themes/' .$styler. '/ico/lenta.png"> '.($lenta > 0 ? ' <span>'.$lenta.'</span>' : NULL).'</a></center>';
echo '</td>';
echo '<td class="title" width="9%">';
echo '<ul class="menu">
<li><a href="#"><img src="/style/themes/' .$styler. '/ico/menu.png"></a>
<ul>
<li><a href="/page" class="mypage">Sahifam</a></li>
<li><a href="/menu" class="setting">Sozlamalar</a></li>
<li><a href="/shop/" class="shop">Do`kon</a></li>
<li><a href="/loads/" class="downloads">Yuklamalar</a></li>
<li><a href="/forum/" class="forum">Forum</a></li>
<li><a href="/chat/" class="chat">Chat</a></li>
<li><a href="/groups/" class="group">Guruhlar</a></li>
<li><a href="/exit.php" class="exit">Chiqish</a></li>
</ul>
</li>
</ul>';
echo '</td></tr></table>';
}else{
echo '<div class="white">';
echo '<a href="/"><img src="/style/themes/' .$styler. '/logo.png" width="150px;"></a>';
echo '</div>';
echo '<table cellspacing="0" cellpadding="0" width="100%" ><tr>
<td class="title" width="75%">';
echo '</td>';
echo '<td class="title" style="text-align:right;border-right: 1px solid #006FB5;" width="10%" >';
echo '<a href="'.HOME.'/auth">Kirish</a>';
echo '</td>';
echo '<td class="title" style="text-align:center;border-left: 1px solid #005E98;" width="15%" >';
echo '<a href="'.HOME.'/reg">Ro`yhatdan o`tish</a>';
echo '</td></tr></table>';
}
echo '<div class="content">';
if ($_SERVER['PHP_SELF'] != '/page.php')
{
echo '<br/><table cellspacing="0" cellpadding="0" width="100%" ><tr>
<td width="20%" style="vertical-align: top;">';
require_once($_SERVER[DOCUMENT_ROOT].'/style/themes/' .$styler. '/menu.php');
echo '</td>';
echo '<td width="3%" >';
echo '</td>';
echo '<td width="69%" style="vertical-align: top;">';
echo'<div class="border"><div class="tepa">'.$title.'</div>';
}
else {
}
?>