Update upload-done.php

This commit is contained in:
Eric Johansson (neku) 2016-05-14 22:32:12 +02:00
parent 48028348cb
commit c626efb4bc
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@ $tpl = new RainTPL;
$title = "Temp File Hosting";
$tpl->assign("title", $title);
$tpl->draw("header");
$tpl->assign("url_filename", CONFIG_ROOT_URL.'/files/'.$n);
if(CONFIG_SUBUPLOAD_URL_ENABLED == 'true'){
$tpl->assign("url_filename", CONFIG_SUBUPLOAD_URL.'/'.$n);
}else{
$tpl->assign("url_filename", CONFIG_ROOT_URL.'/files/'.$n);
}
$tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
$tpl->draw("upload-done");
$tpl->draw("footer");