コード例 #1
0
function logout($sId)
{
    setcookie("memberID", '', time() - 86400);
    setcookie("memberPassword", '', time() - 86400);
    updateOnline($sId, "", false);
}
コード例 #2
0
        /**
         * Updates user's information in RayPresenceUsers table.
         * For Users, who didn't login into Ray Presence, but logged in into site.
         *
         * @param id     - user's ID.
         * @param status - user's status.
         */
    /**
     * Updates user's information in RayPresenceUsers table.
     * For Users, who didn't login into Ray Presence, but logged in into site.
     *
     * @param id     - user's ID.
     * @param status - user's status.
     */
    case "updateOnlineStatus":
        updateOnline($sId, $sStatus);
        break;
        /**
         * Declines received IM message.
         *
         * @param id - user's ID.
         */
    /**
     * Declines received IM message.
     *
     * @param id - user's ID.
     */
    case "declineIm":
        declineIm($sId);
        break;
}
コード例 #3
0
        break;
        /**
         * Gets widget code.
         */
    /**
     * Gets widget code.
     */
    case 'getWidgetCode':
        $aResult = getFileContents($sWidget, "/xml/main.xml", true);
        if ($aResult['status'] == SUCCESS_VAL) {
            $aContents = $aResult['contents'];
            $sCode = $aContents['code'];
            if (empty($sCode)) {
                require_once $sModulesPath . $sWidget . "/inc/constants.inc.php";
                $sCode = $aInfo['code'];
            }
            $sContents = parseXml($aXmlTemplates['result'], SUCCESS_VAL, $sCode, $aContents['license']);
        } else {
            $sContents = parseXml($aXmlTemplates['result'], $aResult['value'], FAILED_VAL);
        }
        break;
        /**
         * update user's online status
         */
    /**
     * update user's online status
     */
    case 'updateOnlineStatus':
        updateOnline($sId);
        break;
}