Файл: RootPanel 1.7.0 FreeCode/RootPanel 1.7.0 FreeCode/_rootadmin/_showimage.inc.php
Строк: 30
<?
if ($file) {
if (checkAdminAccess('showPassportAllow')) {
$filefull=$full_home_path."/_rootfiles/".$file;
if (@file_exists($filefull)) {
header ("Content-Type: image/jpeg");
header ("Accept-Ranges: bytes");
header ("Content-Length: ".filesize($filefull));
header ("Content-Disposition: filename=".$file);
$handle=fopen($filefull,r);
$contents = fread($handle, filesize($filefull));
fclose($handle);
print $contents;
} else {
print "File $filefull not found.";
}
} else {
print "<center><font color=red>Access denied!</font></center>";
}
}
?>