Файл: _gladiators2_/gladiators2/gladiators/gladiators/secure_image.php
Строк: 11
<?
/* This file decoded and nulled by NukLeoN [AnTiSh@Re] */
$root = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];
$path = '';
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header ('Last-Modified: ' . gmdate ('D, d M Y H:i:s') . 'GMT');
header ('Cache-control: no-cache, must-revalidate');
header ('Pragma: no-cache');
header ('Content-type: image/gif');
if (!(preg_match ('/^[-a-zA-Z0-9_]+$/', $_GET['image'])))
{
$_GET['image'] = '';
}
switch ($_GET['path'])
{
case 'upload':
{
$path = $root . '/database/img_tmp/' . $_GET['image'] . '.gif';
}
}
if (file_exists ($path))
{
$fp = @fopen ($path, 'r');
while (!(@feof ($fp)))
{
echo @fgets ($fp, 1024);
}
@fclose ($fp);
}
?>