| version 1.21, 2006/09/23 01:25:25 |
version 1.22, 2006/09/23 09:51:45 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.20 2006-09-20 15:02:07 nepto Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.21 2006-09-23 01:25:25 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 273 if ($ezin_db_section != '') { /* {{{ */ |
|
| Line 273 if ($ezin_db_section != '') { /* {{{ */ |
|
| */ |
*/ |
| |
|
| if ($ezin_tmpl_main->isVar('section_items')) { /* {{{ */ |
if ($ezin_tmpl_main->isVar('section_items')) { /* {{{ */ |
| $cache_ar = ezin_cache_load('S'.$ezin_tmpl_key); |
$cache_id = 'S'.@$ezin_cgi['lang'].$ezin_tmpl_key; |
| |
$cache_ar = ezin_cache_load($cache_id); |
| 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); |
| Line 302 if ($ezin_tmpl_main->isVar('section_item |
|
| Line 303 if ($ezin_tmpl_main->isVar('section_item |
|
| } |
} |
| //$cache_ar['content'] = Platon::tilde_replace($cache_ar['content']); |
//$cache_ar['content'] = Platon::tilde_replace($cache_ar['content']); |
| unset($sections); |
unset($sections); |
| ezin_cache_save('S'.$ezin_tmpl_key, $cache_ar['content'], $cache_ar['var_var']); |
ezin_cache_save($cache_id, $cache_ar['content'], $cache_ar['var_var']); |
| } |
} |
| $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']) { |
| Line 316 if ($ezin_tmpl_main->isVar('section_item |
|
| Line 317 if ($ezin_tmpl_main->isVar('section_item |
|
| |
|
| if ($ezin_tmpl_main->isVar('article_items') && ($ezin_db_section != '' || $ezin_db_author != '')) { /* {{{ */ |
if ($ezin_tmpl_main->isVar('article_items') && ($ezin_db_section != '' || $ezin_db_author != '')) { /* {{{ */ |
| $cache_id = $ezin_db_section != '' ? 'S'.@$ezin_db_section['section_id'].$ezin_tmpl_key |
$cache_id = $ezin_db_section != '' ? 'S'.@$ezin_db_section['section_id'].$ezin_tmpl_key |
| : 'U'.@$ezin_db_author['author_id'].$ezin_tmpl_key; |
: 'U'.@$ezin_db_author['author_id'].@$ezin_cgi['lang'].$ezin_tmpl_key; |
| $cache_ar = ezin_cache_load($cache_id); |
$cache_ar = ezin_cache_load($cache_id); |
| $section_id = $ezin_db_section != '' && $ezin_db_section['section_type'] != 'global' ? $ezin_db_section['section_id'] : 0; |
$section_id = $ezin_db_section != '' && $ezin_db_section['section_type'] != 'global' ? $ezin_db_section['section_id'] : 0; |
| $author_id = $ezin_db_author != '' ? $ezin_db_author['search'] : ''; |
$author_id = $ezin_db_author != '' ? $ezin_db_author['search'] : ''; |
| Line 374 if ($ezin_tmpl_main->isVar('poll_questio |
|
| Line 375 if ($ezin_tmpl_main->isVar('poll_questio |
|
| $ezin_tmpl_main->set($ezin_db_poll); |
$ezin_tmpl_main->set($ezin_db_poll); |
| } |
} |
| if ($ezin_db_poll != '' && $ezin_tmpl_main->isVar('poll_answer_items')) { |
if ($ezin_db_poll != '' && $ezin_tmpl_main->isVar('poll_answer_items')) { |
| |
|
| $cache_id = 'P'.@$ezin_db_poll['poll_id']; |
$cache_id = 'P'.@$ezin_db_poll['poll_id']; |
| $cache_ar = ezin_cache_load($cache_id); |
$cache_ar = ezin_cache_load($cache_id); |
| if (intval($cache_ar['timestamp']) <= 0) { |
if (intval($cache_ar['timestamp']) <= 0) { |