Slash::Utility::Access - SHORT DESCRIPTION for Slash
use Slash::Utility;# do not use this module directly
LONG DESCRIPTION.
getFormkey() Creates a random formkey (well, as random as random gets) Return a random value based on alphanumeric characters
formkeyError() generates proper error message based on formkey error and also logs to abuse log if the error warrants it Returns an error message to be printed out by calling script
allowExpiry() Returns whether the system allows user expirations or not. Boolean value. True if users are to be expired, false if not.
The following variables can control this behavior:
min_expiry_days
max_expiry_days
min_expiry_comm
max_expiry_comm
do_expiry
setUserExpiry($uid, $val) Set/Clears the expired status on the given UID based on $val. If $val is non-zero, then expiration will be performed on the user, this include:
- Generating a registration ID for the user so that they can re-register.
- Marking all forms in vars.[expire_forms] as read-only.
- Clearing the registration flag.
- Sending the registration email which notifies user of expiration. If $val is non-zero, then the above operations are "cleared" by performing the following:
- Clearing the registration ID associated with the user.(it's not the job of this routine to perform checks on reg-id)- Unmarking all forms marked read-only (note: this is NOT a deletion!)- Setting the registration flag.
None. Slash(3), Slash::Utility(3). $Id: Access.pm,v 1.1.2.40 2001/11/02 22:27:17 jamie Exp $