Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, November 13, 2026

Diff for Metafox/functions.inc.php between version 1.59 and 1.60

version 1.59, 2007/03/06 22:47:33 version 1.60, 2007/03/06 23:33:15
Line 17 
Line 17 
  * 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) /* {{{ */
 {  {
Line 1035  function ezin_substitute_basic_propertie
Line 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;
Line 1281  function ezin_cgi_parse() /* {{{ */
Line 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'];

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top