, Ghent University * @copyright Ghent University * * @package chamilo.forum */ /* 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'); ?> "; while ($row=Database::fetch_array($result)) { echo ""; echo ""; 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 ""; echo "".Security::remove_XSS($row['post_title']).""; echo ""; echo ""; echo "".Security::remove_XSS($row['post_text'],STUDENT).""; echo ""; } echo ""; ?>