This commit is contained in:
Dávid Jančár 2024-05-29 12:30:50 +02:00
parent b3c4a3fc6c
commit dd299ee528

@ -1,7 +1,7 @@
<?php <?php
$target_dir = "uploads/"; $target_dir = "uploads/";
if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"]) && $_POST["heslo"] = "davidjesuperfakt") { if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"]) && sha1($_POST["heslo"]) === "5cfce6e9a82aa4cd75657d76ce21111624f20f3f") {
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1; $uploadOk = 1;