';
} elseif (isset($nameTools) && $language_file != 'course_home') {
//Put the name of the user-tools in the header
if (!isset($_user['user_id'])) {
echo '';
} elseif (!$noPHP_SELF) {
echo '
';
// Display the who's online of the platform
if ((api_get_setting('showonline', 'world') == 'true' AND !$_user['user_id']) OR (api_get_setting('showonline', 'users') == 'true' AND $_user['user_id'])) {
echo ' '.get_lang('OnLine').' '.$number.'';
}
// Display the who's online for the course
if (is_array($_course) AND api_get_setting('showonline', 'course') == 'true' AND isset($_course['sysCode'])) {
echo '('.$number_online_in_course.' '.get_lang('InThisCourse').')';
}
// Display the who's online for the session
//if (api_get_setting('use_session_mode') == 'true' && isset($_user['user_id']) && api_is_coach()) {
if (api_get_setting('use_session_mode') == 'true' && isset($_user['user_id']) && api_get_session_id() != 0) {
echo '
';
}
if (isset($dokeos_database_connection)) {
// connect to the main database.
// if single database, don't pefix table names with the main database name in SQL queries
// (ex. SELECT * FROM `table`)
// if multiple database, prefix table names with the course database name in SQL queries (or no prefix if the table is in
// the main database)
// (ex. SELECT * FROM `table_from_main_db` - SELECT * FROM `courseDB`.`table_from_course_db`)
Database::select_db($_configuration['main_database'], $dokeos_database_connection);
}
?>
';
echo $output_string_menu;
echo '
';
if (isset($_SESSION['hideMenu'])) {
if ($_SESSION['hideMenu'] == 'shown') {
if (isset($_cid)) {
echo '