uguu/index.php

30 lines
638 B
PHP
Raw Normal View History

2015-02-23 18:33:02 +01:00
<?php
2016-05-14 10:55:50 +02:00
//Loading configuration file
require_once "includes/config.php";
2015-02-23 18:33:02 +01: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 10:55:50 +02:00
$tpl->assign("url_filename", CONFIG_ROOT_URL);
2016-05-14 11:47:48 +02:00
$tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
2015-02-23 18:33:02 +01:00
$tpl->draw("info");
} else {
$tpl->draw("upload");
}
$tpl->draw("footer");
2016-05-14 10:55:50 +02:00
?>