Registration wont work?
- このフォーラムに新しいトピックを立てることはできません
- このフォーラムではゲスト投稿が禁止されています
Registration wont work?
msg# 1
tinytime
投稿数: 22
i followed all the instructions on the web page on opensim but everytime i do a request i get "Failure" returned i did the registration in PHP it is running on a linux server with everything enabled.
i also enabled the things in the robust.ini but it wont work for some reason, can anyone help me to see if i did anything wrong?
this is my PHP code:
<?
function getGUID(){
if (function_exists('com_create_guid')){
return com_create_guid();
}else{
mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
$charid = strtolower(md5(uniqid(rand(), true)));
$hyphen = chr(45);// "-"
$uuid =substr($charid, 0, 8).$hyphen
.substr($charid, 8, 4).$hyphen
.substr($charid,12, 4).$hyphen
.substr($charid,16, 4).$hyphen
.substr($charid,20,12);
return $uuid;
}
}
$new_UUID = getGUID();
$fields = array(
'METHOD' => "createuser",
'FirstName' => "testFirst",
'LastName' => "testLast",
'Password' => "123456",
'Email' => "test@test.com",
'PrincipalID' => $new_UUID);
$ch = curl_init("http://<my-IP>:8003/accounts");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
echo "Return code:" . $info['http_code'] . "<br>";
echo "$result";
?>
i have debug on and it does say that there is a request there
i also enabled the things in the robust.ini but it wont work for some reason, can anyone help me to see if i did anything wrong?
this is my PHP code:
<?
function getGUID(){
if (function_exists('com_create_guid')){
return com_create_guid();
}else{
mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
$charid = strtolower(md5(uniqid(rand(), true)));
$hyphen = chr(45);// "-"
$uuid =substr($charid, 0, 8).$hyphen
.substr($charid, 8, 4).$hyphen
.substr($charid,12, 4).$hyphen
.substr($charid,16, 4).$hyphen
.substr($charid,20,12);
return $uuid;
}
}
$new_UUID = getGUID();
$fields = array(
'METHOD' => "createuser",
'FirstName' => "testFirst",
'LastName' => "testLast",
'Password' => "123456",
'Email' => "test@test.com",
'PrincipalID' => $new_UUID);
$ch = curl_init("http://<my-IP>:8003/accounts");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
echo "Return code:" . $info['http_code'] . "<br>";
echo "$result";
?>
i have debug on and it does say that there is a request there
投票数:65
平均点:4.00
Re: Registration wont work?
msg# 1.1
iseki
投稿数: 1581
Hi
Where is the Web page which you looked at?
We rewrite DB directly, when new user is added.
Where is the Web page which you looked at?
We rewrite DB directly, when new user is added.
投票数:60
平均点:4.83
Re: Registration wont work?
msg# 1.2
tinytime
投稿数: 22
this is the web page: http://opensimulator.org/wiki/UserManipulation
i tried that but when the user tries to login it cant find the inventory, i thought it would make it automatically on the first login
i tried that but when the user tries to login it cant find the inventory, i thought it would make it automatically on the first login
投票数:64
平均点:4.06
Re: Registration wont work?
msg# 1.2.1
iseki
投稿数: 1581
引用:
I will try it, too.
引用:
When you rewrite DB directly, you must make inventory folder by manual.
Our php library is http://www.nsl.tuis.ac.jp/svn/opensim/opensim.phplib/trunk (Subversion)
If it is well, please refer to it.
this is the web page: http://opensimulator.org/wiki/UserManipulation
I will try it, too.
引用:
i tried that but when the user tries to login it cant find the inventory, i thought it would make it automatically on the first login
When you rewrite DB directly, you must make inventory folder by manual.
Our php library is http://www.nsl.tuis.ac.jp/svn/opensim/opensim.phplib/trunk (Subversion)
If it is well, please refer to it.
投票数:48
平均点:5.63
Re: Registration wont work?
msg# 1.2.1.1
iseki
投稿数: 1581
引用:
Oh... It was included in opensim.currency already.
Our php library is http://www.nsl.tuis.ac.jp/svn/opensim/opensim.phplib/trunk (Subversion)
Oh... It was included in opensim.currency already.
投票数:52
平均点:4.04
Re: Registration wont work?
msg# 1.3
tinytime
投稿数: 22
i can't seem to find the code that makes the inventory in that structure
投票数:59
平均点:4.41
Re: Registration wont work?
msg# 1.3.1
iseki
投稿数: 1581
引用:
for create avatar is opensim_create_avatar() in opensim.mysql.php
for create inventory folder is opensim_create_inventory_folders() in opensim.mysql.php
tinytime wrotes:
i can't seem to find the code that makes the inventory in that structure
for create avatar is opensim_create_avatar() in opensim.mysql.php
for create inventory folder is opensim_create_inventory_folders() in opensim.mysql.php
投票数:44
平均点:6.14
Re: Registration wont work?
msg# 1.4
tinytime
投稿数: 22
thanks, i must have reading over it.
btw, do you have the code for the map? because every time i try to create one i can't seem to get the images off my server
btw, do you have the code for the map? because every time i try to create one i can't seem to get the images off my server
投票数:49
平均点:3.47
Re: Registration wont work?
msg# 1.4.1
iseki
投稿数: 1581
What kind of map? World map?
Is it the following?
http://www.nsl.tuis.ac.jp/xoops/modules/xoopensim/?action=map
Is it the following?
http://www.nsl.tuis.ac.jp/xoops/modules/xoopensim/?action=map
投票数:56
平均点:3.57
Re: Registration wont work?
msg# 1.5
tinytime
投稿数: 22
yes, i want to create that but every time i try to get the image of the region it gives me a 404 message.
what is the link i should use?
what is the link i should use?
投票数:65
平均点:3.69
Re: Registration wont work?
msg# 1.6
tinytime
投稿数: 22
or if you can send me the source code of the map you have on here
投票数:59
平均点:4.58
Re: Registration wont work?
msg# 1.6.1
iseki
投稿数: 1581
This original code is from OpenSimWiRedux.
Our modified code is included in opensim.currency.
opensim.currency/Scripts/opensimwiredux/map_script.php and map.css
We use this code calling from XoopenSim or Modlos.
XoopenSim and Modlos are our Web Interface for OpenSim and they are open source.
XoopenSim: http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?XoopenSim%20%28E%29
Modlos: http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?Modlos%20%28E%29
If you want to modify the code for your Web system, modlos/html/world_map.html will be more intelligible.
Our modified code is included in opensim.currency.
opensim.currency/Scripts/opensimwiredux/map_script.php and map.css
We use this code calling from XoopenSim or Modlos.
XoopenSim and Modlos are our Web Interface for OpenSim and they are open source.
XoopenSim: http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?XoopenSim%20%28E%29
Modlos: http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?Modlos%20%28E%29
If you want to modify the code for your Web system, modlos/html/world_map.html will be more intelligible.
投票数:81
平均点:6.17