logo


is_valid) { case TRUE: $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); $rep = new SimpleXMLElement($ret); foreach($rep->params->param->value->struct->member as $member) { switch($member->name) { case "success": switch((bool)$member->value->boolean) { case TRUE: if (file_exists($file)) { chmod($file, 0644); $req->admin_console_command('load iar -m '.$first. ' '.$last.' / '.$file); chmod($file, 0600); echo '

IAR uploaded successfully.

'; } goto last; default: echo '

Sorry, wrong password.

'; goto last; } break; } } default: echo '

Sorry, incorrect CAPTCHA. Please try again.

'; } last: ?>