Update upload-done.php

This commit is contained in:
Eric Johansson (neku) 2016-05-14 22:32:12 +02:00
parent 48028348cb
commit c626efb4bc

View File

@ -7,7 +7,11 @@ $tpl = new RainTPL;
$title = "Temp File Hosting"; $title = "Temp File Hosting";
$tpl->assign("title", $title); $tpl->assign("title", $title);
$tpl->draw("header"); $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->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
$tpl->draw("upload-done"); $tpl->draw("upload-done");
$tpl->draw("footer"); $tpl->draw("footer");