set_url('/mod/chat/gui_sockets/chatinput.php', array('chat_sid'=>$chat_sid)); if (!$chatuser = $DB->get_record('chat_users', array('sid'=>$chat_sid))) { print_error('notlogged', 'chat'); } //Get the user theme $USER = $DB->get_record('user', array('id'=>$chatuser->userid)); //Setup course, lang and theme $PAGE->set_pagelayout('embedded'); $PAGE->set_course($DB->get_record('course', array('id' => $chatuser->course))); $PAGE->requires->js('/mod/chat/gui_sockets/chat_gui_sockets.js', true); $PAGE->requires->js_function_call('setfocus'); $PAGE->set_focuscontrol('chat_message'); $PAGE->set_cacheable(false); echo $OUTPUT->header(); ?>
footer(); ?>