mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ef10672364
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92488 467b73ca-7a2a-4603-9d3b-597d59a354a9
14 lines
315 B
PHP
14 lines
315 B
PHP
<?php
|
|
|
|
// Begin the session
|
|
session_start();
|
|
|
|
// To avoid case conflicts, make the input uppercase and check against the session value
|
|
// If it's correct, echo '1' as a string
|
|
if(strtoupper($_GET['captcha']) == $_SESSION['captcha_id'])
|
|
echo 'true';
|
|
// Else echo '0' as a string
|
|
else
|
|
echo 'false';
|
|
|
|
?>
|