| version 1.18, 2006/05/20 16:51:23 |
version 1.19, 2006/05/21 08:07:16 |
| Line 397 function ezin_get_article_list($section_ |
|
| Line 397 function ezin_get_article_list($section_ |
|
| //.' sections.a_limit article_section_limit' |
//.' sections.a_limit article_section_limit' |
| .' FROM '.$ezin_sys['db']['tables']['articles'].' AS articles,' |
.' FROM '.$ezin_sys['db']['tables']['articles'].' AS articles,' |
| .' '.$ezin_sys['db']['tables']['authors'].' AS authors,' |
.' '.$ezin_sys['db']['tables']['authors'].' AS authors,' |
| .' '.$ezin_sys['db']['tables']['sections'].' AS sections' |
.' '.$ezin_sys['db']['tables']['sections'].' AS sections'; |
| .' WHERE articles.section_id = sections.id' |
$query .= |
| |
' WHERE articles.section_id = sections.id' |
| .' AND articles.author_id = authors.id' |
.' AND articles.author_id = authors.id' |
| .' AND articles.datetime <= SYSDATE() - 3600' |
.' AND articles.datetime <= SYSDATE() - 3600' |
| .' AND UNIX_TIMESTAMP(articles.datetime) > 0' |
.' AND UNIX_TIMESTAMP(articles.datetime) > 0' |
| Line 453 function ezin_get_article_list_counts($s |
|
| Line 454 function ezin_get_article_list_counts($s |
|
| .' articles.accesses_count, articles.sessions_count, articles.message_count' |
.' articles.accesses_count, articles.sessions_count, articles.message_count' |
| .' FROM '.$ezin_sys['db']['tables']['articles'].' AS articles,' |
.' FROM '.$ezin_sys['db']['tables']['articles'].' AS articles,' |
| .' '.$ezin_sys['db']['tables']['authors'].' AS authors,' |
.' '.$ezin_sys['db']['tables']['authors'].' AS authors,' |
| .' '.$ezin_sys['db']['tables']['sections'].' AS sections' |
.' '.$ezin_sys['db']['tables']['sections'].' AS sections'; |
| .' WHERE articles.section_id = sections.id' |
$query .= |
| |
' WHERE articles.section_id = sections.id' |
| .' AND articles.author_id = authors.id' |
.' AND articles.author_id = authors.id' |
| .' AND articles.datetime <= SYSDATE() - 3600' |
.' AND articles.datetime <= SYSDATE() - 3600' |
| .' AND UNIX_TIMESTAMP(articles.datetime) > 0' |
.' AND UNIX_TIMESTAMP(articles.datetime) > 0' |