X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/53517d3b939f85007001beb3a01a32b032a9070b..136a8fd4cae166774c4551b8277c91bc8e0a5e24:/index.php diff --git a/index.php b/index.php index 62588aa..2b6e889 100644 --- a/index.php +++ b/index.php @@ -64,7 +64,7 @@ if ($writable && isset ($_POST['jirafeau'])) $res = jirafeau_upload ($_FILES['file'], isset ($_POST['one_time_download']), - $key, $time, $cfg, $_SERVER['REMOTE_ADDR']); + $key, $time, $_SERVER['REMOTE_ADDR']); } require (JIRAFEAU_ROOT . 'lib/template/header.php'); @@ -138,12 +138,16 @@ if (!has_error () && $writable) <legend><?php echo t('Upload a file'); ?></legend> <p><input type = "file" name = "file" size = "30" /></p> <p class = - "config"><?php printf ('%s: %dMB', t('Maximum file size'), - jirafeau_get_max_upload_size () / (1024 * - 1024)); - ?></p> <p><input type = "submit" value = - "<?php echo t('Send'); ?>" /></p> - <hr /><div id = "moreoptions"> <p><label><input type = + "config"><?php printf ('%s: %s', t('Maximum file size'), + jirafeau_get_max_upload_size ()); + ?></p><p> + <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 = "checkbox" name = "one_time_download" /><?php echo t('One time download'); ?></label></p><br/><p><label for = "input_key"