]> jfr.im git - uguu.git/blame - index.php
Merge pull request #30 from illumniggati/patch-1
[uguu.git] / index.php
CommitLineData
284e095d 1<?php
2f98035a
PAB
2//Loading configuration file
3require_once "includes/config.php";
4
284e095d
A
5require_once "rain/rain.tpl.class.php";
6
7raintpl::configure( 'path_replace', false);
8raintpl::configure( 'tpl_dir', 'rain/template/');
9raintpl::configure( 'cache_dir', 'rain/cache/' );
10
11$tpl = new RainTPL;
12
13$title = "Temp File Hosting";
14if(isset($_GET['info']))
15 $title = "Info";
16
17$tpl->assign("title", $title);
18$tpl->draw("header");
19
20if(isset($_GET['info'])) {
2f98035a 21 $tpl->assign("url_filename", CONFIG_ROOT_URL);
8f66c23e 22 $tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
284e095d
A
23 $tpl->draw("info");
24} else {
25 $tpl->draw("upload");
26}
27
28$tpl->draw("footer");
2f98035a 29?>