opensim-www

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 5  →  ?path2? @ 6
/sendiar.php
@@ -17,6 +17,13 @@
if($resp->is_valid) {
$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") {
echo 'Sorry, wrong password.';
exit;
}
}
$iar_path = '/var/lib/iar/'.$first.'_'.$last.'/'.$first.'_'.$last.'.iar';
if(file_exists($iar_path)) {
if(false !== ($handler = fopen($iar_path, 'r'))) {
@@ -38,3 +45,4 @@
}
echo '<p>Sorry, incorrect captcha. Please try again.</p>';