Procedural File: users.php
Source Location: /public_html/users.php
Page Details:
This file handles user authentication
Tags:
Includes:
createuser [line 200]
string createuser(
string $username, string $email, string $email_conf)
|
|
Creates a user Creates a user with the give username and email address
Tags:
Parameters
| string |
$username |
username to create user for |
| string |
$email |
email address to assign to user |
| string |
$email_conf |
confirmation email address check |
defaultform [line 431]
string defaultform(
string $msg)
|
|
Account does not exist - show both the login and register forms
Tags:
Parameters
| string |
$msg |
message to display if one is needed |
displayLoginErrorAndAbort [line 461]
void displayLoginErrorAndAbort(
int $msg, string $message_title, string $message_text)
|
|
Display message after a login error
Tags:
Parameters
| int |
$msg |
message number for custom handler |
| string |
$message_title |
title for the message box |
| string |
$message_text |
text of the message box |
emailpassword [line 67]
string emailpassword(
string $username, [int $msg = 0])
|
|
Emails password to a user This will email the given user their password.
Tags:
Parameters
| string |
$username |
Username for which to get and email password |
| int |
$msg |
Message number of message to show when done |
getpasswordform [line 403]
string getpasswordform(
)
|
|
Shows the password retrieval form
Tags:
loginform [line 315]
string loginform(
[boolean $hide_forgotpw_link = false], [int $userstatus = -1])
|
|
Shows the user login form after failed attempts to either login or access a page requiring login.
Tags:
Parameters
| boolean |
$hide_forgotpw_link |
whether to hide "forgot password?" link |
| int |
$userstatus |
status of the user's account |
newpasswordform [line 164]
string newpasswordform(
uid $uid, requestid $requestid)
|
|
Display a form where the user can enter a new password.
Tags:
Parameters
| uid |
$uid |
int user id |
| requestid |
$requestid |
string request id for password change |
newuserform [line 348]
string newuserform(
[int $msg = ''], string $referrer)
|
|
Shows the user registration form
Tags:
Parameters
| int |
$msg |
message number to show |
| string |
$referrer |
page to send user to after registration |
requestpassword [line 109]
string requestpassword(
username $username)
|
|
User request for a new password - send email with a link and request id
Tags:
Parameters
| username |
$username |
string name of user who requested the new password |
resend_request [line 495]
Re-send a request after successful re-authentication Re-creates a GET or POST request based on data passed along in a form. Used in case of an expired security token so that the user doesn't lose changes.
|