Файл: wapxl.ru/head.php
Строк: 394
<?php
if(!isset($max))$max = core::$max;
$wersion = 'web';
/*
// Автоопределение версии
if (func::is_mobile()==0)$wersion = 'web';
else $wersion = 'wap';
// определение версии по сесии
if (isset ($_SESSION['wersion'])) {
$wersion = trim($_SESSION['wersion']);
// определение версии по COOKIE
}elseif (isset ($_COOKIE['wersion'])) {
$wersion = trim($_COOKIE['wersion']);
$_SESSION['wersion'] = $wersion;
}
$wersionup = func::checkin($_REQUEST['wersion']);
if(isset($wersionup) && ($wersionup=='wap' || $wersionup=='web')){
$_SESSION['wersion'] = $wersionup;
setcookie("wersion", $wersionup,core::$realtime + 3600 * 24 * 365);
header('Location: /index.php');
}
*/
if (empty($head)) $head = $title;
$title = ''.$title;
if (empty($description)) $description = 'Белый каталог мобильных wap сайтов. Списки сайтов из категорий: бесплатные загрузки, музыка, фильмы, соц сети, игры , программы, android, PC';
if (empty($keywords)) $keywords = 'Бесплатные загрузки скачать музыка фильмы соц сети игры программы android PC seo анализ каталог сайтов белый прямые ссылки';
$rand = rand(0,4);
echo '
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/style/favicon.ico" />
<meta name="copyright" content="WAPXL.RU">
<meta name="author" content="-=ШАХТЕР=-">
<meta name="Reply-to" content="admin@1wm.su">
<meta name="description" content="'.$description.'">
<meta name="keywords" content="'.$keywords.'">
<title>'.$title.'</title>
<!-- Bootstrap Core CSS -->
<link href="/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<!-- Timeline CSS -->
<link href="/dist/css/timeline.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="/dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Morris Charts CSS -->
<link href="/bower_components/morrisjs/morris.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- DataTables Responsive CSS -->
<link href="/bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">
<link rel="stylesheet" id="wp-postratings-css" href="/wp-postratings/A.postratings-css.css" type="text/css" media="all"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/input.js"></script>
';
?>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="/top/amcharts/amcharts.js"></script>
<script src="/top/amcharts/serial.js"></script>
<script src="/top/amcharts/pie.js"></script>
<!-- cutom functions -->
<script>
AmCharts.loadJSON = function(url) {
// create the request
if (window.XMLHttpRequest) {
// IE7+, Firefox, Chrome, Opera, Safari
var request = new XMLHttpRequest();
} else {
// code for IE6, IE5
var request = new ActiveXObject('Microsoft.XMLHTTP');
}
// load it
// the last "false" parameter ensures that our code will wait before the
// data is loaded
request.open('GET', url, false);
request.send();
// parse adn return the output
return eval(request.responseText);
};
</script>
<?
echo '</head>
<body>
<h1 style="display: none;">'.$title.'</h1>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a href="/index.php"><img src="/logow.png" alt="Каталог мобильных сайтов" /></a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="menuid10 first">
<a href="/infa/news.php" >
<span class="glyphicon glyphicon-bullhorn"></span> Новости</a>
</li>
<li class="menuid10 first">
<a href="/dobavit-site-v-katalog" >
<span class="glyphicon glyphicon-plus"></span> Добавить сайт</a>
</li>
<li class="menuid10 dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" >
<span class="glyphicon glyphicon-list"></span> Категории сайтов
<b class="caret"></b>
</a>
<ul class="dropdown-menu">';
$r = core:: $db -> query("SELECT * FROM `categorii` ORDER BY id DESC;");
while ($row= $r -> fetch()) {
$count_sites = core:: $db -> querySingle("SELECT count(*) FROM `sites_cats` WHERE `cat` LIKE '%|".$row['id']."|%';");
echo '
<li class="menuid109 first">
<a href="/'.$row['name_lat'].'" ><span class="glyphicon glyphicon-arrow-right"></span> <b>'.$row['name'].'</b> ('.$count_sites.')</a>
</li>';
}
echo ' </ul> </li>';
if(!isset(core::$user['id']))$name = 'Гость';
else $name = core::$user['user'];
echo '
<li class="menuid70"><a href="/top100" ><span class="fa fa-bar-chart-o"></span> <b>ТОП 100</b></a></li>
<li class="menuid70"><a href="/heart_my" ><span class="glyphicon glyphicon-heart"></span> Избранное</a></li>
<li class="menuid10 dropdown hidden-xs">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" >
<span class="glyphicon glyphicon-user"></span> '.$name.'
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
';
if(!isset(core::$user['id'])){
echo '
<li><a href="/in.php"><i class="glyphicon glyphicon-log-in"></i> Авторизация</a></li>
<li><a href="/reg.php"><i class="glyphicon glyphicon-pencil"></i> Регистрация</a></li>
';
}else{
echo '
<li><a href="/my.php"><i class="fa fa-paperclip fa-fw"></i> Мои сайты</a></li>
<li><a href="/profile.php"><i class="fa fa-user fa-fw"></i> Профиль</a>
</li> ';
if(core::$user['level']==9) echo ' <li><a href="/admin/"><i class="fa fa-star fa-fw"></i> Админка</a></li> ';
echo '<li class="divider"></li>
<li><a href="/exit.php"><i class="fa fa-sign-out fa-fw"></i> Выход</a>
</li>
';
}
echo '
</ul>
</li>
';
if(!isset(core::$user['id'])){
echo '
<ul class="nav navbar-nav navbar-right hidden-sm hidden-md hidden-lg">
<li class="divider"></li>
<li><a href="/in.php"><i class="glyphicon glyphicon-log-in"></i> Авторизация</a></li>
<li><a href="/reg.php"><i class="glyphicon glyphicon-pencil"></i> Регистрация</a></li>
</ul>
';
}else{
echo ' <ul class="nav navbar-nav navbar-right hidden-sm hidden-md hidden-lg">
<li class="divider"></li>
<li><a href="/my.php"><i class="fa fa-paperclip fa-fw"></i> Мои сайты</a></li>
<li><a href="/profile.php"><i class="fa fa-user fa-fw"></i> Профиль</a>
</li>';
if(core::$user['level']==9) echo ' <li><a href="/admin/"><i class="fa fa-star fa-fw"></i> Админка</a></li> ';
echo ' <li class="divider"></li>
<li><a href="/exit.php"><i class="fa fa-sign-out fa-fw"></i> Выход</a>
</li>
</ul>
';
}
echo '
</div>
</div>
<div class="heading">
<form action="/search.php" method="post" name="form">
<div class="input-group custom-search-form">
<input id="search" name="search" type="search" class="form-control" placeholder="Введите слово для поиска">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<div id="resSearch"></div>
';
echo '
</div> </nav>
<div id="page-wrapper">
<div class="row">';
// Реклама для широких экранов
echo '<div class="ads_heads col-md-12 col-sm-12 col-xs-12">';
if(isset($_GET['go'])){
core::$db->query("DELETE FROM `users_opovesh` WHERE `user_id`=? order by `time` desc LIMIT 1",array(core::$user['id']));
}
$r = core::$db->query("Select * from `users_opovesh` where `user_id`=? order by `time` desc LIMIT 1", array(core::$user['id']));
while ($a = $r -> fetch()) {
echo '<div class="alert alert-info alert-dismissable"><a href="?go" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</a><b>'.func::times($a['time']).'</b><br />'.func::text($a['msg']).'</div>';
}
// Ссылка 1 ------------------------------------------------------------------------
$reklama = core:: $db -> queryFetch("SELECT `link`,`link_name`,`bb`,`color` FROM `reklama` WHERE `payment`=? and `time_off`>=? and `v_n`=? and `web`=? and `ryad`=? LIMIT 1;", array(1,core::$realtime,1,2,1));
if(isset($reklama['link'])){
if ($reklama['color']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<span style = "color:#'.$reklama['color'].'">'.$reklama['link_name'].'</span>';
if ($reklama['bb']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<'.$reklama['bb'].'>'.$reklama['link_name'].'</'.$reklama['bb'].'>';
echo '<a class="ads_head col-md-6 col-sm-6 col-xs-12" target="_blank" href="'.$reklama['link'].'">'.$reklama['link_name'].'</a>';
} else echo '<a class="ads_head col-md-6 col-sm-6 col-xs-12" href="/ads/index.php?mesto=1-2-1">Место свободно</a>';
// ссылка 2 ------------------------------------------------------------------------
$reklama = core:: $db -> queryFetch("SELECT `link`,`link_name`,`bb`,`color` FROM `reklama` WHERE `payment`=? and `time_off`>=? and `v_n`=? and `web`=? and `ryad`=? LIMIT 1;", array(1,core::$realtime,1,2,2));
if(isset($reklama['link'])){
if ($reklama['color']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<span style = "color:#'.$reklama['color'].'">'.$reklama['link_name'].'</span>';
if ($reklama['bb']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<'.$reklama['bb'].'>'.$reklama['link_name'].'</'.$reklama['bb'].'>';
echo '<a class="ads_head col-md-6 col-sm-6 col-xs-12" target="_blank" href="'.$reklama['link'].'">'.$reklama['link_name'].'</a>';
} else echo '<a class="ads_head col-md-6 col-sm-6 col-xs-12" href="/ads/index.php?mesto=1-2-2">Место свободно</a>';
echo '</div>';
/*// реклама для мобильных телефонов
echo '<div class="col-md-12 col-sm-12 col-xs-12 visible-xs">';
// Ссылка 1 ------------------------------------------------------------------------
$reklama = core:: $db -> queryFetch("SELECT `link`,`link_name`,`bb`,`color` FROM `reklama` WHERE `time_off`>=? and `v_n`=? and `web`=? and `ryad`=? LIMIT 1;", array(core::$realtime,1,0,1));
if(isset($reklama['link'])){
if ($reklama['color']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<span style = "color:#'.$reklama['color'].'">'.$reklama['link_name'].'</span>';
if ($reklama['bb']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<'.$reklama['bb'].'>'.$reklama['link_name'].'</'.$reklama['bb'].'>';
echo '<a target="_blank" href="'.$reklama['link'].'">'.$reklama['link_name'].'</a>';
} else echo '<a class="ads_head col-xs-6" href="/ads/index.php?mesto=1-0-1">Место свободно</a>';
// ссылка 2 ------------------------------------------------------------------------
$reklama = core:: $db -> queryFetch("SELECT `link`,`link_name`,`bb`,`color` FROM `reklama` WHERE `time_off`>=? and `v_n`=? and `web`=? and `ryad`=? LIMIT 1;", array(core::$realtime,1,0,2));
if(isset($reklama['link'])){
if ($reklama['color']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<span style = "color:#'.$reklama['color'].'">'.$reklama['link_name'].'</span>';
if ($reklama['bb']=='') $reklama['link_name'] = ''.$reklama['link_name'].'';
else $reklama['link_name'] = '<'.$reklama['bb'].'>'.$reklama['link_name'].'</'.$reklama['bb'].'>';
echo '<a target="_blank" href="'.$reklama['link'].'">'.$reklama['link_name'].'</a>';
} else echo '<a class="ads_head col-xs-6" href="/ads/index.php?mesto=1-0-1">Место свободно</a>';
echo '</div> ';*/
?>