Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 require_once "include/inc.header.php";
00026 require_once "classes/class.ilForumExplorer.php";
00027
00028
00029 $tpl->addBlockFile("CONTENT", "content", "tpl.explorer.html");
00030 $tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
00031
00032 $exp = new ilForumExplorer("./forums_threads_view.php?thr_pk=$_GET[thr_pk]&ref_id=$_GET[ref_id]",$_GET["thr_pk"],(int) $_GET['ref_id']);
00033 $exp->setTargetGet("pos_pk");
00034
00035 if ($_GET["fexpand"] == "")
00036 {
00037 $forum = new ilForum();
00038 $tmp_array = $forum->getFirstPostNode($_GET["thr_pk"]);
00039 $expanded = $tmp_array["id"];
00040 }
00041 else
00042 $expanded = $_GET["fexpand"];
00043
00044 $exp->setExpand($expanded);
00045
00046
00047 $exp->setOutput(0);
00048 $output = $exp->getOutput();
00049
00050 $tpl->setCurrentBlock("content");
00051
00052 $tpl->setVariable("EXP_REFRESH", $lng->txt("refresh"));
00053 $tpl->setVariable("EXPLORER",$output);
00054 $tpl->setVariable("ACTION", "forums_menu.php?fexpand=".$_GET["fexpand"]."&thr_pk=$_GET[thr_pk]&ref_id=$_GET[ref_id]");
00055 $tpl->parseCurrentBlock();
00056
00057 $tpl->show(false);
00058
00059 ?>