| 70 |
c++; |
c++; |
| 71 |
} |
} |
| 72 |
|
|
| 73 |
#ifdef _LOAD_SO |
#ifdef _ENABLE_SHARED |
| 74 |
hdll = dlopen(s + 5, RTLD_LAZY); |
hdll = dlopen(s + 5, RTLD_LAZY); |
| 75 |
|
|
| 76 |
if (hdll) |
if (hdll) |
| 275 |
{ |
{ |
| 276 |
static int show_top10 = 0; |
static int show_top10 = 0; |
| 277 |
int ch = 0; |
int ch = 0; |
| 278 |
|
int loop; |
| 279 |
|
|
| 280 |
if (show_top10) |
if (show_top10) |
| 281 |
{ |
{ |
| 289 |
|
|
| 290 |
if (display_menu(&top10_menu) == 0) |
if (display_menu(&top10_menu) == 0) |
| 291 |
{ |
{ |
| 292 |
while (!SYS_server_exit) |
for (loop = 1; !SYS_server_exit && loop;) |
| 293 |
{ |
{ |
| 294 |
iflush(); |
iflush(); |
| 295 |
ch = igetch(100); |
ch = igetch(100); |
| 303 |
{ |
{ |
| 304 |
case KEY_NULL: // broken pipe |
case KEY_NULL: // broken pipe |
| 305 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 306 |
show_top10 = 0; |
loop = 0; |
| 307 |
return 0; |
break; |
| 308 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 309 |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 310 |
{ |
{ |
| 311 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |
| 312 |
show_top10 = 0; |
loop = 0; |
| 313 |
return 0; |
break; |
| 314 |
} |
} |
| 315 |
continue; |
continue; |
| 316 |
case CR: |
case CR: |
| 318 |
switch (menu_control(&top10_menu, ch)) |
switch (menu_control(&top10_menu, ch)) |
| 319 |
{ |
{ |
| 320 |
case EXITMENU: |
case EXITMENU: |
| 321 |
ch = EXITMENU; |
loop = 0; |
| 322 |
break; |
break; |
| 323 |
case REDRAW: |
case REDRAW: |
| 324 |
clearscr(); |
clearscr(); |
| 331 |
break; |
break; |
| 332 |
} |
} |
| 333 |
} |
} |
|
|
|
|
if (ch == EXITMENU) |
|
|
{ |
|
|
break; |
|
|
} |
|
| 334 |
} |
} |
| 335 |
} |
} |
| 336 |
|
|