, Ghent University * @Copyright Ghent University * @Copyright Patrick Cool * * @package dokeos.forum */ /** ************************************************************************** * IMPORTANT NOTICE * Please do not change anything is this code yet because there are still * some significant code that need to happen and I do not have the time to * merge files and test it all over again. So for the moment, please do not * touch the code * -- Patrick Cool ************************************************************************** */ /* ============================================================================== INIT SECTION ============================================================================== */ /* ----------------------------------------------------------- Language Initialisation ----------------------------------------------------------- */ $langFile = 'forum'; require ('../inc/global.inc.php'); require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php'); $nameTools=get_lang('Forum'); ?> \n"; // the forum category echo "\t\n\t\t"; echo ''.$current_forum_category['cat_title'].'
'; echo ''.$current_forum_category['cat_comment'].''; echo "\n"; echo "\t\n"; // the forum echo "\t\n"; echo "\t\t".$current_forum['forum_title']."
"; echo ''.$current_forum['forum_comment'].''; echo "\n"; echo "\t\n"; echo ""; */ $sql="SELECT * FROM $table_posts posts, $table_users users WHERE posts.thread_id='".$current_thread['thread_id']."' AND posts.poster_id=users.user_id ORDER BY posts.post_id ASC"; $result=api_sql_query($sql, __FILE__, __LINE__); echo "\n"; while ($row=mysql_fetch_array($result)) { echo "\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\n"; echo "\t\n"; echo "\t\t\n"; echo "\t\n"; } echo "
"; if ($row['user_id']=='0') { $name=$row['poster_name']; } else { $name=$row['firstname'].' '.$row['lastname']; } echo display_user_link($row['user_id'], $name).'
'; echo $row['post_date'].'

'; echo "
".$row['post_title']."
".$row['post_text']."
"; ?>