Cita:
Iniciado por Cluster Si estás usando una aplicación de un tercero .. sería bueno contactarte con el (como para hacerle mención de tu sugerencia para que te ayude).
De todas formas .. en líneas generales .. ,
hola, como tu dices se encuentra esa linea:
Código PHP:
// handle download requests
if ($_GET["download"]!="") {
$download = stripslashes($_GET["download"]);
$filename = safeDirectory($path.rawurldecode($download));
if (
!file_exists($filename)
OR fileIsHidden($filename)
OR (substr(strtolower($filename), -4)==".php" AND !$allowPHPDownloads)) {
Header("HTTP/1.0 404 Not Found");
$displayError[] = sprintf(translate("File not found: %s"), $filename);
} else {
//doConditionalGet($filename, filemtime($filename));
Header("Content-Length: ".filesize($filename));
Header("Content-Type: application/x-download");
Header("Content-Disposition: attachment; filename=\"".rawurlencode($download)."\"");
readfile($filename);
die();
}
}
Pero de que manera le puedo cambiar la extencion alli?