| version 1.32, 2006/09/03 14:07:58 |
version 1.33, 2006/09/12 16:31:01 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.31 2006-09-03 14:03:24 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.32 2006-09-03 14:07:58 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 725 function ezin_load_template($template_ke |
|
| Line 725 function ezin_load_template($template_ke |
|
| if (isset($ezin_cgi['lang']) && $ezin_cgi['lang'] != '') { |
if (isset($ezin_cgi['lang']) && $ezin_cgi['lang'] != '') { |
| $template_key .= $ezin_sys['tmpl']['delim'].$ezin_cgi['lang']; |
$template_key .= $ezin_sys['tmpl']['delim'].$ezin_cgi['lang']; |
| } |
} |
| |
$additional_append_lang = true; |
| while (1) { |
while (1) { |
| $filename = $theme_dir . $template_key . $ezin_sys['tmpl']['delimext']; |
$filename = $theme_dir . $template_key . $ezin_sys['tmpl']['delimext']; |
| if (@file_exists($filename) && $f = @fopen($filename, 'r')) { |
if (@file_exists($filename) && $f = @fopen($filename, 'r')) { |
| Line 743 function ezin_load_template($template_ke |
|
| Line 744 function ezin_load_template($template_ke |
|
| break; |
break; |
| } |
} |
| $template_key = substr($template_key, 0, $pos); |
$template_key = substr($template_key, 0, $pos); |
| |
if (($pos = strrpos($template_key, '.')) === false && $additional_append_lang == true) { |
| |
$template_key .= $ezin_sys['tmpl']['delim'].$ezin_cgi['lang']; |
| |
$additional_append_lang = false; |
| |
} |
| } |
} |
| return false; |
return false; |
| } /* }}} */ |
} /* }}} */ |