, 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'); $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '400'; $fck_attribute['ToolbarSet'] = 'Middle'; $fck_attribute['Config']['IMUploadPath'] = 'upload/forum/'; $fck_attribute['Config']['FlashUploadPath'] = 'upload/forum/'; if (!api_is_allowed_to_edit(false,true)) { $fck_attribute['Config']['UserStatus'] = 'student'; } $nameTools=get_lang('Forum'); ?> \n"; while ($row=Database::fetch_array($result)) { echo "\t\n"; echo "\t\t"; if ($row['user_id']=='0') { $name=$row['poster_name']; } else { $name=$row['firstname'].' '.$row['lastname']; } echo $name.'
'; echo $row['post_date'].'

'; echo "\n"; echo "\t\t".$row['post_title']."\n"; echo "\t\n"; echo "\t\n"; echo "\t\t".$row['post_text']."\n"; echo "\t\n"; } echo ""; ?>