View file testim.wmzo.ru/Design/themes/mobile/head.php

File size: 3.07Kb
<?php
/**
 * Created by PhpStorm.
 * User: Venom
 * Date: 08.11.13
 * Time: 3:27
 */
$pageTop = 9;
$home = 'http://' . $_SERVER['HTTP_HOST'];
$path = $_SERVER['REQUEST_URI'];
?>
<!DOCTYPE html>
<html dir="ltr" lang="ru-RU">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1.0; user-scalable=0" />
    <meta name="keywords"
          content="Статистика, Топ 100, Рейтинг, wap мастеру, Посетители, Площадок, Страница, Топ"/>
    <meta name="description"
          content="Firetop.su - это популярный каталог мобильных сайтов. Участие в рейтинге даст вам тысячи бесплатных целевых посетителей каждый месяц."/>
    <title><?= $title . ' | ' . $set['topName']; ?></title>
    <link rel="stylesheet" href="<?= $home; ?>/Design/themes/<?= $style; ?>/style.php" media="screen">
    <link rel="shortcut icon" href="<?= $home; ?>/Design/themes/<?= $style; ?>/favicon.ico"
          type="image/x-icon">
    </head>
<body>
<div id="wrapper">
    <header>
    <div class="logo"></div>
    </header>
    <div class="nav_bar">
    <div class="l_bar">
<?
//if($path != '/')
    //echo '<a href="' . $home . '/">TOP 100</a>&nbsp;::&nbsp;';
 if (!isset($user_data))
        echo '<a href="' . $home . '/m/authentication">Вход</a>&nbsp;::&nbsp;<a href="' . $home . '/m/registration">Регистрация</a>';
    else {
        if ($str != 'authentication')
            echo '<a href="' . $home . '/m/office">Кабинет</a>&nbsp;::&nbsp;<a href="' . $home . '/exit">Выход</a>';
    }

?>
    </div>
    </div>
<?
echo '<div class="adv">';

$sett = $mysqli->query("SELECT * FROM `ads_settings`")->fetch_assoc();
$sql = $mysqli->query("SELECT * FROM `ads` WHERE `pay` = '1' AND `date` >= NOW() OR `pay` = '1' AND `total` > 0 ORDER BY `id` LIMIT ".$sett['links']."");
while($row = $sql->fetch_assoc()) {
	if(substr_count($row['name'], '|') > 0) {
		$arr_name = explode("|", $row['name']);
		$rand = array_rand($arr_name);
		$name = htmlspecialchars($arr_name[$rand]);
	} else $name = htmlspecialchars($row['name']);
	echo '<div>'.($row['bold']==1?'<b>':NULL).'<a href="/link.php?id='.$row['id'].'"><font color="'.$row['color'].'">'.$name.'</font></a>'.($row['bold']==1?'</b>':NULL).'</div>';
}


$rek = $mysqli->query("SELECT `id`,`name`,`position`,`link`,`color` FROM `".$prefix."rekl` WHERE `stat` = '1' ORDER BY RAND() LIMIT 5");
if($rek->num_rows > 0)
{
        while($row = $rek->fetch_assoc())
        {
        echo '<div><a href="http://'.$row['link'].'"><font color=#'.$row['color'].'>'.$row['name'].'</font></a></div>';
        }
}
echo '<a href="/m/ads">» Купить рекламу автоматически</a> - <font color="red">15wmr!</font>';
echo '</div><!-- /.adv -->';

?>
    <div class="nav_footer" style="text-align:center;font-size: 16px;font-weight: 800;"><a href="<?=$home;?>/">TOP 100</a>&nbsp;::&nbsp;<a href="<?=$home;?>/m/category">КАТЕГОРИИ</a></div>
    <div class="main">