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.13 and 1.14

version 1.13, 2006/04/09 18:53:33 version 1.14, 2006/04/09 19:39:05
Line 72  function ezin_get_special_tags_flags($st
Line 72  function ezin_get_special_tags_flags($st
         preg_match('|<author-link\s[^>]+>|i', $str)     && $ret .= 'U';          preg_match('|<author-link\s[^>]+>|i', $str)     && $ret .= 'U';
         preg_match('|<section-link\s[^>]+>|i', $str)    && $ret .= 'S';          preg_match('|<section-link\s[^>]+>|i', $str)    && $ret .= 'S';
         preg_match('|<article-link\s[^>]+>|i', $str)    && $ret .= 'A';          preg_match('|<article-link\s[^>]+>|i', $str)    && $ret .= 'A';
           preg_match('|<include\s[^>]+>|i', $str)         && $ret .= 'I';
         return $ret;          return $ret;
 } /* }}} */  } /* }}} */
   
   function ezin_handle_include(&$article_ar) /* {{{ */
   {
           // TODO: this should be while() but more checks needed
           if (preg_match_all('|<include\s+([^>\s]+)>|si', $article_ar['article_bodytext'], $matches)) {
                   $matches = array_unique($matches[1]);
                   if (count($matches) <= 0) {
                           break;
                   }
                   $pattern = array();
                   $replacement = array();
                   foreach ($matches as $article_id) {
                           $subst_article = ezin_get_article($article_id);
                           $pattern[]     = '|<include\s+'.$article_id.'>|i';
                           $replacement[] = $subst_article['article_bodytext'];
                           $article_ar['article_bodytext_flags'] .= $subst_article['article_bodytext_flags'];
                   }
                   $article_ar['article_bodytext'] = preg_replace($pattern, $replacement, $article_ar['article_bodytext']);
           }
   } /* }}} */
   
 function ezin_handle_special_tags(&$str, $mask = 'fiLERIMSA') /* {{{ */  function ezin_handle_special_tags(&$str, $mask = 'fiLERIMSA') /* {{{ */
 {  {
         static $ezin_url       = null;          static $ezin_url       = null;

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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