cotonti.com : CAPTCHA https://www.cotonti.com Son konu mesajları Cotonti en Fri, 09 Jan 2026 16:08:31 -0000 esclkm Trustmaster the following solution on the CAPTCHA use was worked out.
The idea is to lighten all plugins utilizing CAPTCHA, except CAPTCHA plugins themselves by declaring
functions XXXcaptcha_validate() and XXXcaptcha_generate() in the CAPTCHA plugin and including them in the standard $sed_captcha_validate and $sed_captcha_generate arrays.
The functions shall be used in the client plugin as follows:
function sed_captcha_validate($func_index = 0)
{
 global $sed_captcha_validate;
 if(!empty($sed_captcha_validate[$func_index]))
 {
  return $sed_captcha_validate[$func_index]();
 }
 else
 {
  return TRUE; // no captcha found, bypass
 }
}
(similar for generate)
Your opinions on this solution, alternative solutions and suggestions are welcome.]]>
Cmt, 28 Mar 2009 20:05:19 -0000