X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/47405a7fcc40dcb517753c22430997fe5bfc4212..92660e5c44d25cee93a7a9f531eb30f4ae9c061d:/f.php diff --git a/f.php b/f.php index a1f084a..fbf466a 100644 --- a/f.php +++ b/f.php @@ -125,7 +125,7 @@ if (!empty ($link['key'])) '
'; ?> + 'method = "post" id = "submit_post">'; ?> ' . '' . t('Password protection') . @@ -134,11 +134,11 @@ if (!empty ($link['key'])) '' . '' . '' . - t('By using our services, you accept of our'). ' ' . t('Term Of Service') . '' . + t('By using our services, you accept our'). ' ' . t('Term Of Service') . '' . '' . ''; ?>

' . t('Access denied') . '

'; @@ -183,33 +182,33 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev ''; ?> + 'method = "post" id = "submit_post">'; ?> ' . $link['file_name'] . '' . '' . ''; echo '
' . t('You are about to download') . ' "' . $link['file_name'] . '" (' . jirafeau_human_size($link['file_size']) . ')' . '
' . - t('By using our services, you accept of our'). ' ' . t('Term Of Service') . ''; + t('By using our services, you accept our'). ' ' . t('Term Of Service') . ''; ?>
'; @@ -220,8 +219,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. */