File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 39
39
$ open_chat_window = api_get_course_setting ('allow_open_chat_window ' );
40
40
}
41
41
42
- $ cidreq = Security::remove_XSS ($ _GET ['cidReq ' ]);
42
+ $ courseCode = Security::remove_XSS ($ _GET ['cidReq ' ]);
43
43
44
44
?>
45
45
<!DOCTYPE html>
76
76
}
77
77
78
78
$ url = api_get_path (WEB_CODE_PATH ).'chat/ ' ;
79
+ $ params = "cidReq= " .$ courseCode .'&id_session= ' .api_get_session_id ();
79
80
80
81
echo '<div class="page-chat"> ' ;
81
- echo '<iframe src=" ' .$ url .'chat_whoisonline.php?cidReq= ' .$ cidreq .'" name="chat_whoisonline" scrolling="no" style="height:550px; width:35%; border: 0px none; float:left"></iframe> ' ;
82
- echo '<iframe src=" ' .$ url .'chat_chat.php?origin= ' .$ origin .'&target= ' .$ target .'&cidReq= ' .$ cidreq .'" name="chat_chat" id="chat_chat" scrolling="auto" height="380" style="width:65%; border: 0px none; float:right"></iframe> ' ;
83
- echo '<iframe src=" ' .$ url .'chat_message.php?cidReq= ' .$ cidreq .'" name="chat_message" scrolling="no" height="182px" style="width:65%; border: 0px none; float:right"></iframe> ' ;
84
- echo '<iframe src=" ' .$ url .'chat_hidden.php?cidReq= ' .$ cidreq .'" name="chat_hidden" height="0" style="border: 0px none"></iframe> ' ;
82
+ echo '<iframe src=" ' .$ url .'chat_whoisonline.php? ' .$ params .'" name="chat_whoisonline" scrolling="no" style="height:550px; width:35%; border: 0px none; float:left"></iframe> ' ;
83
+ echo '<iframe src=" ' .$ url .'chat_chat.php?origin= ' .$ origin .'&target= ' .$ target .'& ' .$ params .'" name="chat_chat" id="chat_chat" scrolling="auto" height="380" style="width:65%; border: 0px none; float:right"></iframe> ' ;
84
+ echo '<iframe src=" ' .$ url .'chat_message.php? ' .$ params .'" name="chat_message" scrolling="no" height="182px" style="width:65%; border: 0px none; float:right"></iframe> ' ;
85
+ echo '<iframe src=" ' .$ url .'chat_hidden.php? ' .$ params .'" name="chat_hidden" height="0" style="border: 0px none"></iframe> ' ;
85
86
echo '</div> ' ;
86
87
87
88
if (empty ($ open_chat_window )) {
You can’t perform that action at this time.
0 commit comments