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.24 and 1.25

version 1.24, 2006/07/09 09:26:05 version 1.25, 2006/07/20 09:48:21
Line 84  function ezin_get_special_tags_flags($st
Line 84  function ezin_get_special_tags_flags($st
   
 function ezin_handle_include(&$article_ar) /* {{{ */  function ezin_handle_include(&$article_ar) /* {{{ */
 {  {
         // TODO: this should be while() but more checks needed          // TODO: made INCLUDE works with ACCESS_KEY (not only ID)
         if (preg_match_all('|<include\s+([^>\s]+)>|si', $article_ar['article_bodytext'], $matches)) {          while (preg_match_all('|<include\s+([^>\s]+)>|si', $article_ar['article_bodytext'], $matches)) {
                 $matches = array_unique($matches[1]);                  $matches = array_unique($matches[1]);
                 if (count($matches) <= 0) {                  if (count($matches) <= 0) {
                         break;                          break;
Line 95  function ezin_handle_include(&$article_a
Line 95  function ezin_handle_include(&$article_a
                 foreach ($matches as $article_id) {                  foreach ($matches as $article_id) {
                         $subst_article = ezin_get_article($article_id);                          $subst_article = ezin_get_article($article_id);
                         $pattern[]     = '|<include\s+'.$article_id.'>|i';                          $pattern[]     = '|<include\s+'.$article_id.'>|i';
                         $replacement[] = $subst_article['article_bodytext'];                          $replacement[] = @$subst_article['article_bodytext'];
                         $article_ar['article_bodytext_flags'] .= $subst_article['article_bodytext_flags'];                          $article_ar['article_bodytext_flags'] .= @$subst_article['article_bodytext_flags'];
                 }                  }
                 $article_ar['article_bodytext'] = preg_replace($pattern, $replacement, $article_ar['article_bodytext']);                  $article_ar['article_bodytext'] = preg_replace($pattern, $replacement, $article_ar['article_bodytext']);
         }          }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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