clockwerk-www – Diff between revs 44 and 57
?pathlinks?
Rev 44 | Rev 57 | |||
---|---|---|---|---|
Line 16... | Line 16... | |||
16 | $resp=recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, |
16 | $resp=recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, |
|
17 | $_SERVER["REMOTE_ADDR"], |
17 | $_SERVER["REMOTE_ADDR"], |
|
18 | $_POST["recaptcha_challenge_field"], |
18 | $_POST["recaptcha_challenge_field"], |
|
19 | $_POST["recaptcha_response_field"]); |
19 | $_POST["recaptcha_response_field"]); |
|
Line -... | Line 20... | |||
- | 20 | |
||
- | 21 | ?> |
||
- | 22 | |
||
- | 23 | <!DOCTYPE html> |
||
- | 24 | <html> |
||
- | 25 | <head> |
||
- | 26 | <title>Clockwerk</title> |
||
- | 27 | <link rel="stylesheet" href="css/gray.css" type="text/css" /> |
||
- | 28 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
||
- | 29 | </head> |
||
- | 30 | <body class=dark-grey> |
||
- | 31 | <div class="center"> |
||
- | 32 | <img src="img/clockwerk-logo.png" alt="logo"> |
||
- | 33 | <h1><?php print gethostname(); ?></h1> |
||
- | 34 | <hr> |
||
- | 35 | |
||
- | 36 | <?php |
||
20 | |
37 | |
|
21 | if($resp->is_valid) { |
38 | if($resp->is_valid) { |
|
22 | $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); |
39 | $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); |
|
23 | $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); |
40 | $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); |
|
24 | $rep = new SimpleXMLElement($ret); |
41 | $rep = new SimpleXMLElement($ret); |
|
Line 43... | Line 60... | |||
43 | } |
60 | } |
|
44 | } |
61 | } |
|
Line 45... | Line 62... | |||
45 | |
62 | |
|
Line -... | Line 63... | |||
- | 63 | echo '<p>Sorry, incorrect CAPTCHA. Please try again.</p>'; |
||
- | 64 | |
||
- | 65 | ?> |
||
- | 66 | |
||
- | 67 | <p> |
||
- | 68 | <a class="button" href="welcome.php">Main Page</a> |
||
- | 69 | </p> |
||
- | 70 | </div> |
||
- | 71 | </body> |