X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/f9f84c1e4389dc23e77b51dadd53410377128cfc..e788e47fbd5f963e03de3b7eba41580f1f00dd0f:/index.php?ds=sidebyside diff --git a/index.php b/index.php index ae25e7b..9fb43aa 100644 --- a/index.php +++ b/index.php @@ -35,9 +35,13 @@ if (file_exists (JIRAFEAU_ROOT . 'install.php') $writable = is_writable (VAR_FILES) && is_writable (VAR_LINKS); $res = array (); -if ($writable && isset ($_POST['jirafeau'])) +if ($writable && isset ($_POST['jirafeau']) && isset ($_FILES['file']) + && isset ($_POST['time'])) { - $key = $_POST['key']; + if (!isset ($_POST['key'])) + $key = ''; + else + $key = $_POST['key']; $time = time (); switch ($_POST['time']) @@ -144,6 +148,7 @@ if (!has_error () && $writable)