| 1 |
sysadm |
1.1 |
/***************************************************************************
|
| 2 |
|
|
login.h - description
|
| 3 |
|
|
-------------------
|
| 4 |
|
|
begin : Wed Mar 16 2004
|
| 5 |
|
|
copyright : (C) 2005 by Leaflet
|
| 6 |
|
|
email : leaflet@leafok.com
|
| 7 |
|
|
***************************************************************************/
|
| 8 |
|
|
|
| 9 |
|
|
/***************************************************************************
|
| 10 |
|
|
* *
|
| 11 |
|
|
* This program is free software; you can redistribute it and/or modify *
|
| 12 |
|
|
* it under the terms of the GNU General Public License as published by *
|
| 13 |
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
| 14 |
|
|
* (at your option) any later version. *
|
| 15 |
|
|
* *
|
| 16 |
|
|
***************************************************************************/
|
| 17 |
|
|
|
| 18 |
|
|
#ifndef _LOGIN_H_
|
| 19 |
|
|
#define _LOGIN_H_
|
| 20 |
|
|
|
| 21 |
|
|
#include <mysql.h>
|
| 22 |
|
|
|
| 23 |
|
|
extern void login_fail();
|
| 24 |
|
|
|
| 25 |
|
|
extern int bbs_login();
|
| 26 |
|
|
|
| 27 |
|
|
extern int check_user(MYSQL *db, char *username, char *password);
|
| 28 |
|
|
|
| 29 |
|
|
extern int load_user_info(MYSQL *db, long int BBS_uid);
|
| 30 |
|
|
|
| 31 |
|
|
extern int load_guest_info(MYSQL *db);
|
| 32 |
|
|
|
| 33 |
|
|
#endif //_LOGIN_H_
|