opensim-www – Diff between revs 5 and 6

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 5 Rev 6
Line 15... Line 15...
15 $_POST["recaptcha_response_field"]); 15 $_POST["recaptcha_response_field"]);
Line 16... Line 16...
16   16  
17 if($resp->is_valid) { 17 if($resp->is_valid) {
18 $req = new KOS_Authenticate('http://127.0.0.1:10000', 'opensim'); 18 $req = new KOS_Authenticate('http://127.0.0.1:10000', 'opensim');
-   19 $ret = $req->authenticate($first, $last, MD5($password), '1');
-   20 $rep = new SimpleXMLElement($ret);
-   21 foreach($rep->params->param->value->struct->member as $member) {
-   22 if($member->name == "success" && $member->value->boolean == "0") {
-   23 echo 'Sorry, wrong password.';
-   24 exit;
-   25 }
19 $ret = $req->authenticate($first, $last, MD5($password), '1'); 26 }
20 $iar_path = '/var/lib/iar/'.$first.'_'.$last.'/'.$first.'_'.$last.'.iar'; 27 $iar_path = '/var/lib/iar/'.$first.'_'.$last.'/'.$first.'_'.$last.'.iar';
21 if(file_exists($iar_path)) { 28 if(file_exists($iar_path)) {
22 if(false !== ($handler = fopen($iar_path, 'r'))) { 29 if(false !== ($handler = fopen($iar_path, 'r'))) {
23 header('Content-Description: File Transfer'); 30 header('Content-Description: File Transfer');
Line 36... Line 43...
36 exit; 43 exit;
37 } 44 }
38 } 45 }
Line 39... Line 46...
39 46
-   47 echo '<p>Sorry, incorrect captcha. Please try again.</p>';