$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'])
<input type = "submit" id='send' value ="<?php echo t('Send'); ?>"
onclick="
document.getElementById('send').value='<?php echo t ('Uploading ...'); ?>';
+ document.getElementById('send').submit ();
document.getElementById('send').disabled='true';
"/>
</p><hr /><div id = "moreoptions"> <p><label><input type =