<?php
-require_once "/home/neku/www/page/public/rain/rain.tpl.class.php";
+require_once "rain/rain.tpl.class.php";
raintpl::configure( 'path_replace', false);
-raintpl::configure( 'tpl_dir', '/home/neku/www/page/public/rain/template/');
-raintpl::configure( 'cache_dir', '/home/neku/www/page/public/rain/cache/' );
+raintpl::configure( 'tpl_dir', 'rain/template/');
+raintpl::configure( 'cache_dir', 'rain/cache/' );
$tpl = new RainTPL;
$title = "Temp File Hosting";
$tpl->assign("title", $title);
$tpl->draw("header");
-$tpl->assign("filename", $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");
?>