Your IP : 216.73.216.201


Current Path : /home/sunflowe/www2/vacancesfloride/_AncienSite/components/com_easycaptcha/
Upload File :
Current File : /home/sunflowe/www2/vacancesfloride/_AncienSite/components/com_easycaptcha/easycaptcha.php

<?php
/**
* EasyCaptcha
* @version 1.3 Stable
* @package EasyCaptcha
* @license Released under the terms of the GNU General Public License (see LICENSE.php in the Joomla! root directory)
* @author EasyJoomla.org - Project
**/

// No direct cccess
defined('_JEXEC') or die('Restricted access');
// Define includepath
defined('ABSOLUTEPATH') or define( 'ABSOLUTEPATH', dirname(__FILE__) );

require_once(ABSOLUTEPATH."/class.easycaptcha.php");

$captcha_id = strval( JRequest::getVar( "captcha_id", null));
$captcha_code	= strval( JRequest::getVar( "captcha_code", null));


$captcha = new EasyCaptcha($captcha_id);
if(!$captcha->checkEnteredCode($captcha_code))
{
	echo "false";
}
else
{
	echo "true";
}

?>