0) { header('location: '.wc_joinMeetingURL($bbb_host,$bbb_salt,$full_user_name,$meeting_name,($teacher?$meeting_mod_pw:$meeting_att_pw),$user_id)); exit; } } } // That conference room is really not running or it has no // accompanying moderator subscribed if ($teacher) { // The user is a teacher, so he has the right to create the // room, so create it and join it wc_createMeeting($bbb_host,$bbb_salt,$meeting_name,$meeting_name,$meeting_att_pw,$meeting_mod_pw,$meeting_wel_ms,api_get_path(WEB_COURSE_PATH).'/'.$ccode); header('location: '.wc_joinMeetingURL($bbb_host,$bbb_salt,$full_user_name,$meeting_name,($teacher?$meeting_mod_pw:$meeting_att_pw),$user_id)); exit; } else { // There is no conference room for this course and the user // is a mere student, so he cannot start a conference room by // himself: a teacher has to launch it first header('location: '.api_get_path(WEB_COURSE_PATH).'/'.$ccode); exit; } }