Go to the documentation of this file.
22 $sWhere .=
" AND `Country`= '$sCountryCode' ";
24 $sWhere .=
" AND `City`LIKE '$sCity' ";
25 if ($isWithPhotosOnly)
26 $sWhere .=
" AND `Avatar` ";
28 $iOnlineTime = (int)
getParam(
'member_online_time' );
29 $sWhere .=
" AND `DateLastNav` >= DATE_SUB(NOW(), INTERVAL $iOnlineTime MINUTE)";
31 $iStart = (int)$iStart;
32 if (!$iStart || $iStart < 0)
35 if (!$iPP || $iPP < 1)
39 SELECT * FROM `Profiles`
40 WHERE `Status` = 'Active' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere
41 ORDER BY `DateLastNav` DESC
42 LIMIT $iStart, $iPP");
44 while ($aRow = $r->fetch())
47 return new xmlrpcval ($aProfiles,
"array");
62 if ($aLocation && !
empty($aLocation[
'lat']) && !
empty($aLocation[
'lng'])) {
63 $sLat = $aLocation[
'lat'];
64 $sLng = $aLocation[
'lng'];
74 $sDistance =
", (POW($sLat-`loc`.`lat`, 2)+POW($sLng-`loc`.`lng`, 2)) AS `distance`";
75 $sJoin .=
" INNER JOIN `ch_wmap_locations` AS `loc` ON (`loc`.`part` = 'profiles' AND `loc`.`id` = `Profiles`.`ID` AND `loc`.`failed` = 0) ";
77 if ($isWithPhotosOnly)
78 $sWhere .=
" AND `Avatar` ";
80 $iOnlineTime = (int)
getParam(
'member_online_time' );
81 $sWhere .=
" AND `DateLastNav` >= DATE_SUB(NOW(), INTERVAL $iOnlineTime MINUTE)";
83 $iStart = (int)$iStart;
84 if (!$iStart || $iStart < 0)
87 if (!$iPP || $iPP < 1)
91 SELECT * " . $sDistance .
" FROM `Profiles`
93 WHERE `Status` = 'Active' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere
94 ORDER BY `distance` ASC
95 LIMIT $iStart, $iPP");
97 while ($aRow = $r->fetch())
100 return new xmlrpcval ($aProfiles,
"array");
113 if ($sKeyword && strlen($sKeyword) > 2) {
114 $sMatch .=
" MATCH (`NickName`,`FullName`,`FirstName`,`LastName`,`City`,`DescriptionMe`,`Tags`) AGAINST ('$sKeyword') ";
116 $sWhere .=
" AND $sMatch ";
118 if ($isWithPhotosOnly)
119 $sWhere .=
" AND `Avatar` ";
121 $iOnlineTime = (int)
getParam(
'member_online_time' );
122 $sWhere .=
" AND `DateLastNav` >= DATE_SUB(NOW(), INTERVAL $iOnlineTime MINUTE)";
124 $iStart = (int)$iStart;
125 if (!$iStart || $iStart < 0)
128 if (!$iPP || $iPP < 1)
132 SELECT * " . ( $sMatch ?
", $sMatch" :
'') .
" FROM `Profiles`
133 WHERE `Status` = 'Active' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) $sWhere
134 ORDER BY `DateLastNav` DESC
135 LIMIT $iStart, $iPP");
137 while ($aRow = $r->fetch())
140 return new xmlrpcval ($aProfiles,
"array");
152 $aMarkersReplace = array (
154 'member_username' => rawurlencode(
$sUser),
155 'member_password' =>
$sPwd,
process_db_input($sText, $iStripTags=0)
getSearchResultsNearMe($sUser, $sPwd, $sLang, $sLat, $sLng, $isOnlineOnly, $isWithPhotosOnly, $iStart, $iPP)
getSearchResultsLocation($sUser, $sPwd, $sLang, $sCountryCode, $sCity, $isOnlineOnly, $isWithPhotosOnly, $iStart, $iPP)
getSearchResultsKeyword($sUser, $sPwd, $sLang, $sKeyword, $isOnlineOnly, $isWithPhotosOnly, $iStart, $iPP)
static getUserInfo($iId, $iIdViewer=0, $isCountData=true)
static serviceExists($mixedModule, $sMethod, $sClass="Module")
getSeachHomeMenu3($sUser, $sPwd, $sLang)
const CH_SLASHES_NO_ACTION
getParam($sParamName, $bUseCache=true)
static setLanguage($sLang)
db_res($query, $bindings=[])
static fillProfileArray($a, $sImage='icon', $iIdViewer=0)
static checkLogin($sUser, $sPwd)
static getMenu($sMenu, $aMarkersReplace=array())
Attr AllowedRel this is empty
static call($mixed, $sMethod, $aParams=array(), $sClass='Module')