| 3 |
* section_list_display |
* section_list_display |
| 4 |
* - user interactive feature of section articles list |
* - user interactive feature of section articles list |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2026 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
| 58 |
QUERY_USER, |
QUERY_USER, |
| 59 |
SET_FAVOR_ARTICLE, |
SET_FAVOR_ARTICLE, |
| 60 |
UNSET_FAVOR_ARTICLE, |
UNSET_FAVOR_ARTICLE, |
| 61 |
|
SET_EXCERPTION_ARTICLE, |
| 62 |
FIRST_TOPIC_ARTICLE, |
FIRST_TOPIC_ARTICLE, |
| 63 |
LAST_TOPIC_ARTICLE, |
LAST_TOPIC_ARTICLE, |
| 64 |
LAST_SECTION_ARTICLE, |
LAST_SECTION_ARTICLE, |
| 342 |
return UNSET_FAVOR_ARTICLE; |
return UNSET_FAVOR_ARTICLE; |
| 343 |
} |
} |
| 344 |
break; |
break; |
| 345 |
|
case 'm': |
| 346 |
|
if (item_count > 0) |
| 347 |
|
{ |
| 348 |
|
return SET_EXCERPTION_ARTICLE; |
| 349 |
|
} |
| 350 |
|
break; |
| 351 |
case KEY_HOME: |
case KEY_HOME: |
| 352 |
*p_page_id = 0; |
*p_page_id = 0; |
| 353 |
case 'P': |
case 'P': |
| 1100 |
p_articles[selected_index]->tid == 0 ? p_articles[selected_index]->aid : p_articles[selected_index]->tid); |
p_articles[selected_index]->tid == 0 ? p_articles[selected_index]->aid : p_articles[selected_index]->tid); |
| 1101 |
} |
} |
| 1102 |
break; |
break; |
| 1103 |
|
case SET_EXCERPTION_ARTICLE: |
| 1104 |
|
if (checkpriv(&BBS_priv, p_section->sid, S_POST | S_MAN_S)) |
| 1105 |
|
{ |
| 1106 |
|
ret = article_excerption_set(p_section, p_articles[selected_index]->aid, (p_articles[selected_index]->excerption ? 0 : 1)); |
| 1107 |
|
if (ret < 0) |
| 1108 |
|
{ |
| 1109 |
|
log_error("article_excerption_set(sid=%d, aid=%d, set=%d) error\n", |
| 1110 |
|
p_section->sid, p_articles[selected_index]->aid, (p_articles[selected_index]->excerption ? 0 : 1)); |
| 1111 |
|
} |
| 1112 |
|
} |
| 1113 |
|
break; |
| 1114 |
case FIRST_TOPIC_ARTICLE: |
case FIRST_TOPIC_ARTICLE: |
| 1115 |
case LAST_TOPIC_ARTICLE: |
case LAST_TOPIC_ARTICLE: |
| 1116 |
page_id_cur = page_id; |
page_id_cur = page_id; |