Просмотр файла ICQPhoto/photo.php

Размер файла: 11.29Kb
<?php
/*
ICQ Photo v1.0.0
Автор: Савельев Игорь Юрьевич aka Magistr
Сайт: http://fun-icq.wen.ru
ICQ: 237352
E-mail: [email protected]
*/
//==================================================//
error_reporting(0);
//==================================================//
$err = '/9j/4QCwRXhpZgAASUkqAAgAAAAFABIBAwABAAAAAQAAADEBAgAcAAAASgAAADIBAgAUAAAAZgAAABMCAwABAAAAAQAAAGmHBAABAAAAegAAAAAAAABBQ0QgU3lzdGVtcyBEaWdpdGFsIEltYWdpbmcAMjAwOTowMTowMiAxMTozNjozNgADAJCSAgAEAAAANjA5AAKgBAABAAAAaQAAAAOgBAABAAAAggAAAAAAAAAAAAAA/8AAEQgAggBpAwEhAAIRAQMRAf/bAIQAAgEBAQEBAgEBAQICAgIDBQMDAgIDBgQEAwUHBgcHBwYHBggJCwkICAoIBgcKDQoKCwwMDQwHCQ4PDgwPCwwMDAEDAwMEAwQIBAQIEgwKDBISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhIS/8QAeQABAAEFAQEBAAAAAAAAAAAAAAcEBQYICQMCChAAAAUEAQMDAQQFDQAAAAAAAAECAwQFBgcIEQkSExQhIjEKFTJBFhcjM7QYNDg5OlJVdniGlrPUAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwD8/wCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACopVKqddqcaiUSmvzJsx1LEeJFbNx19xRklKEILk1KMzIiIvczMTxH6VnUXlocai6c3y5UGo5y1W+iAo6uTRF3Gr7u/nPBJ9/3f09/p7gIFqVNqNHqL9Iq8B6LLiuKZeiyUGhxlaTMlIUk/clEZGRkfuRkPEAAAABneFtXdmdkZMiFrtrrfV/PRT4fasugy6opk+OfkTDazL29/cVWdtQ9ptXIdImb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Bz1TtHKrUzTtdBrDzEv6E494BkuNTLThSvIx6dIwcWog8ytvYwBZPXHrHkAIEAZzco+A/+pg9h+YaHMy4U43OIDbFYEwhLNSbDiR0VnBEbspbkjV1N/wBvfQCTgtubGAvtwHcBvCqpqSv3im1wpaWklLv/AEvSJkIGOuHXupPcIx846NXJ4lPAvo3YctZVnXtSJWQpjIYYkpPlSG0jYAJ7QFDOLbxLdBdS35iXtyrPzOScLbQeX7xRzULUO27nn1zUg/kKJIChgwDAuBpp3/O1jPtCI6c436QGECAECANByrGcEmFiiSzTqsLIgHFbVCoTk0+1VpdBbWByKV6HeFmS0ykJiUE5S6spl1O4IOYAyT07qFRpb07VrrmvhCuRlLhAOM9cQjzun1NlLekZ+VeS5NzakhRcOSnIz+20A8dd7JtGwrHoVLoLCVTi2UuvzR/O4ojfPt7RDI5y6VJ2J6wB828lUqElW567wlLznBMB5AgBAgDcEKHNvCjTZosuAdIBxSU9LuNpS6fWHBRZ+nNJXLvvuJQenKoiAOQ9TBIllNSmEArOUebsRntBNDknS841IyTqmVuI5VLBPIAoH/aAWNQpCeuZ5Ds0kllpIQjmPoIj+4KExTWuZKQD7QDZm3CVcnaNYmA8gQAgQB3wrHY4gxhfKoBf3zAOegmnPMoQ68BvEjWVZ1rVnAn5xCM/qVATLY2kugEkw29cNSbJO5JcH8RvaiagcO9kUdUpbDbLriRgYAP7wFebo1SkqvNuPtKShs7hKemIYN0XSioLKGVZHtANxa89/vGEAIEAIEAYpYJACth0j1SwFfCvr2MBkJh5vdC/sY2Je4qvKgeTUHBjsowB5vO5SMGqu47c0as3VZ6byZmcWsn0JMAQZlwp5S4QILUok5gPMnGMwIAQIAQIDJX+8YwAj0flMB5AgBAgBAgBAgBAgP/Z';
clearstatcache();
session_start();
if ((!isset ($_GET['code'])) or (!isset ($_GET['icq']))) {
	$data = base64_decode($err);
	$im = imagecreatefromstring($data);
	header("Content-Type: image/jpeg");
	imagejpeg($im);
	imagedestroy($im);
	unset($_SESSION['SESSION']);
	session_destroy();
} else {
	$code = trim(stripslashes(htmlspecialchars($_GET['code'])));
	$icq = trim(stripslashes(htmlspecialchars($_GET['icq'])));
	if ((!session_is_registered('SESSION')) or (!session_is_registered('UIN')) or ($code !== $_SESSION['SESSION']) or ($icq !== $_SESSION['UIN'])) {
		header ("Content-Type: text/html; charset=utf-8");
		echo
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ICQ-фото</title>
<meta name="Keywords" content="ICQ-фото">
<meta name="Description" content="ICQ-фото">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" media="handheld, screen, all" href="/style.css">
</head>
<body>
<h3 align="center" class="head">ICQ-ФОТО</h3>
<span style="color:#fff">Извините, ошибка проверки кода безопасности. Пожалуйста, вернитесь <a href="index.php" class="menu">назад</a> и повторите ещё раз.</span><br>
<br>
</p>
<p align="center">
<br>
<a href="http://bans.ru/12176.go"><img src="http://bans.ru/12176.img" alt="Нажми сюда! Click here!"></a><br>
<br>
</p>
<p>
<a href="http://fun-icq.wen.ru" class="menu">На главную</a><br>
<br>
</p>
<p class="author">© 2008 <a href="http://fun-icq.wen.ru" id="fun">FUN-ICQ</a>.WEN.RU</p>
<p align="center">
<br>
<img src="http://c.wen.ru/698703.wbmp?icq_photo" alt="Статистика">
</p>
</body>
</html>';
		unset($_SESSION['SESSION']);
		session_destroy();
	} elseif (($icq == "") or (!preg_match ('/^[1-9]\d{0,8}$/', $icq))) {
		$data = base64_decode($err);
		$im = imagecreatefromstring($data);
		header("Content-Type: image/jpeg");
		imagejpeg($im);
		imagedestroy($im);
		unset($_SESSION['SESSION']);
		session_destroy();
	} elseif ($icq == "237352") {
		$data = base64_decode($icq_admin);
		$im = imagecreatefromstring($data);
		header("Content-Type: image/jpeg");
		imagejpeg($im);
		imagedestroy($im);
	} else {
			$file = fopen("http://c.icq.com/people/img/show_photo.phpc?uin=".$icq,"rb");
		if ($file) {
			$headers = get_headers("http://c.icq.com/people/img/show_photo.phpc?uin=".$icq, 1);
			header("Content-Type: ".$headers["Content-Type"]);
			fpassthru($file);
			fclose($file);
		} else {
			$data = base64_decode($err);
			$im = imagecreatefromstring($data);
			header("Content-Type: image/jpeg");
			imagejpeg($im);
			imagedestroy($im);
		};
	};
};
?>