if($GLOBALS['member']) {
$userName = $GLOBALS['member']['mb_name'];
$userName = $this->convertEncoding($userName, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding'));
$password = $GLOBALS['member']['mb_password'];
$password = $this->convertEncoding($password, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding'));
if($GLOBALS['member']['mb_id']){
$userData = array();
$userData['userID'] = $GLOBALS['member']['mb_id'];
$userData['userName'] = trimUserName($GLOBALS['member']['mb_name']);
$userData['userRole'] = "AJAX_CHAT_USER";
return $userData;
}
return null;
} else {
// Guest users:
return $this->getGuestUser();
}
$_POST['login'] = 'login';
$_POST['userName'] = $member['mb_name'];
$_POST['password'] = $member['mb_password'];
$_POST['channelName'] = 'Public';
$_POST['lang'] = 'kr';
<form name="resultHiddenForm" action="" method="post">
<input type="hidden" name="login" value="login"/>
</form>
}
$this->_requestVars['ajax'] = true;
$this->_requestVars['userID'] = (int)$GLOBALS['member']['mb_no'];
$this->_requestVars['userName'] = $GLOBALS['member']['mb_name'];
$this->_requestVars['channelID'] = isset($_REQUEST['channelID']) ? (int)$_REQUEST['channelID'] : 0;
$this->_requestVars['channelName'] = isset($_REQUEST['channelName']) ? $_REQUEST['channelName'] : 'public';
$this->_requestVars['login'] = true;
$this->_requestVars['logout'] = false;
$this->_requestVars['password'] = $GLOBALS['member']['mb_password'];
$this->_requestVars['lang'] = "kr";
*/