| verzia 1.102, 2012/10/02 08:25:14 |
verzia 1.103, 2012/10/02 08:38:24 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.101 2012-09-28 18:49:48 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.102 2012-10-02 08:25:14 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Riadok 1968 function ezin_get_antispam() { |
|
| Riadok 1968 function ezin_get_antispam() { |
|
| global $ezin_runtime_cache; |
global $ezin_runtime_cache; |
| if (!is_null($ezin_runtime_cache['ezin_get_antispam'])) { |
if (!is_null($ezin_runtime_cache['ezin_get_antispam'])) { |
| return $ezin_runtime_cache['ezin_get_antispam']; |
return $ezin_runtime_cache['ezin_get_antispam']; |
| } echo '[antispam]'; |
} |
| $ret = array(); |
$ret = array(); |
| switch($ezin_cfg['antispam_type']) { |
switch($ezin_cfg['antispam_type']) { |
| case 'rotate': |
case 'rotate': |
| Riadok 1981 function ezin_get_antispam() { |
|
| Riadok 1981 function ezin_get_antispam() { |
|
| 'url' => $ezin_cfg['url'].'libpub/RotateAntispam/RotateAntispam.php' |
'url' => $ezin_cfg['url'].'libpub/RotateAntispam/RotateAntispam.php' |
| ); |
); |
| $antispam = new RotateAntispam($opts); |
$antispam = new RotateAntispam($opts); |
| $ret['correct_answer'] = $antispam->correctAnswer(); echo $antispam->getLog(); |
$ret['correct_answer'] = $antispam->correctAnswer(); |
| $antispam = new RotateAntispam($opts); |
$antispam = new RotateAntispam($opts); |
| $ret['question'] = '<script type="text/javascript" src="'.$ezin_cfg['url'].'libpub/RotateAntispam/raphael-min.js"></script>' |
$ret['question'] = '<script type="text/javascript" src="'.$ezin_cfg['url'].'libpub/RotateAntispam/raphael-min.js"></script>' |
| .$antispam->getAntispamHtml(); |
.$antispam->getAntispamHtml(); |