| verzia 1.59, 2007/03/06 22:47:33 |
verzia 1.60, 2007/03/06 23:33:15 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.58 2007-03-06 22:28:52 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.59 2007-03-06 22:47:33 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Riadok 1035 function ezin_substitute_basic_propertie |
|
| Riadok 1035 function ezin_substitute_basic_propertie |
|
| 'ezin_user' => @$ezin_user['username'] |
'ezin_user' => @$ezin_user['username'] |
| )); |
)); |
| |
|
| |
foreach ($ezin_user as $key => $val) { |
| |
if (! strncmp($key, 'pass', 4)) { |
| |
continue; |
| |
} |
| |
if (! strncmp($key, 'author_', 7) && $key != 'author_id') { |
| |
$key = str_replace('author_', 'user_', $key); |
| |
} |
| |
if (is_array($val)) { |
| |
$val = join(',', $val); |
| |
} |
| |
$tmpl_obj->set($key, $val); |
| |
$tmpl_obj->set("ezin_$key", $val); |
| |
} |
| |
|
| foreach ($ezin_cgi as $key => $val) { |
foreach ($ezin_cgi as $key => $val) { |
| if (strncmp($key, 'email_', 6) && strncmp($key, 'message_', 8) && strncmp($key, 'feedback_', 9)) { |
if (strncmp($key, 'email_', 6) && strncmp($key, 'message_', 8) && strncmp($key, 'feedback_', 9)) { |
| continue; |
continue; |
| Riadok 1281 function ezin_cgi_parse() /* {{{ */ |
|
| Riadok 1295 function ezin_cgi_parse() /* {{{ */ |
|
| |
|
| } else { // logged in case |
} else { // logged in case |
| $ezin_user = $ezin_auth->getUserInfo(); |
$ezin_user = $ezin_auth->getUserInfo(); |
| |
$author = ezin_get_author($ezin_user['author_id']); |
| |
foreach ($author as $key => $val) { |
| |
$ezin_user[$key] = $val; |
| |
} |
| } |
} |
| if (($ezin_login_author || $ezin_logout_author) && @strlen($_SERVER['HTTP_REFERER']) > 0) { |
if (($ezin_login_author || $ezin_logout_author) && @strlen($_SERVER['HTTP_REFERER']) > 0) { |
| $referer = $_SERVER['HTTP_REFERER']; |
$referer = $_SERVER['HTTP_REFERER']; |