X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/3d9792a36b5bb18d24216eea4b0ad402358db997..53819d60b11d4393b0871c93c4b4cdaa027346e4:/f.php?ds=inline diff --git a/f.php b/f.php index 2a5a6da..e57c18f 100644 --- a/f.php +++ b/f.php @@ -2,7 +2,7 @@ /* * Jirafeau, your web file repository * Copyright (C) 2008 Julien "axolotl" BERNARD - * Copyright (C) 2012 Jerome Jutteau + * Copyright (C) 2015 Jerome Jutteau * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -33,7 +33,9 @@ if (!isset ($_GET['h']) || empty ($_GET['h'])) /* Operations may take a long time. * Be sure PHP's safe mode is off. */ -set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); $link_name = $_GET['h']; @@ -63,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'])) @@ -138,7 +140,7 @@ if (!empty ($link['key'])) ?>