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 3939 $ open_chat_window = api_get_course_setting ('allow_open_chat_window ' );
4040}
4141
42- $ cidreq = Security::remove_XSS ($ _GET ['cidReq ' ]);
42+ $ courseCode = Security::remove_XSS ($ _GET ['cidReq ' ]);
4343
4444?>
4545<!DOCTYPE html>
7676}
7777
7878$ url = api_get_path (WEB_CODE_PATH ).'chat/ ' ;
79+ $ params = "cidReq= " .$ courseCode .'&id_session= ' .api_get_session_id ();
7980
8081echo '<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> ' ;
8586echo '</div> ' ;
8687
8788if (empty ($ open_chat_window )) {
You can’t perform that action at this time.
0 commit comments