Elgg  Version 2.3
Namespaces | Variables
useradd.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $username = get_input('username')
 
 $password = get_input('password', null, false)
 
 $password2 = get_input('password2', null, false)
 
 $email = get_input('email')
 
 $name = get_input('name')
 
 $language = get_input('language', elgg_get_config('language'))
 
 $admin = get_input('admin')
 
if(is_array($admin)) $autogen_password = get_input('autogen_password')
 
if($autogen_password) if($username==''|| $password==''|| $password2==''|| $email==''|| $name=='') if(strcmp($password, $password2) !=0) try
 
if($guid) else
 

Variable Documentation

◆ $admin

$admin = get_input('admin')

Definition at line 22 of file useradd.php.

◆ $autogen_password

if (is_array( $admin)) $autogen_password = get_input('autogen_password')

Definition at line 27 of file useradd.php.

◆ $email

Definition at line 15 of file useradd.php.

◆ $language

Examples
/root/Elgg/engine/lib/views.php.

Definition at line 20 of file useradd.php.

◆ $name

Definition at line 16 of file useradd.php.

◆ $password

$password = get_input('password', null, false)

Definition at line 13 of file useradd.php.

◆ $password2

$password2 = get_input('password2', null, false)

Definition at line 14 of file useradd.php.

◆ $username

$username = get_input('username')

Definition at line 12 of file useradd.php.

◆ else

if ( $guid) else
Initial value:
{
register_error(elgg_echo("adduser:bad"))
register_error($error)
Display an error on next page load.
Definition: elgglib.php:464
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 80 of file useradd.php.

◆ try

if ( $autogen_password) if ( $username==''||$password==''||$password2==''||$email==''||$name=='') if (strcmp( $password, $password2) !=0) try
Initial value:
{
$username
Definition: useradd.php:12
$password
Definition: useradd.php:13
$name
Definition: useradd.php:16
$email
Definition: useradd.php:15
$guid
Removes an admin notice.
register_user($username, $password, $name, $email, $allow_multiple_emails=false)
Registers a user, returning false if the username already exists.
Definition: users.php:316

Definition at line 45 of file useradd.php.