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.110 and 1.111

version 1.110, 2013/08/29 13:01:11 version 1.111, 2013/09/02 09:30:56
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.109 2013-07-24 07:01:14 igor Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.110 2013-08-29 13:01:11 igor Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 824  function ezin_section_link_process(&$sec
Line 824  function ezin_section_link_process(&$sec
                 ? ezin_get_link('S', $section[$prefix.'section_id2'])                  ? ezin_get_link('S', $section[$prefix.'section_id2'])
                 : ezin_adjust_link($section[$prefix.'section_link']);                  : ezin_adjust_link($section[$prefix.'section_link']);
         $section[$prefix.'section_name'] = Platon::tilde_replace($section[$prefix.'section_name']);          $section[$prefix.'section_name'] = Platon::tilde_replace($section[$prefix.'section_name']);
           $section[$prefix.'section_loadmore'] = 'ezin_section_loadmore(this, '.$section[$prefix.'section_id'].');';
 } /* }}} */  } /* }}} */
   
 function ezin_section_counts_process(&$section) /* {{{ */  function ezin_section_counts_process(&$section) /* {{{ */
Line 1203  function ezin_load_template($template_ke
Line 1204  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.section_loadmore')
                   {
                           if (!isset($_GET['section_id'])) {
                                   return 'Error: not set SECTION_ID';
                           }
                           if (!isset($_GET['page'])) {
                                   return 'Error: not set PAGE';
                           }
                           return ezin_get_section_page($_GET['section_id'], $_GET['page']);
                   }
                 if (($pos = strrpos($template_key, '.')) === false) {                  if (($pos = strrpos($template_key, '.')) === false) {
                         break;                          break;
                 }                  }
Line 1333  function ezin_email_send($emails, $from,
Line 1344  function ezin_email_send($emails, $from,
         return false;          return false;
 } /* }}} */  } /* }}} */
   
   function ezin_get_section_page($section_id, $page) {
           global $ezin_cfg, $ezin_sys, $ezin_cgi, $ezin_tmpl_key;
           $section = ezin_get_section($section_id);
           $limit = $section['section_limit'];
           if ($limit == 0) { // all articles were printed
                   return '';
           }
           $ezin_tmpl_key = $ezin_sys['tmpl']['delim'].$section['section_template_key'];
           $articles = $articles = ezin_get_article_list($section_id, 0, $limit, $ezin_cgi['lang'], $page*$limit);
       eval(ezin_build_content_article($articles));
           return '';
   }
   
 /*  /*
  * Basic template substitutions   * Basic template substitutions
  */   */

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

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