X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/045f02b53953998c9cb0cff34f7f62664bdd66cd..92660e5c44d25cee93a7a9f531eb30f4ae9c061d:/f.php diff --git a/f.php b/f.php index a5c6228..fbf466a 100644 --- a/f.php +++ b/f.php @@ -58,7 +58,7 @@ if (count ($link) == 0) } $delete_code = ''; -if (isset ($_GET['d']) && !empty ($_GET['d'])) +if (isset ($_GET['d']) && !empty ($_GET['d']) && $_GET['d'] != '1') $delete_code = $_GET['d']; $crypt_key = ''; @@ -66,7 +66,7 @@ if (isset ($_GET['k']) && !empty ($_GET['k'])) $crypt_key = $_GET['k']; $do_download = false; -if (isset ($_GET['d']) && !empty ($_GET['d'])) +if (isset ($_GET['d']) && $_GET['d'] == '1') $do_download = true; $do_preview = false; @@ -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. */