Diff for Metafox/functions.inc.php between version 1.130 and 1.131
| version 1.130, 2015/01/20 15:20:16 |
version 1.131, 2015/02/11 13:28:34 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.129 2014-07-07 07:55:17 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.130 2015-01-20 15:20:16 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 1896 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1896 function ezin_cgi_parse() /* {{{ */ |
|
| $ezin_cgi['email_save_error'] = 1; |
$ezin_cgi['email_save_error'] = 1; |
| } else { |
} else { |
| $email = trim($_REQUEST['ezin_email']); |
$email = trim($_REQUEST['ezin_email']); |
| |
$phone = trim($_REQUEST['ezin_phone']); |
| include_once 'Validate.php'; |
include_once 'Validate.php'; |
| if (Validate::email($email) && ezin_save_email($ezin_cgi['section_id'], $email)) { |
if ((Validate::email($email) || strlen($phone) > 0) |
| |
&& ezin_save_email($ezin_cgi['section_id'], $email, $phone)) |
| |
{ |
| $ezin_cgi['email_save_ok'] = 1; |
$ezin_cgi['email_save_ok'] = 1; |
| } else { |
} else { |
| $ezin_cgi['email_save_unknown_error'] = 1; |
$ezin_cgi['email_save_unknown_error'] = 1; |
Platon Group <platon@platon.org> http://platon.org/
|
|