Rev 294 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 294 | Rev 360 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | * See the License for the specific language governing permissions and |
16 | * See the License for the specific language governing permissions and |
17 | * limitations under the License. |
17 | * limitations under the License. |
18 | */ |
18 | */ |
19 | 19 | ||
- | 20 | // TODO: Translate |
|
- | 21 | ||
20 | require_once __DIR__ . '/../../../includes/oidplus.inc.php'; |
22 | require_once __DIR__ . '/../../../includes/oidplus.inc.php'; |
21 | 23 | ||
22 | ob_start(); // allow cookie headers to be sent |
24 | ob_start(); // allow cookie headers to be sent |
23 | 25 | ||
24 | header('Content-Type:text/html; charset=UTF-8'); |
26 | header('Content-Type:text/html; charset=UTF-8'); |
Line 76... | Line 78... | ||
76 | $secret=OIDplus::baseConfig()->getValue('RECAPTCHA_PRIVATE', ''); |
78 | $secret=OIDplus::baseConfig()->getValue('RECAPTCHA_PRIVATE', ''); |
77 | $response=$_POST["g-recaptcha-response"]; |
79 | $response=$_POST["g-recaptcha-response"]; |
78 | $verify=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret={$secret}&response={$response}"); |
80 | $verify=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret={$secret}&response={$response}"); |
79 | $captcha_success=json_decode($verify); |
81 | $captcha_success=json_decode($verify); |
80 | if ($captcha_success->success==false) { |
82 | if ($captcha_success->success==false) { |
81 | echo '<p><font color="red"><b>CAPTCHA not sucessfully verified</b></font></p>'; |
83 | echo '<p><font color="red"><b>CAPTCHA not successfully verified</b></font></p>'; |
82 | $errors_happened = true; |
84 | $errors_happened = true; |
83 | $edits_possible = false; |
85 | $edits_possible = false; |
84 | } |
86 | } |
85 | } |
87 | } |
86 | } |
88 | } |
Line 177... | Line 179... | ||
177 | 179 | ||
178 | echo '<p><u>Your OIDplus system ID (derived from the public key) is:</u></p>'; |
180 | echo '<p><u>Your OIDplus system ID (derived from the public key) is:</u></p>'; |
179 | 181 | ||
180 | echo '<b>'; |
182 | echo '<b>'; |
181 | $sysid_oid = OIDplus::getSystemId(true); |
183 | $sysid_oid = OIDplus::getSystemId(true); |
182 | if (!$sysid_oid) $sysid_oid = 'unknown'; |
184 | if (!$sysid_oid) $sysid_oid = _L('Unknown!'); |
183 | echo htmlentities($sysid_oid); |
185 | echo htmlentities($sysid_oid); |
184 | echo '</b>'; |
186 | echo '</b>'; |
185 | 187 | ||
186 | echo '<p><u>Your public key is</u></p>'; |
188 | echo '<p><u>Your public key is</u></p>'; |
187 | 189 |