| version 1.61, 2007/04/01 20:43:56 |
version 1.62, 2007/04/22 15:37:53 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.60 2007-03-06 23:33:15 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.61 2007-04-01 20:43:56 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 1481 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1481 function ezin_cgi_parse() /* {{{ */ |
|
| $data[$matches[1]] = stripslashes($val); |
$data[$matches[1]] = stripslashes($val); |
| } |
} |
| } |
} |
| |
$data['username'] = $ezin_user['username']; |
| |
$data['author_id'] = $ezin_user['author_id']; |
| ezin_author_send_notify_email($data); |
ezin_author_send_notify_email($data); |
| if (ezin_save_author($data)) { |
if (ezin_save_author($data)) { |
| $ezin_cgi['author_save_ok'] = 1; |
$ezin_cgi['author_save_ok'] = 1; |
| Line 1488 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1490 function ezin_cgi_parse() /* {{{ */ |
|
| $location = strpos($request_uri, '?') === false |
$location = strpos($request_uri, '?') === false |
| ? ezin_get_link('S', $ezin_cgi['section_id'], 1, @$ezin_cgi['lang']) |
? ezin_get_link('S', $ezin_cgi['section_id'], 1, @$ezin_cgi['lang']) |
| : 'http://'.$_SERVER['HTTP_HOST'].$request_uri; |
: 'http://'.$_SERVER['HTTP_HOST'].$request_uri; |
| if (strlen(@$_POST['ezin_fragment']) > 0) { |
|
| $location .= '#'.$_POST['ezin_fragment']; |
|
| } |
|
| Platon::redirect($location); |
Platon::redirect($location); |
| } else { |
} else { |
| $ezin_cgi['author_save_error'] = 1; |
$ezin_cgi['author_save_error'] = 1; |
| Line 1507 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1506 function ezin_cgi_parse() /* {{{ */ |
|
| if (! empty($ezin_edit_author)) { |
if (! empty($ezin_edit_author)) { |
| $ezin_cgi['output'] = 'author_edit'; |
$ezin_cgi['output'] = 'author_edit'; |
| if ($ezin_user != false) { |
if ($ezin_user != false) { |
| |
if (empty($ezin_user['author_id'])) { |
| |
die('Critical constraint violation: array $ezin_user exists, but $ezin_user["author_id"] is empty'); |
| |
} |
| $ezin_cgi['author_id'] = $ezin_user['author_id']; |
$ezin_cgi['author_id'] = $ezin_user['author_id']; |
| } |
} |
| } |
} |