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