]> jfr.im git - uguu.git/blame_incremental - index.php
Fixing bug in template
[uguu.git] / index.php
... / ...
CommitLineData
1<?php
2//Loading configuration file
3require_once "includes/config.php";
4
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'])) {
21 $tpl->assign("url_filename", CONFIG_ROOT_URL);
22 $tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
23 $tpl->draw("info");
24} else {
25 $tpl->draw("upload");
26}
27
28$tpl->draw("footer");
29?>