500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "The file " . htmlspecialchars(basename($_FILES["fileToUpload"]["name"])) . " has been uploaded."; header("Location: https://slovania.adlerka.top/index.php?dano"); } else { echo "Sorry, there was an error uploading your file."; } } } else { $skeleton = file_get_contents('templates/skeleton.html'); $menu_obsah = file_get_contents('templates/header.html'); $footer_obsah = file_get_contents('templates/footer.html'); $out = str_replace('__TEMPLATE_FOOTER__', $footer_obsah, $out); $nazov_stranky = basename($_SERVER['QUERY_STRING']); if (empty($nazov_stranky)) { $nazov_stranky = 'index'; } if (!empty($_GET["listfiles"])) { $files = scandir($target_dir); $out = "