, 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 ----------------------------------------------------------- */ // name of the language file that needs to be included $language_file = 'forum'; //$this_section=SECTION_COURSES; require_once '../inc/global.inc.php'; /* ------------ ACCESS RIGHTS ------------ */ // notice for unauthorized people. api_protect_course_script(true); require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php'); $nameTools=get_lang('ToolForum'); ?> \n"; while ($row=Database::fetch_array($result)) { echo "\t\n"; echo "\t\t"; if ($row['user_id']=='0') { $name=$row['poster_name']; } else { $name=api_get_person_name($row['firstname'], $row['lastname']); } echo $name.'
'; echo $row['post_date'].'

'; echo "\n"; echo "\t\t".Security::remove_XSS($row['post_title'])."\n"; echo "\t\n"; echo "\t\n"; echo "\t\t".Security::remove_XSS($row['post_text'],STUDENT)."\n"; echo "\t\n"; } echo ""; ?>