Файл: style/themes/default/head.php
Строк: 73
<?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"/>
<title>'.$title.'</title></head><body>
'.DIV_BODY.'<div>';
if ($_SERVER['PHP_SELF'] == '/index.php')
{
echo '<div class="head"><a href="/"><img src="/style/themes/' .$styler. '/logo.png" width="200px;" style="margin-bottom: -6px;" alt="'.SITE.'"/></a></div>';
}
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));
/* Lenta */
$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>';
echo '<td style="font-size:11px;"><center>';
echo '<a href="'.HOME.'/page" class="hlink">'.icon('man.png', 22,22).'<br/> Sahifam</a>';
echo '</center></td>';
echo '<td style="font-size:11px;"><center>';
echo '<a href="'.HOME.'/mail/" class="hlink"> '.icon('msg.png', 22,22).'<br/> Pochta '.($all > 0 ? ' +'.$all.'' : NULL).' </a>';
echo '</center></td>';
echo '<td style="font-size:11px;"><center>';
echo '<a href="'.HOME.'/lenta/" class="hlink"> '.icon('tasma.png', 22,22).'<br/>Tasma '.($lenta > 0 ? ' +'.$lenta.'' : NULL).' </a>';
echo '</center></td>';
echo '<td style="font-size:11px;"><center>';
echo '<a href="'.HOME.'/menu" class="hlink">'.icon('menu.png', 22,22).'<br/> Menu</a>';
echo '</center></td></tr></table>';
if ($_SERVER['PHP_SELF'] != '/index.php')
{
echo '<div class="tepa">';
echo '<a href="/"><u>Bosh sahifa</u></a> / ';
echo ' '.$title.'';
echo '</div>';
}
}else{
echo '<table cellspacing="0" cellpadding="0" width="100%" ><tr>';
echo '<td class="title" width="50%" >';
echo '<center><a href="'.HOME.'/auth">Kirish</a></center>';
echo '</td>';
echo '<td class="title" width="50%" >';
echo '<center><a href="'.HOME.'/reg">Ro`yhatdan o`tish</a></center>';
echo '</td></tr></table>';
}
?>