From: Jerome Jutteau Date: Tue, 10 Mar 2015 20:25:21 +0000 (+0100) Subject: refactor some url parameters when downloading X-Git-Tag: 1.1~159 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/53819d60b11d4393b0871c93c4b4cdaa027346e4?hp=eb4db3d3c22d55dd4cefd8bccdb20367ab1da936 refactor some url parameters when downloading --- 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'])) ?>