Changeset 7936 for trunk/xmlrpc/BxDolXMLRPCFriends.php
- Timestamp:
- 12/09/08 10:52:37 (3 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc/BxDolXMLRPCFriends.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCFriends.php
r7703 r7936 5 5 function getFriends($sUser, $sPwd, $sNick) 6 6 { 7 $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1");7 $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 8 8 if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 9 9 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); … … 40 40 function declineFriendRequest($sUser, $sPwd, $sNick) 41 41 { 42 $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1");42 $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 43 43 if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 44 44 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); … … 59 59 function acceptFriendRequest($sUser, $sPwd, $sNick) 60 60 { 61 $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1");61 $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 62 62 if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 63 63 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); … … 78 78 function removeFriend($sUser, $sPwd, $sNick) 79 79 { 80 $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1");80 $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 81 81 if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 82 82 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); … … 97 97 function addFriend($sUser, $sPwd, $sNick, $sLang) 98 98 { 99 $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1");99 $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 100 100 if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 101 101 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct"));
Note: See TracChangeset
for help on using the changeset viewer.