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.73 and 1.74

version 1.73, 2007/12/02 11:50:48 version 1.74, 2007/12/31 13:45:40
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.72 2007-11-12 16:12:55 nepto Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.73 2007-12-02 11:50:48 nepto Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 881  function ezin_load_template($template_ke
Line 881  function ezin_load_template($template_ke
                         fclose($f);                          fclose($f);
                         return $data;                          return $data;
                 }                  }
                 else if ($template_key == 'section.rss2') { /* {{{{ */                  else if ($template_key == 'section.rss2') { /* {{{ */
                         return '<| "<" |>?xml version="1.0" encoding="<|$ezin_encoding|>" ?<| ">\n" |>                          return '<| "<" |>?xml version="1.0" encoding="<|$ezin_encoding|>" ?<| ">\n" |>
 <rss version="2.0">  <rss version="2.0">
 <channel>  <channel>
         <title><|$ezin_name|></title>          <title><| ezin_normalize_rss2_string($ezin_name) |></title>
         <link>http://<|$_SERVER["HTTP_HOST"]|><|$ezin_url|></link>          <link><| ezin_normalize_rss2_string("http://$_SERVER[HTTP_HOST]$ezin_url") |></link>
         <description><|strlen($ezin_description)>0?$ezin_description:$ezin_name|></description>          <description><| ezin_normalize_rss2_string(strlen($ezin_description)>0?$ezin_description:$ezin_name) |></description>
         <generator><|strip_tags($ezin_software_signature)|></generator>          <generator><| ezin_normalize_rss2_string($ezin_software_signature) |></generator>
 <|CMD| if (strlen($ezin_lang) > 0): |>  <|CMD| if (strlen($ezin_lang) > 0): |>
         <language><|$ezin_lang|></language>          <language><|$ezin_lang|></language>
 <|CMD| endif; |>  <|CMD| endif; |>
Line 901  function ezin_load_template($template_ke
Line 901  function ezin_load_template($template_ke
 </channel>  </channel>
 </rss>'."\n";  </rss>'."\n";
                 } /* }}} */                  } /* }}} */
                   else if ($template_key == 'author.rss2') { /* {{{ */
                           return '<| "<" |>?xml version="1.0" encoding="<|$ezin_encoding|>" ?<| ">\n" |>
   <rss version="2.0">
   <channel>
           <title><| ezin_normalize_rss2_string("$ezin_name: $author_name") |></title>
           <link><| ezin_normalize_rss2_string("http://$_SERVER[HTTP_HOST]$author_link") |></link>
           <description><| ezin_normalize_rss2_string($author_description) |></description>
           <generator><| ezin_normalize_rss2_string($ezin_software_signature) |></generator>
   <|CMD| if (strlen($ezin_lang) > 0): |>
           <language><|$ezin_lang|></language>
   <|CMD| endif; |>
   <|CMD| if (strlen($author_email) > 0): |>
           <managingEditor><| ezin_normalize_rss2_string($author_email) |></managingEditor>
   <|CMD| endif; |>
   <!--    <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate> -->
   <!--    <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate> -->
   <!--    <docs>http://blogs.law.harvard.edu/tech/rss</docs> -->
   <!--    <webMaster>webmaster@example.com</webMaster> -->
   <|$article_items|>
   </channel>
   </rss>'."\n";
                   } /* }}} */
                 else if ($template_key == 'article_item.rss2') { /* {{{ */                  else if ($template_key == 'article_item.rss2') { /* {{{ */
                         return '<item>                          return '<item>
         <title><| ezin_normalize_rss2_string($article_atitle) |></title>          <title><| ezin_normalize_rss2_string($article_atitle) |></title>
         <link>http://<|$_SERVER["HTTP_HOST"]|><|$article_link|></link>          <link><| ezin_normalize_rss2_string("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>
 <|CMD| if ($article_messages > 0): |>  <|CMD| if ($article_messages > 0): |>
         <comments>http://<|$_SERVER["HTTP_HOST"]|><|$article_show_all_link|></comments>          <comments><| ezin_normalize_rss2_string("http://$_SERVER[HTTP_HOST]$article_show_all_link") |></comments>
 <|CMD| endif; |>  <|CMD| endif; |>
 <|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><| ezin_normalize_rss2_string($article_author_name) |> &lt;<| ezin_normalize_rss2_string($article_author_email) |>&gt;</author>
 <|CMD| endif; |>  <|CMD| endif; |>
         <description><| ezin_normalize_rss2_string($article_hometext) |></description>          <description><| ezin_normalize_rss2_string($article_hometext) |></description>
 </item>'."\n";  </item>'."\n";

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

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