- echo '<div class="error"><p>'.
- _('The time limit of this file has expired.') . ' ' .
- _('File has been deleted.') .
- '</p></div>';
+ echo '<div id = "upload">' .
+ '<form action = "' . $_SERVER['REQUEST_URI'] . '" ' .
+ 'method = "post" id = "submit">'; ?>
+ <input type = "hidden" name = "jirafeau" value = "<?php echo JIRAFEAU_VERSION ?>"/><?php
+ echo '<fieldset>' .
+ '<legend>' . t('Password protection') .
+ '</legend><table><tr><td>' .
+ t('Give the password of this file') . ' : ' .
+ '<input type = "password" name = "key" />' .
+ '</td></tr>' .
+ '<tr><td>' .
+ t('By using our services, you accept of our'). ' <a href="' . $cfg['web_root'] . '/tos.php' . '">' . t('Term Of Service') . '</a>' .
+ '</td></tr>' .
+ '<tr><td>';
+ ?><input type="submit" id = "submit_download" value="<?php echo t('Download'); ?>"
+ onclick="document.getElementById('submit').action='<?php echo $_SERVER['REQUEST_URI'] ?>&bd=1';
+ document.getElementById('submit_download').submit ();"/><?php
+
+ if ($cfg['download_page'] && $cfg['preview'])
+ {
+ ?><input type="submit" id = "submit_preview" value="<?php echo t('Preview'); ?>"
+ onclick="document.getElementById('submit').action='<?php echo $_SERVER['REQUEST_URI'] ?>&bp=1';
+ document.getElementById('submit_preview').submit ();"/><?php
+ }
+ echo '</td></tr></table></fieldset></form></div>';