| version 1.58, 2007/03/06 22:28:52 |
version 1.59, 2007/03/06 22:47:33 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.57 2007-03-06 21:26:04 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.58 2007-03-06 22:28:52 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 1256 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1256 function ezin_cgi_parse() /* {{{ */ |
|
| include_once 'Auth/AuthDB.php'; |
include_once 'Auth/AuthDB.php'; |
| global $ezin_auth_options; |
global $ezin_auth_options; |
| $ezin_auth = new AuthDB($ezin_auth_options); |
$ezin_auth = new AuthDB($ezin_auth_options); |
| |
$ezin_login_author = Platon::parse_id_param('ezin_login_author', false); |
| $ezin_logout_author = Platon::parse_id_param('ezin_logout_author', false); |
$ezin_logout_author = Platon::parse_id_param('ezin_logout_author', false); |
| if ($ezin_logout_author) { |
if ($ezin_logout_author) { |
| $ezin_auth = new AuthDB($ezin_auth_options); |
$ezin_auth = new AuthDB($ezin_auth_options); |
| Line 1281 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1282 function ezin_cgi_parse() /* {{{ */ |
|
| } else { // logged in case |
} else { // logged in case |
| $ezin_user = $ezin_auth->getUserInfo(); |
$ezin_user = $ezin_auth->getUserInfo(); |
| } |
} |
| |
if (($ezin_login_author || $ezin_logout_author) && @strlen($_SERVER['HTTP_REFERER']) > 0) { |
| |
$referer = $_SERVER['HTTP_REFERER']; |
| |
$referer = preg_replace('/ezin_log(in|out)_author=[^&]*/', '', $referer); |
| |
header('Location: '.$referer); |
| |
exit; |
| |
} |
| } /* }}} */ |
} /* }}} */ |
| |
|
| if (! empty($ezin_cgi['article_id'])) { |
if (! empty($ezin_cgi['article_id'])) { |