| version 1.56, 2007/02/24 22:07:24 |
version 1.57, 2007/03/06 21:26:04 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.55 2007-02-24 21:11:02 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.56 2007-02-24 22:07:24 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 1251 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1251 function ezin_cgi_parse() /* {{{ */ |
|
| $ezin_cgi['author_id2'] = empty($ar['author_access_key']) |
$ezin_cgi['author_id2'] = empty($ar['author_access_key']) |
| ? $ar['author_id'] : $ar['author_access_key']; |
? $ar['author_id'] : $ar['author_access_key']; |
| |
|
| |
if ($ezin_cfg['user_create_role_id'] > 0) { /* {{{ */ |
| |
include_once 'Auth/AuthDB.php'; |
| |
global $ezin_auth_options; |
| |
$ezin_auth = new AuthDB($ezin_auth_options); |
| |
$ezin_logout_author = Platon::parse_id_param('ezin_logout_author', false); |
| |
if ($ezin_logout_author) { |
| |
$ezin_auth = new AuthDB($ezin_auth_options); |
| |
if ($ezin_auth->getAuth()) { |
| |
$ezin_auth->logout(); |
| |
} |
| |
} |
| |
if (! $ezin_auth->getAuth()) { // not logged in case |
| |
|
| |
switch ($ezin_auth->getStatus()) { |
| |
case AUTH_DB_NOT_LOGGED: break; |
| |
case AUTH_DB_LOGGED_OUT: |
| |
case AUTH_DB_FAILED: |
| |
case AUTH_DB_TIMEOUT: |
| |
case AUTH_DB_EXPIRED: |
| |
default: |
| |
echo '<center>'; |
| |
echo '<p><big><b>Unknown status ('; // ) |
| |
echo $ezin_auth->getStatus().')</b></big>'; |
| |
echo '</center>'; |
| |
break; |
| |
} |
| |
|
| |
} else { // logged in case |
| |
echo 'logged in: '.$ezin_auth->getUsername(); |
| |
} |
| |
} /* }}} */ |
| |
|
| if (! empty($ezin_cgi['article_id'])) { |
if (! empty($ezin_cgi['article_id'])) { |
| $ezin_cgi['output'] = 'article'; |
$ezin_cgi['output'] = 'article'; |
| |
|