구형 ajax php chat
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();
}