구형 ajax php chat

구형 ajax php chat

더시민 2 972 0

        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();
        }

2 Comments
더시민 2022.03.23 08:39  
if(!$_POST['login']){
$_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>


}
더시민 2022.03.22 15:39  
/*
$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";
*/
제목
Category
Facebook Twitter GooglePlus KakaoStory KakaoTalk NaverBand