From f708ec8f896846e8fe7e33bd3d5012f52b4b54f5 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Mon, 14 Jan 2013 10:23:22 +0000 Subject: [PATCH] small verification --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2b6e889..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']) -- 2.34.1