flagflag  

Re: Setup issues

List posts in the topic

なし Re: Setup issues

msg# 1.20
depth:
1
Previous post - Next post | Parent - No child | Posted on 2011/3/7 22:14
Draven190  Not too shy to talk   Posts: 24
This is the add money section of the helpers.php

function add_money($agentID, $amount, $secureID=null)
{
if (!isGUID($agentID)) return false;
error_log(4);
//
if (!USE_CURRENCY_SERVER) {
env_set_money_transaction(null, $agentID, $amount, 5010, 0, "Add Money", 0, 0, "");
$res["success"] = true;
error_log(1);
return $res;
}

//
// XML RPC to Region Server
//
if (!isGUID($secureID, true)) return false;
error_log($agentID);
try{
$results = opensim_get_server_info($agentID);
}catch(Exception $e){
error_log(print_r($e,1));
}
if (!$results) return false;
$serverip = $results["serverIP"];
$httpport = $results["serverHttpPort"];
$serveruri = $results["serverURI"];

$results = opensim_get_avatar_session($agentID);
error_log(3);
if (!$results) return false;
$sessionID = $results["sessionID"];
if ($secureID==null) $secureID = $results["secureID"];

$req = array('bankerID'=>$agentID, 'bankerSessionID'=>$sessionID, 'bankerSecureSessionID'=>$secureID, 'amount'=>$amount);
$params = array($req);
$request = xmlrpc_encode_request('AddBankerMoney', $params);
$response = do_call($serverip, $httpport, $serveruri, $request);

return $response;
}

It outputs 4 to the error log but no other numbers and it does provide the $agentID for the results
Votes:125 Average:4.00

Posts tree

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthJul 2025Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Today

Who's Online

82 user(s) are online (2 user(s) are browsing Forum)

Members: 0
Guests: 82

more...

Access Counter

Today : 3950395039503950
Yesterday : 1107311073110731107311073
Total : 2744692027446920274469202744692027446920274469202744692027446920
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com