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

Diff of /lbbs/include/login.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Tue May 6 05:31:26 2025 UTC Revision 1.18 by sysadm, Tue Dec 2 08:48:05 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                    login.h  -  description  /*
3                                                           -------------------   * login
4          Copyright            : (C) 2004-2025 by Leaflet   *   - user authentication and online status manager
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  #ifndef _LOGIN_H_  #ifndef _LOGIN_H_
10  #define _LOGIN_H_  #define _LOGIN_H_
11    
12  #include <mysql.h>  #include <mysql.h>
13    
14  extern void login_fail();  extern const int BBS_login_retry_times;
15    
16  extern int bbs_login();  extern void login_fail(void);
17    
18  extern int check_user(MYSQL *db, char *username, char *password);  extern int bbs_login(void);
19    
20  extern int load_user_info(MYSQL *db, long int BBS_uid);  extern int check_user(const char *username, const char *password);
21    
22  extern int load_guest_info(MYSQL *db);  extern int load_user_info(MYSQL *db, int BBS_uid);
23    
24  extern int user_online_add(MYSQL *db);  extern int load_guest_info(void);
25    
26    extern int user_online_add(MYSQL *db);
27  extern int user_online_del(MYSQL *db);  extern int user_online_del(MYSQL *db);
28    extern int user_online_exp(MYSQL *db);
29    
30    extern int user_online_update(const char *action);
31    
32    extern int user_update_agreement(void);
33    
34  #endif //_LOGIN_H_  #endif //_LOGIN_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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