Elgg  Version 1.11
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')
 
 $admin = get_input('admin')
 
if(is_array($admin)) 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 18 of file useradd.php.

◆ $email

Definition at line 15 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:455
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 62 of file useradd.php.

◆ try

if (is_array( $admin)) 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 35 of file useradd.php.