23 require_once
"Modules/Chat/classes/class.ilObjChatGUI.php";
51 $next_class = $ilCtrl->getNextClass($this);
52 $cmd = $ilCtrl->getCmd();
53 if ($next_class ==
"")
55 $ilCtrl->setCmdClass(
"ilobjchatgui");
56 if(
$cmd ==
'') $ilCtrl->setCmd(
"showFrames");
57 $next_class = $ilCtrl->getNextClass($this);
64 $_GET[
'ref_id'] = (int)substr($param, 0, strpos($param,
'_'));
65 $_REQUEST[
'room_id'] = (int)substr($param, strrpos($param,
'_') + 1);
69 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
71 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
72 "ilias.php?baseClass=ilChatPresentationGUI&cmd=infoScreen&ref_id=".
$_GET[
"ref_id"],
"chat");
78 include_once(
"./Modules/Chat/classes/class.ilObjChatGUI.php");
80 $chat_gui->object->chat_room->setRoomId((
int) $_REQUEST[
"room_id"]);
81 $chat_gui->object->chat_room->setUserId(
$_SESSION[
"AccountId"]);
84 if(!$chat_gui->object->chat_room->checkAccess())
86 unset($_REQUEST[
"room_id"]);
87 unset($_REQUEST[
"message"]);
92 if(!$chat_gui->object->server_conf->getActiveStatus())
94 $tmp_tpl =
new ilTemplate(
'tpl.chat_srv_off_redirect_js.html',
true,
true,
'Modules/Chat');
95 $tmp_tpl->setVariable(
'OPENER_LOCATION',
'goto.php?target=chat_'.(
int)
$_GET[
'ref_id'].
'&client_id='.CLIENT_ID);
100 $chat_gui->object->server_comm->setRecipientId((
int)
$_GET[
"p_id"]);
101 $ret = $ilCtrl->forwardCommand($chat_gui);