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.50 and 1.51

version 1.50, 2007/02/01 12:45:35 version 1.51, 2007/02/01 18:12:24
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.49 2007-02-01 12:05:29 nepto Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.50 2007-02-01 12:45:35 nepto Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 342  function ezin_parse_allowed_tags($str) /
Line 342  function ezin_parse_allowed_tags($str) /
         return $ret;          return $ret;
 } /* }}} */  } /* }}} */
   
   function ezin_normalize_rss2_string($string) /* {{{ */
   {
   
           $string = strip_tags($string);
           $string = Platon::undo_htmlspecialchars($string);
           $string = str_replace('&', '&', $string);
           return $string;
   } /* }}} */
   
 /*  /*
  * Register access function   * Register access function
  */   */
Line 811  function ezin_load_template($template_ke
Line 820  function ezin_load_template($template_ke
 <!--    <webMaster>webmaster@example.com</webMaster> -->  <!--    <webMaster>webmaster@example.com</webMaster> -->
 <|$article_items|>  <|$article_items|>
 </channel>  </channel>
 </rss>';  </rss>'."\n";
                 } /* }}} */                  } /* }}} */
                 else if ($template_key == 'article_item.rss2') { /* {{{ */                  else if ($template_key == 'article_item.rss2') { /* {{{ */
                         return '<item>                          return '<item>
         <title><|str_replace("&", "&amp;", strip_tags($article_atitle))|></title>          <title><| ezin_normalize_rss2_string($article_atitle) |></title>
         <link>http://<|$_SERVER["HTTP_HOST"]|><|$article_link|></link>          <link>http://<|$_SERVER["HTTP_HOST"]|><|$article_link|></link>
         <pubDate><| gmdate("D, d M Y H:i:s", $article_timestamp) |> GMT</pubDate>          <pubDate><| gmdate("D, d M Y H:i:s", $article_timestamp) |> GMT</pubDate>
         <guid isPermaLink="false">article-item-<|$article_id|></guid>          <guid isPermaLink="false">article-item-<|$article_id|></guid>
Line 825  function ezin_load_template($template_ke
Line 834  function ezin_load_template($template_ke
 <|CMD| if (strlen($article_author_email) > 0): |>  <|CMD| if (strlen($article_author_email) > 0): |>
         <author><|$article_author_name|> &lt;<|$article_author_email|>&gt;</author>          <author><|$article_author_name|> &lt;<|$article_author_email|>&gt;</author>
 <|CMD| endif; |>  <|CMD| endif; |>
         <description><|str_replace("&", "&amp;", strip_tags($article_hometext))|></description>          <description><| ezin_normalize_rss2_string($article_hometext) |></description>
 </item>';  </item>'."\n";
                 } /* }}} */                  } /* }}} */
                 if (($pos = strrpos($template_key, '.')) === false) {                  if (($pos = strrpos($template_key, '.')) === false) {
                         break;                          break;

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

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