]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | //Loading configuration file | |
3 | require_once "includes/config.php"; | |
4 | ||
5 | require_once "rain/rain.tpl.class.php"; | |
6 | ||
7 | raintpl::configure( 'path_replace', false); | |
8 | raintpl::configure( 'tpl_dir', 'rain/template/'); | |
9 | raintpl::configure( 'cache_dir', 'rain/cache/' ); | |
10 | ||
11 | $tpl = new RainTPL; | |
12 | ||
13 | $title = "Temp File Hosting"; | |
14 | if(isset($_GET['info'])) | |
15 | $title = "Info"; | |
16 | ||
17 | $tpl->assign("title", $title); | |
18 | $tpl->draw("header"); | |
19 | ||
20 | if(isset($_GET['info'])) { | |
21 | $tpl->assign("url_filename", CONFIG_ROOT_URL); | |
22 | $tpl->draw("info"); | |
23 | } else { | |
24 | $tpl->draw("upload"); | |
25 | } | |
26 | ||
27 | $tpl->draw("footer"); | |
28 | ?> |