Changeset 10863 for trunk/xmlrpc
- Timestamp:
- 06/11/09 23:26:16 (3 years ago)
- Location:
- trunk/xmlrpc
- Files:
-
- 3 edited
-
BxDolXMLRPCImages.php (modified) (5 diffs)
-
BxDolXMLRPCMedia.php (modified) (1 diff)
-
BxDolXMLRPCUtil.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCImages.php
r10413 r10863 5 5 function getImages($sUser, $sPwd, $sNick) 6 6 { 7 $sProfileCat = BxDolService::call(' shared_photo', 'get_profile_cat', array(), 'Main');7 $sProfileCat = BxDolService::call('bx_photos', 'get_profile_cat', array()); 8 8 return BxDolXMLRPCImages::getImagesInCategory($sUser, $sPwd, $sNick, $sProfileCat); 9 9 } … … 23 23 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct")); 24 24 25 if (BxDolService::call(' shared_photo', 'remove_file', array($iImageId), 'Main'))25 if (BxDolService::call('bx_photos', 'remove_file', array($iImageId))) 26 26 return new xmlrpcval ("ok"); 27 27 return new xmlrpcval ("fail"); … … 32 32 if (!($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 33 33 return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct")); 34 34 /* 35 35 if (BxDolService::call('shared_photo', 'make_thumbnail', array($iImageId), 'Main')) 36 return new xmlrpcval ("ok"); 36 return new xmlrpcval ("ok");*/ 37 37 return new xmlrpcval ("fail"); 38 38 } … … 67 67 // upload 68 68 69 $sProfileCat = BxDolService::call(' shared_photo', 'get_profile_cat', array(), 'Main');69 $sProfileCat = BxDolService::call('bx_photos', 'get_profile_cat', array()); 70 70 71 71 $aFileInfo = array(); … … 78 78 79 79 //Todo .. I can`t perform updating of omages by avatars. possible later 80 if (BxDolService::call(' shared_photo', 'perform_photo_upload', array($sTmpFilename, $aFileInfo, $isUpdateThumb), 'Uploader'))80 if (BxDolService::call('bx_photos', 'perform_photo_upload', array($sTmpFilename, $aFileInfo, $isUpdateThumb), 'Uploader')) 81 81 return new xmlrpcval ("ok"); 82 82 else -
trunk/xmlrpc/BxDolXMLRPCMedia.php
r9985 r10863 43 43 switch ($sType) { 44 44 case 'photo': 45 $sTable = 'bx_ shared_photo_files';46 $sFieldId = ' medID';47 $sFieldOwner = ' medProfId';48 $sType = ' shared_photo';45 $sTable = 'bx_photos_files'; 46 $sFieldId = 'ID'; 47 $sFieldOwner = 'Owner'; 48 $sType = 'bx_photos'; 49 49 break; 50 50 case 'video': -
trunk/xmlrpc/BxDolXMLRPCUtil.php
r9985 r10863 84 84 global $oFunctions; 85 85 $aProfileInfo = getProfileInfo( $iId ); 86 $aImageFile = BxDolService::call(' shared_photo', 'get_image', array($aProfileInfo, $sType), 'Search');86 $aImageFile = BxDolService::call('bx_photos', 'get_image', array($aProfileInfo, $sType), 'Search'); 87 87 return $aImageFile ? $aImageFile['file'] : false; 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.