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/db.inc.php between version 1.81 and 1.82

version 1.81, 2014/10/13 10:04:54 version 1.82, 2015/01/15 16:22:22
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/db.inc.php,v 1.80 2014-04-02 09:10:30 igor Exp $ */  /* $Platon: Metafox/db.inc.php,v 1.81 2014-10-13 10:04:54 igor Exp $ */
   
 /*  /*
  * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002   * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002
Line 349  function ezin_get_section_list_counts($l
Line 349  function ezin_get_section_list_counts($l
         return $array;          return $array;
 } /* }}} */  } /* }}} */
   
   function ezin_get_section_id($section_access_key) /* {{{ */
   {
           global $ezin_sys;
           global $ezin_db_handle;
           if (strlen($section_access_key) <= 0) {
                   return false;
           }
           $query = 'SELECT'
                   .' sections.id section_id'
                   .' FROM '.$ezin_sys['db']['tables']['sections'].' AS sections'
                   .' WHERE sections.access_key = "'.ezin_db_escape($section_access_key).'"';
           $result = @mysql_query($query, $ezin_db_handle)
                   or ezin_db_error('ezin_get_section_id() [1]');
           if (($row = mysql_fetch_array($result, MYSQL_ASSOC)) == false)
                   return false;
           @mysql_free_result($result);
           return $row['section_id'];
   } /* }}} */
   
 /*  /*
  * ezin_get_section()   * ezin_get_section()
  */   */
Line 570  function ezin_get_article_list($section_
Line 589  function ezin_get_article_list($section_
                 .' '.$ezin_sys['db']['tables']['sections'].' AS sections';                  .' '.$ezin_sys['db']['tables']['sections'].' AS sections';
         $query .=          $query .=
                 ' WHERE articles.section_id = sections.id'                  ' WHERE articles.section_id = sections.id'
                 .' AND articles.datetime <= SYSDATE()'                  .(($ezin_cfg['article_datetime_filter'] == 1) ? ' AND articles.datetime <= SYSDATE()' : '')
 //              .' AND UNIX_TIMESTAMP(articles.datetime) > 0'  //              .' AND UNIX_TIMESTAMP(articles.datetime) > 0'
                 .' AND ( (FIND_IN_SET("articles_enabled", sections.display) > 0)'                  .' AND ( (FIND_IN_SET("articles_enabled", sections.display) > 0)'
                 .'              OR (FIND_IN_SET("articles_in_normal", sections.display) > 0)'                  .'              OR (FIND_IN_SET("articles_in_normal", sections.display) > 0)'

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

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