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.6 and 1.7

version 1.6, 2005/10/02 18:34:49 version 1.7, 2005/10/22 19:49:30
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/db.inc.php,v 1.5 2005/08/13 23:06:13 nepto Exp $ */  /* $Platon: Metafox/db.inc.php,v 1.6 2005/10/02 18:34:49 nepto 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 86  function ezin_validate_IDs($ar) /* {{{ *
Line 86  function ezin_validate_IDs($ar) /* {{{ *
                                 $select_cols[] = $ezin_articles.'.bind_lang AS article_bind_lang';                                  $select_cols[] = $ezin_articles.'.bind_lang AS article_bind_lang';
                                 $conditions    = array_merge($conditions, array(                                  $conditions    = array_merge($conditions, array(
                                                         $ezin_sections.'.id = '.$ezin_articles.'.section_id',                                                          $ezin_sections.'.id = '.$ezin_articles.'.section_id',
                                                         $ezin_articles.'.datetime < SYSDATE() ',                                                          //$ezin_articles.'.datetime <= SYSDATE() ',
                                                         $ezin_articles.'.status NOT IN ("", "disabled")',                                                          $ezin_articles.'.status NOT IN ("", "disabled")',
                                                         $ezin_sections.'.type NOT IN ("", "disabled")'                                                          $ezin_sections.'.type NOT IN ("", "disabled")'
                                                         ));                                                          ));
Line 308  function ezin_get_section($section_id) /
Line 308  function ezin_get_section($section_id) /
                 .' FROM '.$ezin_sys['db']['tables']['sections'].' AS sections'                  .' FROM '.$ezin_sys['db']['tables']['sections'].' AS sections'
                 .' LEFT JOIN '.$ezin_sys['db']['tables']['editorials'].' AS editorials'                  .' LEFT JOIN '.$ezin_sys['db']['tables']['editorials'].' AS editorials'
                 .' ON sections.id = editorials.section_id'                  .' ON sections.id = editorials.section_id'
                 .' AND (editorials.datetime < SYSDATE()'                  .' AND (editorials.datetime <= SYSDATE()'
                                 .' OR editorials.datetime IS NULL)'                                  .' OR editorials.datetime IS NULL)'
                 /* XXX let this here, although global sections now use direct ID retrieving */                  /* XXX let this here, although global sections now use direct ID retrieving */
                 .' WHERE '.($section_id > 0                  .' WHERE '.($section_id > 0
Line 391  function ezin_get_article_list($section_
Line 391  function ezin_get_article_list($section_
                 .' '.$ezin_sys['db']['tables']['sections'].' AS sections'                  .' '.$ezin_sys['db']['tables']['sections'].' AS sections'
                 .' WHERE articles.section_id = sections.id'                  .' WHERE articles.section_id = sections.id'
                 .' AND articles.author_id = authors.id'                  .' AND articles.author_id = authors.id'
                 .' AND articles.datetime < SYSDATE()'                  .' AND articles.datetime <= SYSDATE()'
                 .' AND articles.status NOT IN ("", "disabled")'                  .' AND articles.status NOT IN ("", "disabled")'
                 .' AND sections.type NOT IN ("", "full_hidden", "disabled")';                  .' AND sections.type NOT IN ("", "full_hidden", "disabled")';
         if ($lang != '') {          if ($lang != '') {
Line 446  function ezin_get_article_list_counts($s
Line 446  function ezin_get_article_list_counts($s
                 .' '.$ezin_sys['db']['tables']['sections'].' AS sections'                  .' '.$ezin_sys['db']['tables']['sections'].' AS sections'
                 .' WHERE articles.section_id = sections.id'                  .' WHERE articles.section_id = sections.id'
                 .' AND articles.author_id = authors.id'                  .' AND articles.author_id = authors.id'
                 .' AND articles.datetime < SYSDATE()'                  .' AND articles.datetime <= SYSDATE()'
                 .' AND articles.status NOT IN ("", "disabled")'                  .' AND articles.status NOT IN ("", "disabled")'
                 .' AND sections.type NOT IN ("", "full_hidden", "disabled")';                  .' AND sections.type NOT IN ("", "full_hidden", "disabled")';
         if ($lang != '') {          if ($lang != '') {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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