Вход Регистрация
Файл: wot_kpd.php
Строк: 53
<?
define
('ROOT','./');
define('GCMS',true);
require_once (
ROOT.'system/power.php');
$diz -> head('Информация об игроке');
$diz -> title('Информация об игроке');

if(
$aut){
function 
curl_get($url){
$curl curl_init(); 
curl_setopt($curlCURLOPT_URL$url); 
curl_setopt($curl,CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10'); 
curl_setopt($curlCURLOPT_RETURNTRANSFER,1); 
curl_setopt($curlCURLOPT_FOLLOWLOCATION1);
curl_setopt($curlCURLOPT_REFERER'http://wot-game.com');
curl_setopt($curlCURLOPT_TIMEOUT3); 
$cnt curl_exec($curl); 
$cnticonv('CP1251''UTF-8'$cnt); 
curl_close($curl); 
return 
$cnt//)))
}
if (empty(
$_POST['login'])) {
?>
<html>
<div class="fon">
<form action="?" method="post">
Введите ник<br/>
<input type="text" name="login" maxlength="24"/><br />
<input type="submit" value="Проверить"/></form>
</div>
</html>
<?
}else{
$login=shit($_POST['login']);
$file=curl_get('http://wotomatic.net/?search='.$login.'#'.$_SERVER['QUERY_STRING']);
/////
$file=str_replace('<?xml version="1.0" encoding="Windows-1251"?>'''$file);
$file=preg_replace('|<!DOCTYPE(.*?)>|is''',$file);
$file=preg_replace('|<html(.*?)>|is''',$file);
$file=preg_replace('|<head>(.*?)</head>|is''',$file);
$file=preg_replace('|<form(.*?)</form>|is''',$file);
$file=preg_replace('|<a id="showh"(.*?)Дата регистрации|is''<table border="0" cellpadding="1" cellspacing="0" class="main">
<tr class="noHover"><td colspan="4">Дата регистрации'
,$file);
$file=preg_replace('|<tbody(.*?)>|is''',$file);
$file=preg_replace('|</tbody>|is''',$file);
$file=preg_replace('|<ul class="aLabel"(.*?)</ul>|is''',$file);
$file=preg_replace('|<br /><br /><br /><br />(.*?)</noscript>|is''',$file);
$file=preg_replace('|<div(.*?)>|is''',$file);
$file=preg_replace('|</div>|is''',$file);
$file=preg_replace('|<span id="VehiclesTitle">(.*?)<tr class="noHover"><td colspan="4"><br /><b class="sectionHdr">Предпочтения по уровням боёв</b> – бои, победы</td></tr>|is''',$file);
$file=preg_replace('|<tr class="noHover"><td colspan="4"><br /><span class="plus">(.*?)<b class="sectionHdr">Доступные выборки:</b>(.*?)</table></td></tr>|is''',$file);
$file=preg_replace('|<a(.*?)>|is''',$file);
$file=preg_replace('|</a>|is''',$file);
$file=preg_replace('|<span class="plus">+(.*?)Показать:</b>|is''',$file);
$file=preg_replace('|<span class="plus">+(.*?)Фильтр:</b>|is''',$file);
$file=preg_replace('|<script(.*?)</noscript>|is''',$file);
/////
echo '<div class="fon">Игрок: <b>'.$login.'</b><br/>'.$file.'</div>';
echo 
'<div class="levo"><a href="?" class="levo_tuch">'.$diz -> img('back.png').' Назад</a></div>';
}
echo 
'<div class="levo"><a href="'.ROOT.'" class="levo_tuch">'.$diz -> img('home.png').' На главную</a></div>';
}else 
header('Location: '.ROOT.'aut.php'); 
$diz -> out($msg);
?>
Онлайн: 1
Реклама