, 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 */
// A 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 "";
$username = api_htmlentities(sprintf(get_lang('LoginX'), $row['username']), ENT_QUOTES);
if ($row['user_id']=='0') {
$name = $row['poster_name'];
} else {
$name = api_get_person_name($row['firstname'], $row['lastname']);
}
echo Display::tag('span', $name, array('title'=>$username)).' ';
echo api_convert_and_format_date($row['post_date']).'
';
echo " | ";
echo "".Security::remove_XSS($row['post_title'])." | ";
echo "
";
echo "";
echo "| ".Security::remove_XSS($row['post_text'], STUDENT)." | ";
echo "
";
}
echo "";
?>