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)
formkeyError()generates proper error message based on formkey error and also logs to abuse log if the error warrants it
allowExpiry()Returns whether the system allows user expirations or not.
| The following variables can control this behavior: | |
| min_expiry_days | |
| max_expiry_days | |
| min_expiry_comm | |
| max_expiry_comm |
do_expiry
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.
Slash(3), Slash::Utility(3).
$Id: Access.pm,v 1.1.2.34 2001/10/11 06:32:43 jamie Exp $