+ if ($link['onetime'] == 'O') {
+ echo '<tr><td id="self_destruct">' .
+ t('Warning, this file will self-destruct after being read') .
+ '</td></tr>';
+ } ?>
+ <tr><td><input type="submit" id = "submit_download" value="<?php echo t('Download'); ?>"
+ onclick="document.getElementById('submit_post').action='<?php
+ echo 'f.php?h=' . $link_name . '&d=1';
+ if (!empty($crypt_key)) {
+ echo '&k=' . urlencode($crypt_key);
+ } ?>';
+ document.getElementById('submit_post').submit ();"/><?php
+
+ if ($cfg['preview'] && jirafeau_is_viewable($link['mime_type'])) {