HomeHelpTrac

Ignore:
Timestamp:
04/06/09 01:55:00 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCFriends.php

    r9901 r9967  
    1414            SELECT p.* 
    1515            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) 
    1818            WHERE 1 
    1919            AND (f1.`ID` IS NOT NULL OR f2.`ID` IS NOT NULL) 
     
    2222        $r = db_res($sFriendsSQL); 
    2323 
    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'  
    2727            ORDER BY `Profiles`.`Picture` DESC");*/ 
    2828 
     
    4242 
    4343        $r = db_res (" 
    44             SELECT `Profiles`.* FROM `FriendList` 
    45             LEFT JOIN `Profiles` ON `Profiles`.`ID` = `FriendList`.`ID` 
    46             WHERE `FriendList`.`Profile` = $iId AND `Check` = 0 
     44            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 
    4747            ORDER BY `Profiles`.`NickName` ASC"); 
    4848 
     
    6464        $aMembersList = array ($iIdProfile); 
    6565        $oCommunicator = &new BxTemplCommunicator('communicator_page', $aCommunicatorSettings);    
    66         $oCommunicator->execFunction('_deleteRequest', 'FriendList', $aMembersList); 
     66        $oCommunicator->execFunction('_deleteRequest', 'sys_friend_list', $aMembersList); 
    6767 
    6868        return new xmlrpcval ('ok'); 
     
    7979        $aMembersList = array ($iIdProfile); 
    8080        $oCommunicator = &new BxTemplCommunicator('communicator_page', $aCommunicatorSettings);    
    81         $oCommunicator->execFunction('_acceptFriendInvite', 'FriendList', $aMembersList); 
     81        $oCommunicator->execFunction('_acceptFriendInvite', 'sys_friend_list', $aMembersList); 
    8282 
    8383        return new xmlrpcval ('ok'); 
     
    9494        $aMembersList = array ($iIdProfile); 
    9595        $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)); 
    9797 
    9898        return new xmlrpcval ('ok'); 
Note: See TracChangeset for help on using the changeset viewer.