opensim-www
/sendiar.php |
@@ -15,8 +15,8 @@ |
$_POST["recaptcha_response_field"]); |
|
if($resp->is_valid) { |
$req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); |
$ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); |
$req = new KOS_Authenticate('http://127.0.0.1:10000', 'opensim'); |
$ret = $req->authenticate($first, $last, MD5($password), '1'); |
$rep = new SimpleXMLElement($ret); |
foreach($rep->params->param->value->struct->member as $member) { |
if($member->name == "success" && $member->value->boolean == "0") { |
/account.php |
@@ -30,9 +30,9 @@ |
echo '<p>Sorry, incorrect captcha. Please try again.</p>'; |
} |
else { |
$req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); |
$req = new KOS('http://127.0.0.1:10000', 'opensim'); |
$uuid = UUID::v4(); |
$req->admin_console_command('create user '.$first.' '.$last.' '.$password.' '.$email.' '.$uuid); |
$req->send('create user '.$first.' '.$last.' '.$password.' '.$email.' '.$uuid); |
echo '<p>Account created successfully.</p>'; |
} |
?> |