opensim-www
/account.php |
@@ -1,7 +1,7 @@ |
<?php |
|
require_once 'lib/recaptchalib.php'; |
require_once 'lib/wasRemoteAdmin.php'; |
require_once 'lib/kos.php'; |
require_once 'lib/uuid.php'; |
|
define('RECAPTCHA_PRIVATE_KEY', '6Lcz9ukSAAAAAC3u90rcOIdnNnaK_JgMjrOsSzZr'); |
@@ -30,20 +30,10 @@ |
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(); |
$ret = $req->admin_create_user($first, $last, $password, '128', '128'); |
$rep = new SimpleXMLElement($ret); |
foreach($rep->params->param->value->struct->member as $member) { |
if($member->name == "success" && $member->value->boolean == "0") { |
echo '<p>Sorry, the account could not be created.</p>'; |
break; |
} |
else { |
echo '<p>Account created successfully.</p>'; |
break; |
} |
} |
$req->send('create user '.$first.' '.$last.' '.$password.' '.$email.' '.$uuid); |
echo '<p>Account created successfully.</p>'; |
} |
?> |
</p> |