useracc.h

Definitions related to user accounts.
This header declares a veritable hodge-podge of structures and functions dealing with user accounts. There is a wide collection of low-level and high-level functions. Some of these could be living somewhere else, but they seem to fit right here.

Original banner, legalese and change history follow.


 *****************************************************************************
 **                                                                         **
 **  FILE:     useracc.h                                                    **
 **  AUTHORS:  Alexios                                                      **
 **  REVISION: A, June 94                                                   **
 **  PURPOSE:  Define data structures used for storing users et al.         **
 **  NOTES:                                                                 **
 **  LEGALESE:                                                              **
 **                                                                         **
 **  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.                                        **
 **                                                                         **
 **  This program is distributed  in the hope  that it will be useful, but  **
 **  WITHOUT    ANY WARRANTY;   without  even  the    implied warranty  of  **
 **  MERCHANTABILITY or  FITNESS FOR  A PARTICULAR  PURPOSE.   See the GNU  **
 **  General Public License for more details.                               **
 **                                                                         **
 **  You  should have received a copy   of the GNU  General Public License  **
 **  along with    this program;  if   not, write  to  the   Free Software  **
 **  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              **
 **                                                                         **
 *****************************************************************************


 *
 * $Id: useracc.h,v 1.3 2001/04/22 14:49:04 alexios Exp $
 *
 * $Log: useracc.h,v $
 * Revision 1.3  2001/04/22 14:49:04  alexios
 * Merged in leftover 0.99.2 changes and additional bug fixes.
 *
 * Revision 0.11  2000/01/06 11:40:19  alexios
 * Added field lastconsolepage to denote the time of the user's
 * last page to the console (if any). The field was, of course,
 * added to the onlinerec structure.
 *
 * Revision 0.10  1998/12/27 15:19:19  alexios
 * Added user magic numbers and declarations for the functions
 * migrated from miscfx.h.
 *
 * Revision 0.9  1998/08/14 11:23:21  alexios
 * Added on-line flag to tell bbsd and emud that we're not
 * logging off completely (this is only for auditing purposes).
 *
 * Revision 0.8  1998/07/26 21:17:06  alexios
 * Added a flag to force idle zapping of users on telnet
 * connections.
 *
 * Revision 0.7  1997/11/06 20:03:39  alexios
 * Added GPL legalese to the top of this file.
 *
 * Revision 0.6  1997/11/06 16:49:10  alexios
 * Renamed USY_AUDITPAGE to USY_PAGEAUDIT so it's easier to
 * find in the remsys module. Added new command flags for the
 * new commands in remsys (USY_SECURITY, USY_SIGNUPS and
 * USY_FILTAUD).
 *
 * Revision 0.5  1997/11/05 10:52:05  alexios
 * Cosmetic changes. Added field auditfiltering in useracc to
 * store operator's audit filtering preferences. Added remote
 * sysop command flags USY_AUDITPAGE. Changed the values of
 * USY_INVIS and USY_GDET (shouldn't have; they're not in
 * alpha order anyway). Obsoleted OLF_SOPAUD since
 * useracc.auditfiltering is used now.
 *
 * Revision 0.4  1997/11/03 00:29:40  alexios
 * Removed defines for hardwired xlation tables, added code
 * and defines for generalised tables.
 *
 * Revision 0.3  1997/09/12 12:48:48  alexios
 * Added the last selected library to onlinerec. Also added a
 * field injothqueue to hold the IPC ID of the injoth queue for
 * this user.
 *
 * Revision 0.2  1997/08/30 12:54:20  alexios
 * Added OLF_LOGGEDOUT to distinguish between normal and unexpected
 * disconnections from the system.
 *
 * Revision 0.1  1997/08/26 15:48:53  alexios
 * First registered revision. Adequate.
 *
 *
 *


o useracc
User account structure.
o useracc_t
Proper way to refer to a user account.
o User preference flags
User preference flags.
o Sysop commands and privileges.
Sysop command and privilege constants.
o User account flags
User account flags.
o User sexes
User sexes.
o classrec
User class.
o classrec_t
Preferred way to refer to a struct classrec.
o Class flags
Class behaviour flags.
o onlinerec
User online structure.
o ONL_MAGIC
Preferred way to refer to a user online structure.
o Online user flags
Temporary user state and preferences.
o Page states.
User paging restrictions.
o Users and shared memory.
Shared user particulars.
o cls_classes
Array of all defined user classes.
o cls_count
Number of classes in cls_classes.
o cls_find
Find a user class.
o usr_exists
Check for the existence of a user.
o usr_loadaccount
Read a user account from file.
o usr_loadonlrec
Read a user online structure from file.
o usr_saveaccount
Write a user account to disk.
o usr_saveonlrec
Write a user online record to disk.
o usr_postcredits
Post credits to a user account.
o usr_chargecredits
Charge a user's account.
o usr_canpay
Check if the user has enough credits.
o usr_setclass
Change a user's class.
o usr_insystem
Check if a user is online (deprecated).
o usr_insys
Check if a user is online and attach shared segment.
o usr_injoth
Page another user with a message.
o usr_injoth_ack
Page another user with a message and acknowledgement
o usr_uidxref
User ID completion.
Author:
Alexios

Alphabetic index



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