| 228 |
|
|
| 229 |
int show_top10_menu(void *param) |
int show_top10_menu(void *param) |
| 230 |
{ |
{ |
| 231 |
|
static int show_top10 = 0; |
| 232 |
int ch = 0; |
int ch = 0; |
| 233 |
|
|
| 234 |
|
if (show_top10) |
| 235 |
|
{ |
| 236 |
|
return NOREDRAW; |
| 237 |
|
} |
| 238 |
|
show_top10 = 1; |
| 239 |
|
|
| 240 |
clearscr(); |
clearscr(); |
| 241 |
show_top("", BBS_name, ""); |
show_top("", BBS_name, ""); |
| 242 |
show_bottom(""); |
show_bottom(""); |
| 250 |
switch (ch) |
switch (ch) |
| 251 |
{ |
{ |
| 252 |
case KEY_NULL: // broken pipe |
case KEY_NULL: // broken pipe |
| 253 |
|
show_top10 = 0; |
| 254 |
return 0; |
return 0; |
| 255 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 256 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
| 257 |
{ |
{ |
| 258 |
|
show_top10 = 0; |
| 259 |
return 0; |
return 0; |
| 260 |
} |
} |
| 261 |
continue; |
continue; |
| 288 |
} |
} |
| 289 |
} |
} |
| 290 |
|
|
| 291 |
|
show_top10 = 0; |
| 292 |
return REDRAW; |
return REDRAW; |
| 293 |
} |
} |
| 294 |
|
|