X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/ae8b0ce039e170167dafde722ca42b1008667cf9..e4bb712d9d36a6e4d0228c40df780e07317e719a:/f.php?ds=sidebyside diff --git a/f.php b/f.php index 953d20e..0797c40 100644 --- a/f.php +++ b/f.php @@ -125,7 +125,7 @@ if (!empty ($link['key'])) '
'; ?> + 'method = "post" id = "submit_post">'; ?> ' . '' . t('Password protection') . @@ -138,7 +138,7 @@ if (!empty ($link['key'])) '' . ''; ?>'; ?> + 'method = "post" id = "submit_post">'; ?> ' . $link['file_name'] . '' . ''; echo '
' . @@ -192,24 +192,24 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev '
' . t('By using our services, you accept our'). ' ' . t('Term Of Service') . ''; ?>
'; @@ -220,8 +220,9 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev header ('HTTP/1.0 200 OK'); header ('Content-Length: ' . $link['file_size']); if (!jirafeau_is_viewable ($link['mime_type']) || !$cfg['preview'] || $do_download) - header ('Content-Disposition: attachment; filename="' . - $link['file_name'] . '"'); + header ('Content-Disposition: attachment; filename="' . $link['file_name'] . '"'); +else + header ('Content-Disposition: filename="' . $link['file_name'] . '"'); header ('Content-Type: ' . $link['mime_type']); /* Read encrypted file. */