/[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.2 by sysadm, Sun May 4 14:54:55 2025 UTC Revision 1.19 by sysadm, Sat Jan 3 10:27:14 2026 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                    login.h  -  description  /*
3                                                           -------------------   * login
4          begin                : Wed Mar 16 2004   *   - user authentication and online status manager
5          copyright            : (C) 2005 by Leaflet   *
6          email                : leaflet@leafok.com   * Copyright (C) 2004-2026  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 2 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