mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Pulsante di download per i file
Aggiunto pulsante di download per i file, con scaricamento del contenuto con il nome originale.
This commit is contained in:
@@ -227,6 +227,10 @@ if (!function_exists('force_download')) {
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
|
||||
if ($content) {
|
||||
if (is_file($content)) {
|
||||
$content = file_get_contents($content);
|
||||
}
|
||||
|
||||
header('Content-Length: '.strlen($content));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user