X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/a9ab012f12e417222a082bbb80515c781601e7a2..f55334d19ee35f6a163f574a54546449f7d44ca0:/script.php?ds=sidebyside diff --git a/script.php b/script.php index 791e950..3f7d2f7 100644 --- a/script.php +++ b/script.php @@ -1,7 +1,7 @@ + * 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 @@ -32,8 +32,6 @@ require(JIRAFEAU_ROOT . 'lib/lang.php'); * Be sure PHP's safe mode is off. */ @set_time_limit(0); -/* Remove errors. */ -@error_reporting(0); if ($_SERVER['REQUEST_METHOD'] == "GET" && count($_GET) == 0) { require(JIRAFEAU_ROOT . 'lib/template/header.php'); @@ -198,7 +196,6 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) $r = fopen(VAR_FILES . $p . $link['hash'], 'r'); while (!feof($r)) { print fread($r, 1024); - ob_flush(); } fclose($r); @@ -301,7 +298,7 @@ if [ -n "$one_time" ]; then options="$options -F one_time_download=1" fi -f [ -n "$upload_password" ]; then +if [ -n "$upload_password" ]; then options="$options -F upload_password=$upload_password" fi