+ if (isset($_POST['do_delete'])) {
+ jirafeau_delete_link($link_name);
+ echo '<div class="message"><p>'.t('FILE_DELETED').
+ '</p></div>';
+ } else { ?>
+ <div>
+ <form action="f.php" method="post" id="submit_delete_post" class="form login">
+ <input type="hidden" name="do_delete" value=1/>
+ <fieldset>
+ <legend> <?php echo t('CONFIRM_DEL') ?> </legend>
+ <table>
+ <tr><td>
+ <?php echo t('GONNA_DEL') . ' "' . htmlspecialchars($link['file_name']) . '" (' . jirafeau_human_size($link['file_size']) . ').' ?>
+ </td></tr>
+ <tr><td>
+ <?php echo t('USING_SERIVCE'). ' <a href="tos.php">' . t('TOS') . '</a>.' ?>
+ </td></tr>
+ <tr><td>
+ <input type="submit" id="submit_delete" value="<?php echo t('DELETE'); ?>"
+ onclick="document.getElementById('submit_delete_post').action='<?php echo 'f.php?h=' . $link_name . '&d=' . $delete_code . "';"; ?>
+ document.getElementById('submit_delete').submit ();"/>
+ </td></tr>
+ </table>
+ </fieldset></form></div><?php
+ }