| 1 |
/*************************************************************************** |
/*************************************************************************** |
| 2 |
bbs.c - description |
bbs.c - description |
| 3 |
------------------- |
------------------- |
| 4 |
begin : Mon Oct 18 2004 |
begin : Mon Oct 18 2004 |
| 5 |
copyright : (C) 2004 by Leaflet |
copyright : (C) 2004 by Leaflet |
| 6 |
email : leaflet@leafok.com |
email : leaflet@leafok.com |
| 7 |
***************************************************************************/ |
***************************************************************************/ |
| 8 |
|
|
| 9 |
/*************************************************************************** |
/*************************************************************************** |
| 16 |
***************************************************************************/ |
***************************************************************************/ |
| 17 |
|
|
| 18 |
#include "bbs.h" |
#include "bbs.h" |
| 19 |
|
#include <signal.h> |
| 20 |
#include <time.h> |
#include <time.h> |
| 21 |
|
|
| 22 |
//BBS enviroment |
// BBS enviroment |
| 23 |
char BBS_id[20] = ""; |
char BBS_id[20] = ""; |
| 24 |
char BBS_name[50] = ""; |
char BBS_name[50] = ""; |
| 25 |
char BBS_server[256] = ""; |
char BBS_server[256] = ""; |
| 36 |
|
|
| 37 |
time_t BBS_login_tm; |
time_t BBS_login_tm; |
| 38 |
time_t BBS_last_access_tm; |
time_t BBS_last_access_tm; |
|
time_t BBS_last_sub_tm; |
|
| 39 |
|
|
| 40 |
char BBS_current_section_name[20]; |
char BBS_current_section_name[20]; |
| 41 |
|
|
| 42 |
|
char * |
| 43 |
|
setuserfile(char *buf, const char *filename) |
| 44 |
|
{ |
| 45 |
|
sprintf(buf, "data/%s/%ld", filename, BBS_priv.uid); |
| 46 |
|
return buf; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
char * |
| 50 |
|
sethomefile(char *buf, long int uid, char *filename) |
| 51 |
|
{ |
| 52 |
|
sprintf(buf, "data/%s/%ld", filename, uid); |
| 53 |
|
return buf; |
| 54 |
|
} |