| version 1.107, 2012/11/09 10:46:04 |
version 1.108, 2013/02/25 15:30:29 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.106 2012-10-25 08:09:16 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.107 2012-11-09 10:46:04 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 147 function ezin_handle_special_tags(&$str, |
|
| Line 147 function ezin_handle_special_tags(&$str, |
|
| $rpttr = array(); |
$rpttr = array(); |
| $rrplc = array(); |
$rrplc = array(); |
| $included_jquery = false; |
$included_jquery = false; |
| $jquery = '<script type="text/javascript" src="libpub/jquery.js"></script>'."\n"; |
$jquery = '<script type="text/javascript" src="'.$ezin_url.'/libpub/jquery.js"></script>'."\n"; |
| $included_lightbox = false; |
$included_lightbox = false; |
| $lightbox = '<script type="text/javascript"> var ezin_lang = "'.$ezin_cgi['lang'].'"; </script>'."\n" |
$lightbox = '<script type="text/javascript"> var ezin_lang = "'.$ezin_cgi['lang'].'";' |
| .'<script type="text/javascript" src="libpub/lightbox/jquery.lightbox-0.5.js"></script>'."\n" |
.' var ezin_lightbox_images = "'.$ezin_url.'/libpub/lightbox/"; </script>'."\n" |
| .'<link type="text/css" rel="stylesheet" href="libpub/lightbox/jquery.lightbox-0.5.css">'."\n"; |
.'<script type="text/javascript" src="'.$ezin_url.'/libpub/lightbox/jquery.lightbox-0.5.js"></script>'."\n" |
| |
.'<link type="text/css" rel="stylesheet" href="'.$ezin_url.'/libpub/lightbox/jquery.lightbox-0.5.css">'."\n"; |
| |
|
| if (strpos($mask, 'G') !== false) { /* {{{ */ |
if (strpos($mask, 'G') !== false) { /* {{{ */ |
| global $ezin_sys, $ezin_cfg; |
global $ezin_sys, $ezin_cfg; |
| Line 1969 function ezin_check_antispam($flag = '') |
|
| Line 1970 function ezin_check_antispam($flag = '') |
|
| if (strlen($flag) > 0) { |
if (strlen($flag) > 0) { |
| /* we have flag, so we are going to check answer */ |
/* we have flag, so we are going to check answer */ |
| $antispam = ezin_get_antispam(); |
$antispam = ezin_get_antispam(); |
| return (stristr($ezin_cfg['antispam_flags'], $flag) != false |
return (stristr($ezin_cfg['antispam_flags'], $flag) == false |
| && $antispam['correct_answer']); |
|| $antispam['correct_answer']); |
| } |
} |
| /* we do not have any flag */ |
/* we do not have any flag */ |
| switch ($ezin_cgi['output']) { |
switch ($ezin_cgi['output']) { |