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.119 and 1.120

version 1.119, 2013/10/17 16:57:24 version 1.120, 2013/10/17 18:29:43
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.118 2013-10-08 09:51:40 igor Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.119 2013-10-17 16:57:24 igor Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 1139  function ezin_load_template($template_ke
Line 1139  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'
                           || $template_key == 'article.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>
Line 1196  function ezin_load_template($template_ke
Line 1198  function ezin_load_template($template_ke
         <description><| ezin_normalize_rss2_string($article_hometext) |></description>          <description><| ezin_normalize_rss2_string($article_hometext) |></description>
 </item>'."\n";  </item>'."\n";
                 } /* }}} */                  } /* }}} */
                 else if (($template_key == 'section.soap')                  else if (($template_key == 'section.soap'
                                   || $template_key == 'article.soap')
                         && ($ezin_cfg['soap_server_enabled'] == 1))                          && ($ezin_cfg['soap_server_enabled'] == 1))
                 {                  {
                         require_once 'soap/soap_server.php';                          require_once 'soap/soap_server.php';
Line 1204  function ezin_load_template($template_ke
Line 1207  function ezin_load_template($template_ke
                         header("content-type: text/xml; charset=utf-8");                          header("content-type: text/xml; charset=utf-8");
                         return $soap_out;                          return $soap_out;
                 }                  }
                 else if ($template_key == 'section.platon_newsletter') {                  else if ($template_key == 'section.platon_newsletter'
                           || $template_key == 'article.platon_newsletter')
                   {
                         if ($ezin_cfg['platon_newsletter_enabled'] != 1) {                          if ($ezin_cfg['platon_newsletter_enabled'] != 1) {
                                 die('Platon Newsletter Source is disabled');                                  die('Platon Newsletter Source is disabled');
                                 exit();                                  exit();
Line 1220  function ezin_load_template($template_ke
Line 1225  function ezin_load_template($template_ke
                         new PlatonNewsletter($ezin_cfg['platon_newsletter_password'], $emails);                          new PlatonNewsletter($ezin_cfg['platon_newsletter_password'], $emails);
                         exit();                          exit();
                 }                  }
                 else if ($template_key == 'section.section_loadmore')                  else if ($template_key == 'section.section_loadmore'
                           || $template_key == 'article.section_loadmore')
                 {                  {
                         if (!isset($_GET['section_id'])) {                          if (!isset($_GET['section_id'])) {
                                 return 'Error: not set SECTION_ID';                                  return 'Error: not set SECTION_ID';
Line 1230  function ezin_load_template($template_ke
Line 1236  function ezin_load_template($template_ke
                         }                          }
                         return ezin_get_section_page($_GET['section_id'], $_GET['page']);                          return ezin_get_section_page($_GET['section_id'], $_GET['page']);
                 }                  }
                 else if ($template_key == 'section.sitemap') {                  else if ($template_key == 'section.sitemap'
                           || $template_key == 'article.sitemap')
                   {
                         ob_clean();                          ob_clean();
                         header("content-type: text/xml; charset=utf-8");                          header("content-type: text/xml; charset=utf-8");
                         return ezin_get_sitemap();                          return ezin_get_sitemap();
                 }                  }
                 else if ($template_key == 'section.htmlmap') {                  else if ($template_key == 'section.htmlmap'
                           || $template_key == 'article.htmlmap')
                   {
                         ob_clean();                          ob_clean();
                         return ezin_get_htmlmap();                          return ezin_get_htmlmap();
                 }                  }

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

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