if(isset($_GET['md5'])) {
die(md5($_GET['md5']));
}
header('Content-Type: text/html; charset=cp1251');
include_once('_incl_data/__config.php');
$c['inf'] = true;
define('GAME',true);
include_once('_incl_data/class/__db_connect.php');
include_once('_incl_data/class/__user.php');
define('LOWERCASE',3);
define('UPPERCASE',1);
$uplogin = explode('&',$_SERVER['QUERY_STRING']);
$uplogin = $uplogin[0];
$uplogin = preg_replace('/%20/'," ",$uplogin);
function utf8_win($s) {
$s=str_replace("%D0%B0","а",$s); $s=str_replace("%D0%90","А",$s);
$s=str_replace("%D0%B1","б",$s); $s=str_replace("%D0%91","Б",$s);
$s=str_replace("%D0%B2","в",$s); $s=str_replace("%D0%92","В",$s);
$s=str_replace("%D0%B3","г",$s); $s=str_replace("%D0%93","Г",$s);
$s=str_replace("%D0%B4","д",$s); $s=str_replace("%D0%94","Д",$s);
$s=str_replace("%D0%B5","е",$s); $s=str_replace("%D0%95","Е",$s);
$s=str_replace("%D1%91","ё",$s); $s=str_replace("%D0%81","Ё",$s);
$s=str_replace("%D0%B6","ж",$s); $s=str_replace("%D0%96","Ж",$s);
$s=str_replace("%D0%B7","з",$s); $s=str_replace("%D0%97","З",$s);
$s=str_replace("%D0%B8","и",$s); $s=str_replace("%D0%98","И",$s);
$s=str_replace("%D0%B9","й",$s); $s=str_replace("%D0%99","Й",$s);
$s=str_replace("%D0%BA","к",$s); $s=str_replace("%D0%9A","К",$s);
$s=str_replace("%D0%BB","л",$s); $s=str_replace("%D0%9B","Л",$s);
$s=str_replace("%D0%BC","м",$s); $s=str_replace("%D0%9C","М",$s);
$s=str_replace("%D0%BD","н",$s); $s=str_replace("%D0%9D","Н",$s);
$s=str_replace("%D0%BE","о",$s); $s=str_replace("%D0%9E","О",$s);
$s=str_replace("%D0%BF","п",$s); $s=str_replace("%D0%9F","П",$s);
$s=str_replace("%D1%80","р",$s); $s=str_replace("%D0%A0","Р",$s);
$s=str_replace("%D1%81","с",$s); $s=str_replace("%D0%A1","С",$s);
$s=str_replace("%D1%82","т",$s); $s=str_replace("%D0%A2","Т",$s);
$s=str_replace("%D1%83","у",$s); $s=str_replace("%D0%A3","У",$s);
$s=str_replace("%D1%84","ф",$s); $s=str_replace("%D0%A4","Ф",$s);
$s=str_replace("%D1%85","х",$s); $s=str_replace("%D0%A5","Х",$s);
$s=str_replace("%D1%86","ц",$s); $s=str_replace("%D0%A6","Ц",$s);
$s=str_replace("%D1%87","ч",$s); $s=str_replace("%D0%A7","Ч",$s);
$s=str_replace("%D1%88","ш",$s); $s=str_replace("%D0%A8","Ш",$s);
$s=str_replace("%D1%89","щ",$s); $s=str_replace("%D0%A9","Щ",$s);
$s=str_replace("%D1%8A","ъ",$s); $s=str_replace("%D0%AA","Ъ",$s);
$s=str_replace("%D1%8B","ы",$s); $s=str_replace("%D0%AB","Ы",$s);
$s=str_replace("%D1%8C","ь",$s); $s=str_replace("%D0%AC","Ь",$s);
$s=str_replace("%D1%8D","э",$s); $s=str_replace("%D0%AD","Э",$s);
$s=str_replace("%D1%8E","ю",$s); $s=str_replace("%D0%AE","Ю",$s);
$s=str_replace("%D1%8F","я",$s); $s=str_replace("%D0%AF","Я",$s);
return $s;
}
$uplogin = utf8_win($uplogin);
if(!isset($_GET['id']))
{
$_GET['id'] = 0;
}
if(!isset($_GET['login']))
{
$_GET['login'] = NULL;
}
if(!isset($upLogin)){ $upLogin = ''; }
$utf8Login = '';
$utf8Login2 = '';
$utf8Login = iconv("UTF-8", "windows-1251",$uplogin);
$utf8Login2 = iconv("UTF-8", "windows-1251",$_GET['login']);
if($uplogin == 'delete' || $utf8Login == 'delete' || $utf8Login2 == 'delete') {
}else{
$inf = mysql_fetch_array(mysql_query('SELECT `u`.*,`st`.* FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id`=`st`.`id`) WHERE ((`u`.`login`="'.mysql_real_escape_string($_GET['login']).'" OR `u`.`login`="'.mysql_real_escape_string($utf8Login2).'" OR `u`.`login`="'.mysql_real_escape_string($utf8Login).'" OR `u`.`login`="'.mysql_real_escape_string($uplogin).'") ) LIMIT 1'));
if(!isset($inf['id'])) {
$inf = mysql_fetch_array(mysql_query('SELECT `u`.*,`st`.* FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id`=`st`.`id`) WHERE (`u`.`id`="'.mysql_real_escape_string($_GET['id']).'" OR `u`.`id`="'.mysql_real_escape_string($uplogin).'") LIMIT 1'));
}
if($inf['login'] == 'delete' || $inf['login'] == 'DELETE') {
unset($inf);
}else{
if( $inf['info_delete'] > 1 && $inf['info_delete'] < time() ) {
$inf['info_delete'] = 0;
mysql_query('UPDATE `users` SET `info_delete` = 0 WHERE `id` = "'.$inf['id'].'" LIMIT 1');
}
}
}
/*if( $inf['id'] == 1000000 && $u->info['id'] != 1000000 ) {
die('