NAME

Slash::Utility::Access - SHORT DESCRIPTION for Slash


SYNOPSIS

        use Slash::Utility;
        # do not use this module directly


DESCRIPTION

LONG DESCRIPTION.


EXPORTED FUNCTIONS

getFormkey()

Creates a random formkey (well, as random as random gets)

Return value
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

Return value
Returns an error message to be printed out by calling script

allowExpiry()

Returns whether the system allows user expirations or not.

Return value
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.
Return value
None.


SEE ALSO

Slash(3), Slash::Utility(3).


VERSION

$Id: Access.pm,v 1.1.2.34 2001/10/11 06:32:43 jamie Exp $