| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
user_list_display.c - description |
/* |
| 3 |
------------------- |
* user_list_display |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - display user information |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* This program is free software; you can redistribute it and/or modify * |
|
|
* it under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#include "bbs.h" |
#include "bbs.h" |
| 10 |
#include "ip_mask.h" |
#include "ip_mask.h" |
| 20 |
#include <time.h> |
#include <time.h> |
| 21 |
#include <sys/param.h> |
#include <sys/param.h> |
| 22 |
|
|
| 23 |
#define BBS_max_sessions_per_user 10 |
enum _user_info_display_constant_t |
| 24 |
#define LAST_LOGIN_DT_MAX_LEN 50 |
{ |
| 25 |
|
BBS_max_sessions_per_user = 10, |
| 26 |
|
LAST_LOGIN_DT_MAX_LEN = 50, |
| 27 |
|
}; |
| 28 |
|
|
| 29 |
static int display_user_info_key_handler(int *p_key, DISPLAY_CTX *p_ctx) |
static int display_user_info_key_handler(int *p_key, DISPLAY_CTX *p_ctx) |
| 30 |
{ |
{ |