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

Diff for Metafox/subst.inc.php between version 1.10 and 1.11

version 1.10, 2006/01/12 11:25:27 version 1.11, 2006/01/21 10:37:27
Line 218  if ($ezin_tmpl_main->isVar('section_item
Line 218  if ($ezin_tmpl_main->isVar('section_item
         if (intval($cache_ar['timestamp']) <= 0) {          if (intval($cache_ar['timestamp']) <= 0) {
                 $item = new HTML_Template_Platon($ezin_sys['tmpl']['section_item'].$ezin_tmpl_key,                  $item = new HTML_Template_Platon($ezin_sys['tmpl']['section_item'].$ezin_tmpl_key,
                                 HTML_TEMPLATE_PLATON_METHOD_VAR_KEEP);                                  HTML_TEMPLATE_PLATON_METHOD_VAR_KEEP);
                 $cache_ar['var_var'] = $item->isVar('section_accesses_count')                  $cache_ar['var_var'] = $item->isVar('section_selected')
                                                           || $item->isVar('section_accesses_count')
                                                         || $item->isVar('section_raw_accesses_count')                                                          || $item->isVar('section_raw_accesses_count')
                                                         || $item->isVar('section_sessions_count')                                                          || $item->isVar('section_sessions_count')
                                                         || $item->isVar('section_raw_sessions_count');                                                          || $item->isVar('section_raw_sessions_count');
                 $sections = ezin_get_section_list($ezin_cgi['lang']);                  $sections = ezin_get_section_list($ezin_cgi['lang'], $ezin_cgi['section_id']);
                 $cache_ar['content']    = '';                  $cache_ar['content'] = '';
   
                 for ($k = 0; $k < count($sections); $k++) {                  for ($k = 0; $k < count($sections); $k++) {
                         $item->reload();                          $item->reload();
                         ezin_section_link_process($sections[$k]);                          ezin_section_link_process($sections[$k]);
                         ezin_section_counts_process($sections[$k]);                          ezin_section_counts_process($sections[$k]);
                         $sections[$k]['section_selected'] = ($sections[$k]['section_id'] == $ezin_cgi['section_id']  
                                         || (empty($ezin_cgi['section_id']) && $sections[$k]['section_type'] == 'global'))  
                                 ? 1 : 0;  
                         if ($cache_ar['var_var']) {                          if ($cache_ar['var_var']) {
                                 $id = $sections[$k]['section_id'];                                  $id = $sections[$k]['section_id'];
                                   $item->setVar('section_selected',           'section_selected_'.$id);
                                 $item->setVar('section_accesses_count',     'section_accesses_count_'.$id);                                  $item->setVar('section_accesses_count',     'section_accesses_count_'.$id);
                                 $item->setVar('section_sessions_count',     'section_sessions_count_'.$id);                                  $item->setVar('section_sessions_count',     'section_sessions_count_'.$id);
                                 $item->setVar('section_raw_accesses_count', 'section_raw_accesses_count_'.$id);                                  $item->setVar('section_raw_accesses_count', 'section_raw_accesses_count_'.$id);
Line 248  if ($ezin_tmpl_main->isVar('section_item
Line 247  if ($ezin_tmpl_main->isVar('section_item
         }          }
         $ezin_tmpl_main->setCode('section_items', $cache_ar['content']);          $ezin_tmpl_main->setCode('section_items', $cache_ar['content']);
         if ($cache_ar['var_var']) {          if ($cache_ar['var_var']) {
                 $ezin_tmpl_main->set(ezin_get_section_list_counts($ezin_cgi['lang']));                  $ezin_tmpl_main->set(ezin_get_section_list_counts($ezin_cgi['lang'], $ezin_cgi['section_id']));
         }          }
 } /* }}} */  } /* }}} */
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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