, Ghent University * @Copyright Ghent University * @Copyright Patrick Cool * * @package dokeos.forum */ // name of the language file that needs to be included $language_file = 'forum'; // including the global dokeos file require ('../inc/global.inc.php'); // the section (tabs) $this_section=SECTION_COURSES; // notice for unauthorized people. api_protect_course_script(true); // including additional library scripts require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php'); include(api_get_path(LIBRARY_PATH).'events.lib.inc.php'); include('forumfunction.inc.php'); include('forumconfig.inc.php'); //are we in a lp ? $origin = ''; if (isset($_GET['origin'])) { $origin = Security::remove_XSS($_GET['origin']); } // name of the tool $nameTools=get_lang('Forum'); // breadcrumbs $interbreadcrumb[]=array('url' => 'index.php','name' => $nameTools); $interbreadcrumb[]=array('url' => 'forumsearch.php','name' => get_lang('ForumSearch')); // Display the header if ($origin=='learnpath') { include(api_get_path(INCLUDE_PATH).'reduced_header.inc.php'); } else { Display :: display_header($nameTools); } // Display the tool title api_display_tool_title($nameTools); // tool introduction Display::display_introduction_section(TOOL_FORUM,'left'); // tracking event_access_tool(TOOL_FORUM); // forum search forum_search(); // footer if ($origin!='learnpath') { Display :: display_footer(); }