opensim-www – Diff between revs 10 and 14

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 10 Rev 14
Line 30... Line 30...
30 echo '<p>Sorry, incorrect captcha. Please try again.</p>'; 30 echo '<p>Sorry, incorrect captcha. Please try again.</p>';
31 } 31 }
32 else { 32 else {
33 $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); 33 $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim');
34 $uuid = UUID::v4(); 34 $uuid = UUID::v4();
35 $req->admin_console_command('create user '.$first.' '.$last.' '.$password.' '.$email.' '.$uuid); 35 $ret = $req->admin_create_user($first, $last, $password, '128', '128');
-   36 $rep = new SimpleXMLElement($ret);
-   37 foreach($rep->params->param->value->struct->member as $member) {
-   38 if($member->name == "success" && $member->value->boolean == "0") {
-   39 echo '<p>Sorry, the account could not be created.</p>';
-   40 }
-   41 else {
36 echo '<p>Account created successfully.</p>'; 42 echo '<p>Account created successfully.</p>';
-   43 }
-   44 }
37 } 45 }
38 ?> 46 ?>
39 </p> 47 </p>
40 <p> 48 <p>
41 <a class="so_button" href="register.php">Create a New Account</a> 49 <a class="so_button" href="register.php">Create a New Account</a>