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

[BEGIN_SED]
File=plugins/scaptcha/scaptcha.tags.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=register.tags
File=scaptcha.tags
Hooks=users.register.tags
Tags=users.register.tpl:{USERS_REGISTER_VERIFYIMG},{USERS_REGISTER_VERIFYINPUT}
Order=10
[END_SED_EXTPLUGIN]

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

if (!defined('SED_CODE')) { die("Wrong URL."); }

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

$verifyimg = "<img src=\"plugins/scaptcha/inc/captcha.php\" id=\"cha\" /><br />";

$verifyimg .= "<a href=\"users.php?m=register#change-image\" onclick=\"document.getElementById('cha').src='plugins/scaptcha/inc/captcha.php?'+Math.random();
      document.getElementById('captcha-form').focus();\" id=\"change-image\" style=\"font-size:10px;\" name=\"change-image\">".$L['plu_scaptcha_noties']."</a>";

$verifyinput = "<input type=\"text\" name=\"rverify\" id=\"captcha-form\" />";

$t->assign(array(
    "USERS_REGISTER_VERIFYIMG" => $verifyimg,
    "USERS_REGISTER_VERIFYINPUT" => $verifyinput
    ));

?>