X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/8d85f9772ae53ce6a1902a967205f8ff1a290795..bd23d65292b6eda5c00e85ddce27235b5529a565:/script.php?ds=sidebyside diff --git a/script.php b/script.php index 9bf9578..a6b9457 100755 --- a/script.php +++ b/script.php @@ -250,6 +250,13 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) /* Lets use interface now. */ header('Content-Type: text; charset=utf-8'); +check_errors (); +if (has_error ()) +{ + echo "Error"; + exit; +} + /* Upload file */ if (isset ($_FILES['file']) && is_writable (VAR_FILES) && is_writable (VAR_LINKS))