2015-02-23 17:33:02 +00:00
|
|
|
<?php
|
2016-05-14 08:55:50 +00:00
|
|
|
//Loading configuration file
|
|
|
|
require_once "includes/config.php";
|
|
|
|
|
2015-02-23 17:33:02 +00:00
|
|
|
require_once "rain/rain.tpl.class.php";
|
|
|
|
|
|
|
|
raintpl::configure( 'path_replace', false);
|
|
|
|
raintpl::configure( 'tpl_dir', 'rain/template/');
|
|
|
|
raintpl::configure( 'cache_dir', 'rain/cache/' );
|
|
|
|
|
|
|
|
$tpl = new RainTPL;
|
|
|
|
|
|
|
|
$title = "Temp File Hosting";
|
|
|
|
if(isset($_GET['info']))
|
|
|
|
$title = "Info";
|
|
|
|
|
|
|
|
$tpl->assign("title", $title);
|
|
|
|
$tpl->draw("header");
|
|
|
|
|
|
|
|
if(isset($_GET['info'])) {
|
2016-05-14 08:55:50 +00:00
|
|
|
$tpl->assign("url_filename", CONFIG_ROOT_URL);
|
2016-05-14 09:47:48 +00:00
|
|
|
$tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
|
2015-02-23 17:33:02 +00:00
|
|
|
$tpl->draw("info");
|
|
|
|
} else {
|
|
|
|
$tpl->draw("upload");
|
|
|
|
}
|
|
|
|
|
|
|
|
$tpl->draw("footer");
|
2016-05-14 08:55:50 +00:00
|
|
|
?>
|