<?php
/* ====================
Seditio - Website engine
Copyright Neocrome & Russian Seditio Team 
http://www.neocrome.net http://ldu.ru

[BEGIN_SED]
File=plugins/scaptcha/scaptcha.validate.php
Version=171
Updated=2012-sep-09
Type=Plugin
Author=Amro
Description=Plugin to protect the registration process with a Cool PHP Captcha.
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=scaptcha
Part=validation
File=scaptcha.validate
Hooks=users.register.add.first
Tags=
Order=10
[END_SED_EXTPLUGIN]

==================== */

$rverify  = sed_import('rverify','P','TXT');

require("plugins/scaptcha/lang/scaptcha.".$usr['lang'].".lang.php");

if (empty($_SESSION['captcha']) || trim(strtolower($rverify)) != $_SESSION['captcha']) {
   $error_string .= $L['plu_verification_failed']."<br />";
}

?>