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

Land Buy Not Active in Viewer

  • このフォーラムに新しいトピックを立てることはできません
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 | 投稿日時 2013-9-18 8:31
terry43720  Just popping in   投稿数: 3
I have the 7.6DEV version of your money server up and running on a windows server (server 2008 R2 64bit) with opensim 7.6PF.

I have the landtool.php file on a linux server running apache/php5.4.19/mysql5.5.32.

Global variables are turned off on the webserver.

The landtool.php file is accessible via a subdomain... http://economy.myserver.com/ or http://www.myserver.com/economy/

My helperuri is addressed as: http://myserver.com/economy/

My opensim.ini includes:
LandServer = "http://myserver.com/economy/landtool.php"
UserServer = "http://testgrid.myserver.com:8008/" ;; not use localhost or 127.0.0.1
CurrencyServer = "https://74.89.233.132:8015/" ;; not use localhost or 127.0.0.1
EconomyModule = DTLNSLMoneyModule

My custom landtool.php file is included below.

I have the correct sink/source uuid's in the file.

I can buy and sell items, give money to another avatar, receive money from another avatar, but I cannot get the "Buy Land" to light up in the viewer.

After the land is set for sale, everything appears as it should, except the buyer does not have a "Buy Land" option in the viewer... it is not lit up and therefore the user cannot buy.

We have tried setting the land for sale to a specific user or to anyone with no change.

I have tried using several landtools.php files but cannot get this feature to work.

Can you help me?

Thank-you.

//<?PHP
#
# Copyright (c)Melanie Thielker and Teravus Ovares (http://opensimulator.org/)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the OpenSim Project nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

//For testing only.....
//validate_user($agent_id,$s_session_id);


#

# updated for Robust installations: BlueWall 2011

#
# Settings
#

# Set this to your economy source / sink accounts
$economy_source_account = "f9540c73-0655-49b9-b534-4f0e9b3d9359";
$economy_sink_account="f9540c73-0655-49b9-b534-4f0e9b3d9359";

# Tables
$presence = "presence";

$xmlrpc_server = xmlrpc_server_create();

function process_transaction($avatarId, $amount, $ipAddress)
{
# Do Credit Card Processing here! Return False if it fails!
# Remember, $amount is stored without decimal places, however it's assumed
# that the transaction amount is in Cents and has two decimal places
# 5 dollars will be 500
# 15 dollars will be 1500

return True;
}

function validate_user($agent_id, $s_session_id)
{
//global $dbhost, $dbuser, $dbpass, $dbname;


$dbhost = "74.89.233.132:3310";
$dbname = "robust";
$dbuser = "mydbuser";
$dbpass = "mydbpass";


$agentid = mysql_escape_string($agent_id);
$sessionid = mysql_escape_string($s_session_id);

$link = mysql_connect($dbhost, $dbuser, $dbpass)
or die('ERROR: '.mysql_error());
mysql_select_db($dbname);

$query = "select UserID from presence where UserID='".$agentid."' and SecureSessionID = '".$sessionid."'";

$result = mysql_query($query)
or die('ERROR: '.mysql_error());

$row = mysql_fetch_assoc($result);


return $row['UserID'];


}


xmlrpc_server_register_method($xmlrpc_server, "preflightBuyLandPrep",
"buy_land_prep");

function buy_land_prep($method_name, $params, $app_data)
{
#global $dbhost, $dbuser, $dbpass, $dbname;

$dbhost = "74.89.233.132:3310";
$dbname = "robust";
$dbuser = "mydbuser";
$dbpass = "mydbpass";

$confirmvalue = "";
$req = $params[0];
$agentid = $req['agentId'];
$sessionid = $req['secureSessionId'];
$amount = $req['currencyBuy'];
$billableArea = $req['billableArea'];

$ID = validate_user($agentid, $sessionid);

if($ID)
{
$membership_levels = array(
'levels' => array(
'id' => "00000000-0000-0000-0000-000000000000",
'description' => "some level"));

$landUse = array(
'upgrade' => False,
'action' => "".SYSURL."");

$currency = array(
'estimatedCost' => "200.00"); // convert_to_real($amount));

$membership = array(
'upgrade' => False,
'action' => "".SYSURL."",
'levels' => $membership_levels);

$response_xml = xmlrpc_encode(array(
'success' => True,
'currency' => $currency,
'membership' => $membership,
'landUse' => $landUse,
'currency' => $currency,
'confirm' => $confirmvalue));

header("Content-type: text/xml");
print $response_xml;
}
else
{
header("Content-type: text/xml");
$response_xml = xmlrpc_encode(array(
'success' => False,
'errorMessage' => "\n\nUnable to Authenticate\n\nClick URL for more info.",
'errorURI' => "".SYSURL.""));

print $response_xml;
}

return "";
}

$request_xml = $HTTP_RAW_POST_DATA;
xmlrpc_server_call_method($xmlrpc_server, $request_xml, '');
xmlrpc_server_destroy($xmlrpc_server);



//?>
投票数:87 平均点:6.78
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013-9-19 9:54
terry43720  Just popping in   投稿数: 3
Bump......

Any ideas?
投票数:95 平均点:2.21
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013-9-20 9:34
terry43720  Just popping in   投稿数: 3
Found the answer... for anyone else with this type of issue.....

Make sure the land type you are buying is the correct rating! :(
My avatar's viewer was set for PG while the land which was for sale was set to Mature.

I changed the rating from mature to PG and had no further problems... land purchase worked as it should.
Easy problem to fix... but trying to find the reason took a long time and I now have less hair on my head than I did before.
投票数:52 平均点:3.65

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月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
<今日>

オンライン状況

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

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

もっと...

アクセスカウンタ

今日 : 1469214692146921469214692
昨日 : 1753317533175331753317533
総計 : 2347783523477835234778352347783523477835234778352347783523477835
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com