SofaDoc

SofaDoc Map Usage

inc/special/passwords.php

Allows the admin to create passwords for users and to create new user pages.
Used by the $action password.
In the first step you enter the email, the password.
You can optionally enter the email of another user to use as template for the rights.
This creates a preview of the user page with the hash of the password.
You can add content to the page.
In a second step, you save the user page.
A 6 digit password is proposed. You can define your own swGeneratePasswordHook() function in site/configuration.php.

Used elements

Classes

swUser, swWiki

Functions

swNameURL

Globals

$_POST, $_REQUEST, $act, $but, $defaultpassword, $lin, $myname, $mypass, $mypass0, $myusertemplate, $swParsedName, $tea

Variables

$myuser, $otheruser, $otherusercontent, $passencrypted, $swParseSpecial, $swParsedContent, $swParsers, $username, $userwiki

Short variables: $s

Features

array, function, math, preg

Others

swGeneratePasswordHook