opensim-www

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 13  →  ?path2? @ 14
/account.php
@@ -32,8 +32,16 @@
else {
$req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim');
$uuid = UUID::v4();
$req->admin_console_command('create user '.$first.' '.$last.' '.$password.' '.$email.' '.$uuid);
echo '<p>Account created successfully.</p>';
$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>';
}
else {
echo '<p>Account created successfully.</p>';
}
}
}
?>
</p>