HomeHelpTrac

Ignore:
Timestamp:
12/09/08 10:52:37 (3 years ago)
Author:
hihi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCMedia.php

    r7933 r7936  
    55    function getVideoInCategory($sUser, $sPwd, $sNick, $iCatId) 
    66    { 
    7         $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1"); 
     7        $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 
    88        if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 
    99            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); 
     
    2020            ); 
    2121            $aMedia[] = new xmlrpcval($a, 'struct'); 
     22 
     23            $a = array ( 
     24                'id' => new xmlrpcval(2), 
     25                'title' => new xmlrpcval('title22'), 
     26                'desc' => new xmlrpcval('desc22'), 
     27                'icon' =>new xmlrpcval('http://www.boonex.us/ray/modules/movie/files/475_small.jpg'), 
     28                'file' =>new xmlrpcval('http://www.boonex.us/222.mp4'), 
     29                'cat' =>new xmlrpcval(1), 
     30            ); 
     31            $aMedia[] = new xmlrpcval($a, 'struct'); 
    2232        } 
    2333 
     
    2838    function getAudioInCategory($sUser, $sPwd, $sNick, $iCatId) 
    2939    { 
    30         $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1"); 
     40        $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 
    3141        if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 
    3242            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); 
     
    5565    function getVideoCategories ($sUser, $sPwd, $sNick) 
    5666    { 
    57         $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1"); 
     67        $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick); 
    5868        if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd))) 
    5969            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); 
Note: See TracChangeset for help on using the changeset viewer.