HomeHelpTrac

Changeset 10863 for trunk/xmlrpc


Ignore:
Timestamp:
06/11/09 23:26:16 (3 years ago)
Author:
Leonid Sokushev
Message:
 
Location:
trunk/xmlrpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCImages.php

    r10413 r10863  
    55    function getImages($sUser, $sPwd, $sNick) 
    66    { 
    7         $sProfileCat = BxDolService::call('shared_photo', 'get_profile_cat', array(), 'Main'); 
     7        $sProfileCat = BxDolService::call('bx_photos', 'get_profile_cat', array()); 
    88        return BxDolXMLRPCImages::getImagesInCategory($sUser, $sPwd, $sNick, $sProfileCat); 
    99    } 
     
    2323            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct")); 
    2424 
    25         if (BxDolService::call('shared_photo', 'remove_file', array($iImageId), 'Main')) 
     25        if (BxDolService::call('bx_photos', 'remove_file', array($iImageId))) 
    2626            return new xmlrpcval ("ok"); 
    2727        return new xmlrpcval ("fail"); 
     
    3232        if (!($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 
    3333            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct")); 
    34  
     34/* 
    3535        if (BxDolService::call('shared_photo', 'make_thumbnail', array($iImageId), 'Main')) 
    36             return new xmlrpcval ("ok"); 
     36            return new xmlrpcval ("ok");*/ 
    3737        return new xmlrpcval ("fail"); 
    3838    } 
     
    6767        // upload 
    6868         
    69         $sProfileCat = BxDolService::call('shared_photo', 'get_profile_cat', array(), 'Main'); 
     69        $sProfileCat = BxDolService::call('bx_photos', 'get_profile_cat', array()); 
    7070 
    7171        $aFileInfo = array(); 
     
    7878 
    7979        //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')) 
    8181            return new xmlrpcval ("ok"); 
    8282        else 
  • trunk/xmlrpc/BxDolXMLRPCMedia.php

    r9985 r10863  
    4343        switch ($sType) { 
    4444            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'; 
    4949                break; 
    5050            case 'video': 
  • trunk/xmlrpc/BxDolXMLRPCUtil.php

    r9985 r10863  
    8484        global $oFunctions; 
    8585        $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'); 
    8787        return $aImageFile ? $aImageFile['file'] : false; 
    8888    } 
Note: See TracChangeset for help on using the changeset viewer.