flagflag  If you want to see English page, please click "English" Button at Left.

Re: Setup issues

このトピックの投稿一覧へ

なし Re: Setup issues

msg# 1.20
depth:
1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-3-7 22:14
Draven190  Not too shy to talk   投稿数: 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
投票数:108 平均点:4.26

投稿ツリー

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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
<今日>

オンライン状況

43 人のユーザが現在オンラインです。 (1 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 43

もっと...

アクセスカウンタ

今日 : 7001700170017001
昨日 : 1361113611136111361113611
総計 : 2364540823645408236454082364540823645408236454082364540823645408
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com