X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/3e47e7c2308813736cb9461d2d4a3164fbffc849..8dc8b4bc884065eecec6ef0e544bf47734e69372:/index.php?ds=sidebyside 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 '
' . NL; echo '

' . _('File uploaded! Copy the following URL to get it:') . '
' . NL; echo '' . $link . '' . NL; @@ -94,6 +99,11 @@ if(!has_error() && !empty($res)) { } echo '

'; + + echo '
' . NL; + echo '

' . _('Keep the following URL to delete it:') . '
' . NL; + echo '' . $delete_link . '' . NL; + echo '

'; } }