23 require_once
"Modules/Chat/classes/class.ilObjChatGUI.php";
48 $next_class = $ilCtrl->getNextClass($this);
49 $cmd = $ilCtrl->getCmd();
50 if ($next_class ==
"")
52 $ilCtrl->setCmdClass(
"ilobjchatgui");
53 if(
$cmd ==
'') $ilCtrl->setCmd(
"showFrames");
54 $next_class = $ilCtrl->getNextClass($this);
61 $_GET[
'ref_id'] = (int)substr($param, 0, strpos($param,
'_'));
62 $_REQUEST[
'room_id'] = (int)substr($param, strrpos($param,
'_') + 1);
66 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
68 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
69 "ilias.php?baseClass=ilChatPresentationGUI&cmd=infoScreen&ref_id=".
$_GET[
"ref_id"],
"chat");
75 include_once(
"./Modules/Chat/classes/class.ilObjChatGUI.php");
77 $chat_gui->object->chat_room->setRoomId((
int)
$_REQUEST[
"room_id"]);
78 $chat_gui->object->chat_room->setUserId(
$_SESSION[
"AccountId"]);
81 if(!$chat_gui->object->chat_room->checkAccess())
83 unset($_REQUEST[
"room_id"]);
84 unset($_REQUEST[
"message"]);
89 if(!$chat_gui->object->server_conf->getActiveStatus())
91 $tmp_tpl =
new ilTemplate(
'tpl.chat_srv_off_redirect_js.html',
true,
true,
'Modules/Chat');
92 $tmp_tpl->setVariable(
'OPENER_LOCATION',
'goto.php?target=chat_'.(
int)
$_GET[
'ref_id'].
'&client_id='.CLIENT_ID);
97 $chat_gui->object->server_comm->setRecipientId((
int)
$_GET[
"p_id"]);
98 $ret = $ilCtrl->forwardCommand($chat_gui);