File size: 708B
<?php
// mod by Golem http://veplog.ru
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
if(isset($_GET['uz'])) {$uz = check($_GET['uz']); } else {$uz = "";}
if (preg_match('|^[a-z0-9\-]+$|i',$uz)){
if(file_exists(BASEDIR."local/dataavators/$uz.gif")){
$filename = BASEDIR."local/dataavators/$uz.gif";
} else {
$filename = BASEDIR."images/avators/noavatar.gif";
}
$filename = file_get_contents($filename);
header('Content-Disposition: inline; filename="'.$uz.'.gif"');
header("Content-type: image/gif");
header("Content-Length: ".strlen($filename));
echo $filename;
}
exit;
?>