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.57 and 1.58

version 1.57, 2007/03/06 21:26:04 version 1.58, 2007/03/06 22:28:52
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.56 2007-02-24 22:07:24 nepto Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.57 2007-03-06 21:26:04 nepto Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 993  function ezin_email_send($emails, $from,
Line 993  function ezin_email_send($emails, $from,
   
 function ezin_substitute_basic_properties(&$tmpl_obj) /* {{{ */  function ezin_substitute_basic_properties(&$tmpl_obj) /* {{{ */
 {  {
         global $ezin_sys, $ezin_cfg, $ezin_cgi;          global $ezin_sys, $ezin_cfg, $ezin_cgi, $ezin_user;
   
         $tmpl_obj->set(array(          $tmpl_obj->set(array(
                                 // Configuration                                  // Configuration
Line 1031  function ezin_substitute_basic_propertie
Line 1031  function ezin_substitute_basic_propertie
                                 'ezin_message_id' => @is_array($ezin_cgi['message_id']) ? 0 : $ezin_cgi['message_id'],                                  'ezin_message_id' => @is_array($ezin_cgi['message_id']) ? 0 : $ezin_cgi['message_id'],
                                 'ezin_article_id' => @$ezin_cgi['article_id'],                                  'ezin_article_id' => @$ezin_cgi['article_id'],
                                 'ezin_section_id' => @$ezin_cgi['section_id'],                                  'ezin_section_id' => @$ezin_cgi['section_id'],
                                 'ezin_lang'       => @$ezin_cgi['lang']                                  'ezin_lang'       => @$ezin_cgi['lang'],
                                   'ezin_user'       => @$ezin_user['username']
                                         ));                                          ));
   
         foreach ($ezin_cgi as $key => $val) {          foreach ($ezin_cgi as $key => $val) {
Line 1064  function ezin_substitute_basic_propertie
Line 1065  function ezin_substitute_basic_propertie
   
 function ezin_cgi_parse() /* {{{ */  function ezin_cgi_parse() /* {{{ */
 {  {
         global $ezin_cgi;  
         global $ezin_cfg;          global $ezin_cfg;
           global $ezin_cgi;
           global $ezin_user;
   
         /* $ezin_cgi['lang_init'] schema          /* $ezin_cgi['lang_init'] schema
   
Line 1164  function ezin_cgi_parse() /* {{{ */
Line 1166  function ezin_cgi_parse() /* {{{ */
         $lang_tbl_type = 'S';          $lang_tbl_type = 'S';
         $lang_tbl = ezin_get_bind_lang_table_wrapper($lang_tbl_type,          $lang_tbl = ezin_get_bind_lang_table_wrapper($lang_tbl_type,
                         $ar['section_bind_lang'], $ar['article_bind_lang']);                          $ar['section_bind_lang'], $ar['article_bind_lang']);
         //var_dump($lang_tbl);  
   
         while ($ar['author_id'] + $ar['section_id'] + $ar['article_id'] + (int)$ar['message_id'] <= 0) {          while ($ar['author_id'] + $ar['section_id'] + $ar['article_id'] + (int)$ar['message_id'] <= 0) {
                 global $ezin_cfg;                  global $ezin_cfg;
Line 1263  function ezin_cgi_parse() /* {{{ */
Line 1264  function ezin_cgi_parse() /* {{{ */
                         }                          }
                 }                  }
                 if (! $ezin_auth->getAuth()) { // not logged in case                  if (! $ezin_auth->getAuth()) { // not logged in case
   
                         switch ($ezin_auth->getStatus()) {                          switch ($ezin_auth->getStatus()) {
                                 case AUTH_DB_NOT_LOGGED: break;                                  case AUTH_DB_NOT_LOGGED:        break;
                                 case AUTH_DB_LOGGED_OUT:                                  case AUTH_DB_LOGGED_OUT:        break;
                                 case AUTH_DB_FAILED:                                  case AUTH_DB_FAILED:            break;
                                 case AUTH_DB_TIMEOUT:                                  case AUTH_DB_TIMEOUT:           break;
                                 case AUTH_DB_EXPIRED:                                  case AUTH_DB_EXPIRED:           break;
                                 default:                                  default:
                                                                                  echo '<center>';                                                                                   echo '<center>';
                                                                                  echo '<p><big><b>Unknown status ('; // )                                                                                   echo '<p><big><b>Unknown status ('; // )
Line 1279  function ezin_cgi_parse() /* {{{ */
Line 1279  function ezin_cgi_parse() /* {{{ */
                         }                          }
   
                 } else { // logged in case                  } else { // logged in case
                         echo 'logged in: '.$ezin_auth->getUsername();                          $ezin_user = $ezin_auth->getUserInfo();
                 }                  }
         } /* }}} */          } /* }}} */
   
Line 1481  function ezin_cgi_parse() /* {{{ */
Line 1481  function ezin_cgi_parse() /* {{{ */
         $ezin_edit_author = Platon::parse_id_param('ezin_edit_author', false);          $ezin_edit_author = Platon::parse_id_param('ezin_edit_author', false);
         if (! empty($ezin_edit_author)) {          if (! empty($ezin_edit_author)) {
                 $ezin_cgi['output'] = 'author_edit';                  $ezin_cgi['output'] = 'author_edit';
                   if ($ezin_user != false) {
                           $ezin_cgi['author_id'] = $ezin_user['author_id'];
                   }
         }          }
   
         $poll_answer_id = Platon::parse_id_param('ezin_poll_answer_id', 0);          $poll_answer_id = Platon::parse_id_param('ezin_poll_answer_id', 0);

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

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