From cce5e7710295021b41d9aaecc503a60fb99256be Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 4 Oct 2008 10:38:03 +0000 Subject: Initial revision --- forum/utils/view.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 forum/utils/view.php (limited to 'forum/utils/view.php') diff --git a/forum/utils/view.php b/forum/utils/view.php new file mode 100644 index 0000000..0adb1a0 --- /dev/null +++ b/forum/utils/view.php @@ -0,0 +1,28 @@ +"; +if($fid) echo "forums"; +if($tid) echo ":: threads"; +if($pid) echo ":: posts"; +echo "\n"; + + + if($fid && $tid) { + // echo "

Posts

"; + include_once("posts.php"); + $posts = new Posts($FORUMS_DIR . "/" . $fid . "/" . $tid . ".xml"); + $posts->show(); + } else if($fid) { + echo "

Threads

"; + echo "New thread"; + + include_once("threads.php"); + $threads = new Threads($FORUMS_DIR . "/" . $fid); + $threads->show(); + } else { + echo "

Forums

"; + include_once("forums.php"); + $forums = new Forums($FORUMS_DIR . "/forums.xml"); + $forums->show(); + } +?> \ No newline at end of file -- cgit v1.2.3