From 53819d60b11d4393b0871c93c4b4cdaa027346e4 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Tue, 10 Mar 2015 21:25:21 +0100 Subject: [PATCH 1/1] refactor some url parameters when downloading --- f.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/f.php b/f.php index fd8b89f..e57c18f 100644 --- a/f.php +++ b/f.php @@ -65,13 +65,13 @@ $crypt_key = ''; if (isset ($_GET['k']) && !empty ($_GET['k'])) $crypt_key = $_GET['k']; -$button_download = false; -if (isset ($_GET['bd']) && !empty ($_GET['bd'])) - $button_download = true; +$do_download = false; +if (isset ($_GET['d']) && !empty ($_GET['d'])) + $do_download = true; -$button_preview = false; -if (isset ($_GET['bp']) && !empty ($_GET['bp'])) - $button_preview = true; +$do_preview = false; +if (isset ($_GET['p']) && !empty ($_GET['p'])) + $do_preview = true; $p = s2p ($link['md5']); if (!file_exists (VAR_FILES . $p . $link['md5'])) @@ -140,7 +140,7 @@ if (!empty ($link['key'])) ?>