/[LeafOK_CVS]/lbbs/include/login.h
ViewVC logotype

Annotation of /lbbs/include/login.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations)
Thu Oct 16 05:24:52 2025 UTC (5 months ago) by sysadm
Branch: MAIN
Changes since 1.12: +1 -0 lines
Content type: text/x-chdr
Fix bug

1 sysadm 1.1 /***************************************************************************
2     login.h - description
3     -------------------
4 sysadm 1.3 Copyright : (C) 2004-2025 by Leaflet
5     Email : leaflet@leafok.com
6 sysadm 1.1 ***************************************************************************/
7    
8     /***************************************************************************
9     * *
10     * This program is free software; you can redistribute it and/or modify *
11     * it under the terms of the GNU General Public License as published by *
12 sysadm 1.3 * the Free Software Foundation; either version 3 of the License, or *
13 sysadm 1.1 * (at your option) any later version. *
14     * *
15     ***************************************************************************/
16    
17     #ifndef _LOGIN_H_
18     #define _LOGIN_H_
19    
20 sysadm 1.5 #include <mysql/mysql.h>
21 sysadm 1.1
22 sysadm 1.6 #define BBS_login_retry_times 3
23 sysadm 1.11 #define BBS_allowed_login_failures_within_interval 10
24 sysadm 1.9 #define BBS_login_failures_count_interval 10 // minutes
25 sysadm 1.12 #define BBS_allowed_login_failures_per_account 3
26 sysadm 1.6
27 sysadm 1.8 extern void login_fail(void);
28 sysadm 1.1
29 sysadm 1.8 extern int bbs_login(void);
30 sysadm 1.1
31 sysadm 1.8 extern int check_user(const char *username, const char *password);
32 sysadm 1.1
33 sysadm 1.7 extern int load_user_info(MYSQL *db, int BBS_uid);
34 sysadm 1.1
35 sysadm 1.8 extern int load_guest_info(void);
36 sysadm 1.1
37 sysadm 1.2 extern int user_online_add(MYSQL *db);
38 sysadm 1.10 extern int user_online_del(MYSQL *db);
39 sysadm 1.13 extern int user_online_exp(MYSQL *db);
40 sysadm 1.2
41 sysadm 1.10 extern int user_online_update(const char *action);
42 sysadm 1.2
43 sysadm 1.1 #endif //_LOGIN_H_

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1