In file useracc.h:

struct useracc

User account structure.

[more]char userid[24]
User ID.
[more]char passwd[16]
Password.
[more]char username[32]
Real name.
[more]char company[32]
User's company.
[more]char address1[32]
Address, line 1 of 2.
[more]char address2[32]
Address, line 2 of 2.
[more]char phone[24]
Phone number.
[more]uint32 prefs
Preference flags (UPF_x flags).
[more]uint32 flags
General flags (UFL_x flags).
[more]uint32 sysaxs[ 3]
Sysop flags (USY_x constants).
[more]uint8 age
Age in years.
[more]char sex
Sex (USX_x constants).
[more]uint8 system
User's computer system type.
[more]uint8 language
Language preferred.
[more]uint8 scnwidth
Screen width (columns, usually 80).
[more]uint8 scnheight
Screen height (rows, usually 24).
[more]uint32 datecre
Date user signed up.
[more]uint32 datelast
Date last logged on.
[more]int32 passexp
Days till password expires.
[more]char tempclss[10]
Previous Class.
[more]char curclss[10]
Current Class.
[more]int32 timetdy
Time spent today.
[more]int32 classdays
Days spent in current class.
[more]uint32 credits
Credits left.
[more]int32 totcreds
Total credits received ever.
[more]int32 totpaid
Total paid credits received ever.
[more]bbskey_t keys[KEYLENGTH]
Personal keyring array.
[more]uint32 timever
Total online time spent ever.
[more]uint32 credsever
Total credits spent ever.
[more]int32 pagetime
Time between allowing pages.
[more]int32 pagestate
Page prefs (PGS_x flags)
[more]uint32 filesdnl
Total number of files downloaded.
[more]uint32 bytesdnl
Number of bytes downloaded.
[more]uint32 filesupl
Number of files uploaded.
[more]uint32 bytesupl
Number of bytes downloaded.
[more]uint32 msgswritten
Number of messages written.
[more]uint32 connections
Number of connections.
[more]char lastclub[16]
Last club visited.
[more]uint32 auditfiltering
Flag mask for showing audit paging.
[more]char dummy[1020-348]
Scratch space.
[more]char magic[4]
Magic number (USR_MAGIC).


Documentation

User account structure.

This is the permanent user account record. It holds a user's particulars, along with additional preferences, access levels, statistics and state information. This is a pretty long structure. Here's a length description of the fields. I've grouped similar fields together to make the description a bit more readable:

userid, passwd, username, company, address1, address2, phone, age
The user's age in years. The user's particulars. Things that we need to know for billing, et cetera: the user's user ID (their handle within the system), their password, full name, company name (if any), address (two lines), contact phone number, age (in years) and sex (`yes, please' isn't an option --- see the USX_x constants).

prefs, flags
A set of preferences and flags respectively, comprising of UPF_x flags and UFL_x flags respectively (the flags are ORred together).

sysaxs
An array of flags, each of which corresponds to one operator command or privilege. Have a look at the USY_x flags for a full description.

system
The user's system, for statistics.

language
The user's preferred language number.

scnwidth, scnheight
User's preferred screen resolution (columns, rows respectively).

datecre, datelast
The date (and time, under the new API) of the account's creation and last login.

passexp
Counts the days until the user's password expires. Set to zero to denote that the user's password will not expire.

tempclss, curclss
The user's temporary class and permanent class. User classes are a way of managing user accounts with subscriptions, freebies, et cetera. The temporary class is where a user is placed when they run out of credits. The user stays in this class for the remainder of the day, until the daily cleanup either moves them to a new class or back to their original one.

timetdy
User's total connection time for today (i.e. after the last cleanup).

classdays
Number of days since the user was moved to their current permanent class.

credits
Credits left.

totcreds, totpaid
Respectively, the total number of credits debited to this account, ever, and the total number of paid credits debited to this account. The number of free credits debited to the account is equal to totcreds-totpaid.

keys
The user's personal keyring.

timever, credsever
The total time the user has spent online, and the total number of credits spent ever.

pagetime, pagestate
The time (in minutes) that must pass between pages to this user. This is done so as not to annoy the user. Not many people use it, at least on our systems. The page state restricts paging to the user in a small range of ways, listed as the PGS_x constants.

filesdnl, bytesdnl filesupl, bytesupl, msgswritten, connections
Respectively the number of files downloaded by the user, the grand total of bytes downloaded, files and bytes uploaded, total number of messages written and total number of connections made ever. These are used for statistical purposes.

lastclub
The last club accessed by the user. This is remembered in between sessions.

auditfiltering
Flags used to decide which audit trail entries (if any) are to be paged to the user. Uses the AUX_x flags, the same ones used by the audit trail functions to flag different severities and types of entries.

ochar userid[24]
User ID.

ochar passwd[16]
Password.

ochar username[32]
Real name.

ochar company[32]
User's company.

ochar address1[32]
Address, line 1 of 2.

ochar address2[32]
Address, line 2 of 2.

ochar phone[24]
Phone number.

ouint32 prefs
Preference flags (UPF_x flags).

ouint32 flags
General flags (UFL_x flags).

ouint32 sysaxs[ 3]
Sysop flags (USY_x constants).

ouint8 age
Age in years.

ochar sex
Sex (USX_x constants).

ouint8 system
User's computer system type.

ouint8 language
Language preferred.

ouint8 scnwidth
Screen width (columns, usually 80).

ouint8 scnheight
Screen height (rows, usually 24).

ouint32 datecre
Date user signed up.

ouint32 datelast
Date last logged on.

oint32 passexp
Days till password expires.

ochar tempclss[10]
Previous Class.

ochar curclss[10]
Current Class.

oint32 timetdy
Time spent today.

oint32 classdays
Days spent in current class.

ouint32 credits
Credits left.

oint32 totcreds
Total credits received ever.

oint32 totpaid
Total paid credits received ever.

obbskey_t keys[KEYLENGTH]
Personal keyring array.

ouint32 timever
Total online time spent ever.

ouint32 credsever
Total credits spent ever.

oint32 pagetime
Time between allowing pages.

oint32 pagestate
Page prefs (PGS_x flags)

ouint32 filesdnl
Total number of files downloaded.

ouint32 bytesdnl
Number of bytes downloaded.

ouint32 filesupl
Number of files uploaded.

ouint32 bytesupl
Number of bytes downloaded.

ouint32 msgswritten
Number of messages written.

ouint32 connections
Number of connections.

ochar lastclub[16]
Last club visited.

ouint32 auditfiltering
Flag mask for showing audit paging.

ochar dummy[1020-348]
Scratch space.

ochar magic[4]
Magic number (USR_MAGIC).

Deprecated:
Please use typedef useracc_t instead.

Alphabetic index



This page was generated with the help of DOC++.