clockwerk-www – Diff between revs 46 and 57
?pathlinks?
Rev 46 | Rev 57 | |||
---|---|---|---|---|
Line 26... | Line 26... | |||
26 | $resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, |
26 | $resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, |
|
27 | $_SERVER["REMOTE_ADDR"], |
27 | $_SERVER["REMOTE_ADDR"], |
|
28 | $_POST["recaptcha_challenge_field"], |
28 | $_POST["recaptcha_challenge_field"], |
|
29 | $_POST["recaptcha_response_field"]); |
29 | $_POST["recaptcha_response_field"]); |
|
Line -... | Line 30... | |||
- | 30 | |
||
- | 31 | ?> |
||
- | 32 | |
||
- | 33 | <!DOCTYPE html> |
||
- | 34 | <html> |
||
- | 35 | <head> |
||
- | 36 | <title>Clockwerk</title> |
||
- | 37 | <link rel="stylesheet" href="css/gray.css" type="text/css" /> |
||
- | 38 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
||
- | 39 | </head> |
||
- | 40 | <body class=dark-grey> |
||
- | 41 | <div class="center"> |
||
- | 42 | <img src="img/clockwerk-logo.png" alt="logo"> |
||
- | 43 | <h1><?php print gethostname(); ?></h1> |
||
- | 44 | <hr> |
||
- | 45 | |
||
- | 46 | <?php |
||
30 | |
47 | |
|
31 | if ($resp->is_valid) { |
48 | if ($resp->is_valid) { |
|
32 | $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); |
49 | $req = new wasRemoteAdmin('http://127.0.0.1:10000', 'opensim'); |
|
33 | $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); |
50 | $ret = $req->admin_authenticate_user($first, $last, MD5($password), '1'); |
|
34 | $rep = new SimpleXMLElement($ret); |
51 | $rep = new SimpleXMLElement($ret); |
|
Line 68... | Line 85... | |||
68 | } |
85 | } |
|
69 | } |
86 | } |
|
70 | } |
87 | } |
|
Line 71... | Line 88... | |||
71 | |
88 | |
|
- | 89 | echo '<p>Sorry, incorrect CAPTCHA. Please try again.</p>'; |
||
- | 90 | |
||
- | 91 | ?> |
||
- | 92 | |
||
- | 93 | <p> |
||
- | 94 | <a class="button" href="welcome.php">Main Page</a> |
||
- | 95 | </p> |
||
- | 96 | </div> |
||
- | 97 | </body> |