HomeHelpTrac

Changeset 7682 for trunk/xmlrpc


Ignore:
Timestamp:
11/25/08 10:40:41 (4 years ago)
Author:
hihi
Message:
 
Location:
trunk/xmlrpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCServer.php

    r7681 r7682  
    3333    } 
    3434 
    35     function getUserInfoExtra($sUser, $sPwd, $sNick) 
    36     { 
    37         $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1"); 
    38         if (!$iIdProfile || !($iId = BxDolXMLRPCServer::_checkLogin ($sUser, $sPwd))) 
    39             return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); 
     35    function getUserInfoExtra($sUser, $sPwd, $sNick, $sLang) 
     36    { 
     37        $iIdProfile = (int)db_value ("SELECT `ID` FROM `Profiles` WHERE `NickName` = '$sNick' LIMIT 1"); 
     38        if (!$iIdProfile || !($iId = BxDolXMLRPCServer::_checkLogin ($sUser, $sPwd))) 
     39            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "scruct")); 
     40 
     41        BxDolXMLRPCServer::_setLanguage ($sLang);  
    4042 
    4143        $o = new BxDolXMLRPCProfileView ($iIdProfile); 
  • trunk/xmlrpc/index.php

    r7681 r7682  
    3838            "dolphin.getUserInfoExtra" => array( 
    3939                "function" => "BxDolXMLRPCServer::getUserInfoExtra", 
    40                 "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)), 
     40                "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)), 
    4141                "docstring" => "return extended users information", 
    4242            ),                         
Note: See TracChangeset for help on using the changeset viewer.