Go to the documentation of this file.
8 define(
'CH_XMLRPC_PROTOCOL_VER', 5);
49 $iRet =
ChWsbService::call(
'wmap',
'update_location_manually', array (
'profiles',
$iId, (
float)$sLat, (
float)$sLng, (
int)$sZoom, $sMapType)) ?
'1' :
'0';
51 return new xmlrpcresp(
new xmlrpcval(
false === $iRet || 404 == $iRet || 403 == $iRet ?
false :
true));
63 if (!is_array($aLocation))
67 'lat' =>
new xmlrpcval($aLocation[
'lat']),
68 'lng' =>
new xmlrpcval($aLocation[
'lng']),
69 'zoom' =>
new xmlrpcval($aLocation[
'zoom']),
70 'type' =>
new xmlrpcval($aLocation[
'type']),
71 'address' =>
new xmlrpcval($aLocation[
'address']),
72 'country' =>
new xmlrpcval($aLocation[
'country']),
84 $aFriendReq =
db_arr(
"SELECT count(*) AS `num` FROM `sys_friend_list` WHERE `Profile` = {$iId} AND `Check` = '0'" );
85 $aRet[
'friendRequests'] =
new xmlrpcval($aFriendReq[
'num']);
99 $aMarkersReplace = array (
101 'member_username' => rawurlencode(
$sUser),
102 'member_password' =>
$sPwd,
108 $aRet[
'search_with_photos'] =
new xmlrpcval($oMemberInfo->isAvatarSearchAllowed() ? 1 : 0);
122 if (
true !== $mixedRet)
127 $aMarkersReplace = array (
129 'member_username' => rawurlencode(
$sUser),
130 'member_password' =>
$sPwd,
131 'profile_id' => $iIdProfile,
132 'profile_username' =>
$sNick,
148 if (
true !== $mixedRet)
157 $mixedAccessDenied =
false;
159 if ($iIdProfile !=
$iId) {
166 if (
false === $mixedAccessDenied) {
169 if ($iIdProfile !=
$iId && !$oPrivacy->check(
'view', $iIdProfile,
$iId))
170 $mixedAccessDenied =
'-1';
175 $oZ =
new ChWsbAlerts(
'mobile',
'view_profile', $iIdProfile,
$iId, array(
'access_denied' => &$mixedAccessDenied));
178 if (
false !== $mixedAccessDenied)
179 return new xmlrpcval ($mixedAccessDenied);
193 return $o->getProfileInfoExtra();
202 $_GET[
'action'] =
'1';
203 require_once( CH_DIRECTORY_PATH_ROOT .
'list_pop.php' );
206 $_POST[
'status_message'] = $sStatusMsg;
getUserInfo2($sUser, $sPwd, $sNick, $sLang)
ActionChangeStatusMessage($iMemberIdForce=0)
login4($sUser, $sPwdClear)
static getObjectInstance($sObject)
static getUserInfo($iId, $iIdViewer=0, $isCountData=true)
_checkUserPrivacy($iId, $iIdProfile)
const CHECK_ACTION_RESULT_ALLOWED
ch_import($sClassName, $aModule=array())
const CHECK_ACTION_RESULT
check_password($sUsername, $sPassword, $iRole=CH_WSB_ROLE_MEMBER, $error_handle=true)
const CHECK_ACTION_MESSAGE
getHomepageInfo($sUser, $sPwd)
static getIdByNickname($sUser)
getUserInfoExtra($sUser, $sPwd, $sNick, $sLang)
db_arr($query, $bindings=[])
getParam($sParamName, $bUseCache=true)
const CH_XMLRPC_PROTOCOL_VER
getUserInfo($sUser, $sPwd, $sNick, $sLang)
updateUserLocation($sUser, $sPwd, $sLat, $sLng, $sZoom, $sMapType)
checkAction($iMemberId, $actionID, $performAction=false, $iForcedProfID=0, $isCheckMemberStatus=true)
updateStatusMessage($sUser, $sPwd, $sStatusMsg)
static setLanguage($sLang)
getID( $str, $with_email=1)
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
getUserLocation($sUser, $sPwd, $sNick)
static checkLogin($sUser, $sPwd)
static getMenu($sMenu, $aMarkersReplace=array())
static call($mixed, $sMethod, $aParams=array(), $sClass='Module')
getHomepageInfo2($sUser, $sPwd, $sLang)
if( $sMembersList) $iProfileId
const ACTION_ID_VIEW_PROFILES