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

Diff for Metafox/functions.inc.php between version 1.120 and 1.121

version 1.120, 2013/10/17 18:29:43 version 1.121, 2013/11/13 12:02:56
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.119 2013-10-17 16:57:24 igor Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.120 2013-10-17 18:29:43 igor Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 1468  function ezin_substitute_basic_propertie
Line 1468  function ezin_substitute_basic_propertie
                 $tmpl_obj->set("ezin_$key", $val);                  $tmpl_obj->set("ezin_$key", $val);
         }          }
   
                                 // Language variables          // Language variables
                                 if (isset($ezin_cgi['lang_bind']) && is_array($ezin_cgi['lang_bind'])) {          if (isset($ezin_cgi['lang_bind']) && is_array($ezin_cgi['lang_bind'])) {
                                         foreach ($ezin_cgi['lang_bind'] as $ezin_lang_key => $ezin_lang_val) {                  foreach ($ezin_cgi['lang_bind'] as $ezin_lang_key => $ezin_lang_val) {
                                                 $tmpl_obj->set('ezin_lang_'.$ezin_lang_key,                          $tmpl_obj->set('ezin_lang_'.$ezin_lang_key,
                                                                 intval($ezin_lang_key == $ezin_cgi['lang']));                                          intval($ezin_lang_key == $ezin_cgi['lang']));
                                                 $tmpl_obj->set('ezin_lang_'.$ezin_lang_key.'_link',                          $tmpl_obj->set('ezin_lang_'.$ezin_lang_key.'_link',
                                                                 $ezin_lang_key == $ezin_cgi['lang'] || strlen($ezin_lang_val) <= 0                                          $ezin_lang_key == $ezin_cgi['lang'] || strlen($ezin_lang_val) <= 0
                                                                 ? '#' : $ezin_lang_val);                                          ? '#' : $ezin_lang_val);
                                         }                  }
                                 }          }
           if (strlen($ezin_cfg['http_host_language']) > 0) {
                   preg_match_all('|(\w\w)[^\(]*\(([^\)]*)\)|', $ezin_cfg['http_host_language'], $matches);
                   foreach ($matches[1] as $index => $lang) {
                           $hosts  = preg_split('/(\s+|\xc2\xa0)/', $matches[2][$index]);
                           $tmpl_obj->set('ezin_lang_'.$ezin_lang_key.'_host', $hosts[0]);
                   }
           }
   
   
 } /* }}} */  } /* }}} */
   
 /*  /*

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

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