Файл: wapxl.ru/shaxty/head.php
Строк: 518
<?php
if($_REQUEST['trololo']=='trololo'){
// Закрываем обработку php
?>
<script type="text/javascript"><!--
document.write("<a href='//wapxl.ru/stat/wapxl.ru' "+
"target=_blank><img src='//count.wapxl.ru/c.php?img=Ni0xLTE="+"&ref="+escape(document.referrer)+
"&s="+screen.width+"*"+screen.height+"&u="+escape(document.URL)+
"&h="+escape(document.title.substring(0,80))+
";"+Math.random()+
"' alt='wapXL.ru' title='Статистика посещаемости сайта'"+
"border='0'></a>")
//--></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter35822510 = new Ya.Metrika({
id:35822510,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/35822510" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<?php // Открываем обработку php
ob_end_flush();
exit;
}
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.'">
<meta name="google-site-verification" content="ZZsPoMzO1c8yayaTvXIXji3sRpmquyqxgwQhkAOtzJ0" />
<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>
<script type="text/javascript" src="//vk.com/js/api/openapi.js?122"></script>
<script type="text/javascript">
VK.init({apiId: 5511888, onlyWidgets: true});
</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>
<script type="text/javascript">(function(){var f=false,b=document,c=b.documentElement,e=window;function g(){var a="";a+="rt="+(new Date).getTime()%1E7*100+Math.round(Math.random()*99);a+=b.referrer?"&r="+escape(b.referrer):"";return a}function h(){var a=b.getElementsByTagName("head")[0];if(a)return a;for(a=c.firstChild;a&&a.nodeName.toLowerCase()=="#text";)a=a.nextSibling;if(a&&a.nodeName.toLowerCase()!="#text")return a;a=b.createElement("head");c.appendChild(a);return a}function i(){var a=b.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","http"+("https:"==e.location.protocol?"s":"")+"://c.luxup.ru/t/lb203663_1.js?"+g());typeof a!="undefined"&&h().appendChild(a)}function d(){if(!f){f=true;i()}};if(b.addEventListener)b.addEventListener("DOMContentLoaded",d,false);else if(b.attachEvent){c.doScroll&&e==e.top&&function(){try{c.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}d()}();b.attachEvent("onreadystatechange",function(){b.readyState==="complete"&&d()})}else e.onload=d})();</script>
<div id="lx_591307"></div>
<?
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 hidden-sm hidden-md hidden-lg">
<li class="divider"></li>
<li class="menuid70"><a href="/in.php"><i class="glyphicon glyphicon-log-in"></i> Авторизация</a></li>
<li class="menuid70"><a href="/reg.php"><i class="glyphicon glyphicon-pencil"></i> Регистрация</a></li>
</ul>
';
}else{
echo ' <ul class="nav navbar-nav hidden-sm hidden-md hidden-lg">
<li class="divider"></li>
<li class="menuid70"><a href="/my.php"><i class="fa fa-paperclip fa-fw"></i> Мои сайты</a></li>
<li class="menuid70"><a href="/profile.php"><i class="fa fa-user fa-fw"></i> Профиль</a>
</li>';
if(core::$user['level']==9) echo ' <li class="menuid70"><a href="/admin/"><i class="fa fa-star fa-fw"></i> Админка</a></li> ';
echo ' <li class="divider"></li>
<li class="menuid70"><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']));
}
echo '<div id="opovesh"></div>';
function reklama_rand($str)
{
$str=eregi_replace("((<br( ?/?)>)|n|r)+","rn", $str);
$record=split("rn", $str);
$num=count($record);
if($num>1) $i0 = rand(0,($num-1));
else $i0 = 0;
for ($i=$i0;$i<$num;$i++){
return $record[$i];
}
}
// Ссылка 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'])){
$reklama['link_name'] = reklama_rand($reklama['link_name']);
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));
$reklama['link_name'] = reklama_rand($reklama['link_name']);
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> ';*/
?>