Changeset 9967 for trunk/xmlrpc/BxDolXMLRPCFriends.php
- Timestamp:
- 04/06/09 01:55:00 (3 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc/BxDolXMLRPCFriends.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCFriends.php
r9901 r9967 14 14 SELECT p.* 15 15 FROM `Profiles` AS p 16 LEFT JOIN ` FriendList` AS f1 ON (f1.`ID` = p.`ID` AND f1.`Profile` ='{$iIdProfile}' AND `f1`.`Check` = 1)17 LEFT JOIN ` FriendList` AS f2 ON (f2.`Profile` = p.`ID` AND f2.`ID` ='{$iIdProfile}' AND `f2`.`Check` = 1)16 LEFT JOIN `sys_friend_list` AS f1 ON (f1.`ID` = p.`ID` AND f1.`Profile` ='{$iIdProfile}' AND `f1`.`Check` = 1) 17 LEFT JOIN `sys_friend_list` AS f2 ON (f2.`Profile` = p.`ID` AND f2.`ID` ='{$iIdProfile}' AND `f2`.`Check` = 1) 18 18 WHERE 1 19 19 AND (f1.`ID` IS NOT NULL OR f2.`ID` IS NOT NULL) … … 22 22 $r = db_res($sFriendsSQL); 23 23 24 /*$r = db_res ("SELECT `Profiles`.* FROM ` FriendList`25 LEFT JOIN `Profiles` ON (`Profiles`.`ID` = ` FriendList`.`Profile` AND `FriendList`.`ID` = '$iIdProfile' OR `Profiles`.`ID` = `FriendList`.`ID` AND `FriendList`.`Profile` = '$iIdProfile')26 WHERE (` FriendList`.`Profile` = '$iIdProfile' OR `FriendList`.`ID` = '$iIdProfile') AND `FriendList`.`Check` = '1'24 /*$r = db_res ("SELECT `Profiles`.* FROM `sys_friend_list` 25 LEFT JOIN `Profiles` ON (`Profiles`.`ID` = `sys_friend_list`.`Profile` AND `sys_friend_list`.`ID` = '$iIdProfile' OR `Profiles`.`ID` = `sys_friend_list`.`ID` AND `sys_friend_list`.`Profile` = '$iIdProfile') 26 WHERE (`sys_friend_list`.`Profile` = '$iIdProfile' OR `sys_friend_list`.`ID` = '$iIdProfile') AND `sys_friend_list`.`Check` = '1' 27 27 ORDER BY `Profiles`.`Picture` DESC");*/ 28 28 … … 42 42 43 43 $r = db_res (" 44 SELECT `Profiles`.* FROM ` FriendList`45 LEFT JOIN `Profiles` ON `Profiles`.`ID` = ` FriendList`.`ID`46 WHERE ` FriendList`.`Profile` = $iId AND `Check` = 044 SELECT `Profiles`.* FROM `sys_friend_list` 45 LEFT JOIN `Profiles` ON `Profiles`.`ID` = `sys_friend_list`.`ID` 46 WHERE `sys_friend_list`.`Profile` = $iId AND `Check` = 0 47 47 ORDER BY `Profiles`.`NickName` ASC"); 48 48 … … 64 64 $aMembersList = array ($iIdProfile); 65 65 $oCommunicator = &new BxTemplCommunicator('communicator_page', $aCommunicatorSettings); 66 $oCommunicator->execFunction('_deleteRequest', ' FriendList', $aMembersList);66 $oCommunicator->execFunction('_deleteRequest', 'sys_friend_list', $aMembersList); 67 67 68 68 return new xmlrpcval ('ok'); … … 79 79 $aMembersList = array ($iIdProfile); 80 80 $oCommunicator = &new BxTemplCommunicator('communicator_page', $aCommunicatorSettings); 81 $oCommunicator->execFunction('_acceptFriendInvite', ' FriendList', $aMembersList);81 $oCommunicator->execFunction('_acceptFriendInvite', 'sys_friend_list', $aMembersList); 82 82 83 83 return new xmlrpcval ('ok'); … … 94 94 $aMembersList = array ($iIdProfile); 95 95 $oCommunicator = &new BxTemplCommunicator('communicator_page', $aCommunicatorSettings); 96 $oCommunicator->execFunction( '_deleteRequest', ' FriendList', $aMembersList, array(1, 1));96 $oCommunicator->execFunction( '_deleteRequest', 'sys_friend_list', $aMembersList, array(1, 1)); 97 97 98 98 return new xmlrpcval ('ok');
Note: See TracChangeset
for help on using the changeset viewer.