Файл: _rootadmin/_getfile.inc.php
Строк: 28
<?
if ($file and $realname) {
$realname = preg_replace("/ /ui","%20",$realname);
$filefull=$full_home_path."/_rootfiles/".$file;
if (@file_exists($filefull)) {
header ("Content-Type: octet/stream");
header ("Accept-Ranges: bytes");
header ("Content-Length: ".filesize($filefull));
header ("Content-Disposition: filename=".$realname);
$handle=fopen($filefull,r);
$contents = fread($handle, filesize($filefull));
fclose($handle);
print $contents;
} else {
print "File $filefull not found.";
}
}
?>