23 require_once 
"Modules/Chat/classes/class.ilObjChatGUI.php";
 
   47                 $this->ref_id = (int) $a_ref_id;
 
   48                 $this->gui_obj =& 
new ilObjChatGUI(array(),$a_ref_id,
true,
false);
 
   49                 $this->gui_obj->object->chat_room->setRoomId((
int) 
$_REQUEST[
"room_id"]);
 
   50                 $this->gui_obj->object->chat_room->setUserId(
$_SESSION[
"AccountId"]);
 
   53                 if(!$this->gui_obj->object->chat_room->checkAccess())
 
   55                         unset($_REQUEST[
"room_id"]);
 
   56                         unset($_REQUEST[
"message"]);
 
   59                 $this->gui_obj->object->server_comm->setRecipientId((
int) 
$_GET[
"p_id"]);
 
   69                 $this->ref_id = $a_ref_id;
 
   83                 $this->gui_obj->$cmd();
 
   91                 if(
$_GET[
"cmd"] == 
'gateway')
 
   93                         if(is_array(
$_POST[
"cmd"]))
 
  104                                 $_GET[
"cmd"] = 
'input';
 
  108                                 $_GET[
"cmd"] = 
'cancel';
 
  114                         $this->cmd = 
$_GET[
"cmd"];
 
  118                         $this->cmd = 
"showFrames";
 
  123                         $this->cmd = 
'deliverVCard';