Diff for Metafox/db.inc.php between version 1.3 and 1.4
| version 1.3, 2005/06/10 15:40:20 |
version 1.4, 2005/07/27 15:15:58 |
|
|
| * http://platon.sk/projects/phpMyEzin/ |
* http://platon.sk/projects/phpMyEzin/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.2 2005/06/10 15:22:47 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.3 2005/06/10 15:40:20 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 396 function ezin_get_article_list($section_ |
|
| Line 396 function ezin_get_article_list($section_ |
|
| $query .= ' AND sections.type != "hidden2" AND articles.status != "partly_showed"'; |
$query .= ' AND sections.type != "hidden2" AND articles.status != "partly_showed"'; |
| } |
} |
| } |
} |
| $query .= ' ORDER BY articles.datetime ' |
$query .= ' ORDER BY'; |
| .($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC') |
$query .= ' articles.datetime '.($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC'); |
| .', articles.id ASC'; |
$query .= ',articles.id ' .($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC'); |
| if ($limit > 0) { |
if ($limit > 0) { |
| $query .= ' LIMIT '.$limit; |
$query .= ' LIMIT '.$limit; |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|