1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00
uguu/index.php
2016-05-14 11:47:48 +02:00

30 lines
638 B
PHP

<?php
//Loading configuration file
require_once "includes/config.php";
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'])) {
$tpl->assign("url_filename", CONFIG_ROOT_URL);
$tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
$tpl->draw("info");
} else {
$tpl->draw("upload");
}
$tpl->draw("footer");
?>