X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/3e47e7c2308813736cb9461d2d4a3164fbffc849..ab330a749db8c75b9a38a77536358be60a3e5163:/index.php diff --git a/index.php b/index.php index 9028143..9e1222c 100644 --- a/index.php +++ b/index.php @@ -80,11 +80,16 @@ if(!has_error() && !empty($res)) { add_error (_('An error occurred.'), $res['error']['why']); } else { $link = $cfg['web_root']; + $delete_link = $cfg['web_root']; + if($cfg['rewrite']) { $link .= 'file-' . $res['link']; + $delete_link .= 'file-' . $res['link'] . '-delete-' . $res['delete_link']; } else { $link .= 'file.php?h=' . $res['link']; // h because 'h' looks like a jirafeau ;) + $delete_link .= 'file.php?h=' . $res['link'] . '&d=' . $res['delete_link']; } + echo '
'; + + echo ' '; } }