X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/0d312b3c20fc8d17a4808442c49b72a499d0dc76..5d7c0d3ce08074fff55e7731490fe786cd6101e6:/script.php?ds=inline diff --git a/script.php b/script.php index aa04a6f..13a88b8 100644 --- a/script.php +++ b/script.php @@ -179,8 +179,8 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) echo 'Error 10'; exit; } - $p = s2p($link['md5']); - if (!file_exists(VAR_FILES . $p . $link['md5'])) { + $p = s2p($link['hash']); + if (!file_exists(VAR_FILES . $p . $link['hash'])) { echo 'Error 11'; exit; } @@ -191,7 +191,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) header('Content-Disposition: attachment; filename="' . $link['file_name'] . '"'); - $r = fopen(VAR_FILES . $p . $link['md5'], 'r'); + $r = fopen(VAR_FILES . $p . $link['hash'], 'r'); while (!feof($r)) { print fread($r, 1024); ob_flush();