Elgg  Version 4.x
Variables
useradd.php File Reference

Go to the source code of this file.

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')
 
 $autogen_password = get_input('autogen_password')
 
if($autogen_password) if($username== ''||$password== ''||$password2== ''||$email== ''||$name== '') if(strcmp($password, $password2)!=0) try
 
if($guid===false) $new_user = get_user($guid)
 
$new_user admin_created = true
 
$new_user created_by_guid = elgg_get_logged_in_user_guid()
 
$new_user language = $language
 
 $subject = elgg_echo('useradd:subject', [], $new_user->language)
 
 $body
 

Variable Documentation

$admin = get_input('admin')

Definition at line 21 of file useradd.php.

$autogen_password = get_input('autogen_password')

Definition at line 24 of file useradd.php.

$body
Initial value:
= elgg_echo('useradd:body', [
elgg_get_site_entity()->getDisplayName(),
elgg_get_site_entity()->getURL(),
], $new_user->language)
$username
Definition: useradd.php:11
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:99
if($guid===false) $new_user
Definition: useradd.php:46
$password
Definition: useradd.php:12
Examples:
/root/Elgg/engine/classes/Elgg/FormsService.php, and /root/Elgg/engine/lib/views.php.

Definition at line 61 of file useradd.php.

Definition at line 14 of file useradd.php.

Definition at line 19 of file useradd.php.

Definition at line 15 of file useradd.php.

if ($guid===false) $new_user = get_user($guid)

Definition at line 46 of file useradd.php.

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

Definition at line 12 of file useradd.php.

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

Definition at line 13 of file useradd.php.

$subject = elgg_echo('useradd:subject', [], $new_user->language)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 60 of file useradd.php.

$username = get_input('username')

Definition at line 11 of file useradd.php.

$new_user admin_created = true

Definition at line 53 of file useradd.php.

$new_user created_by_guid = elgg_get_logged_in_user_guid()

Definition at line 54 of file useradd.php.

string language = $language
Examples:
/root/Elgg/views/default/core/js/deprecated.js.

Definition at line 58 of file useradd.php.

if ($autogen_password) if ($username== ''||$password== ''||$password2== ''||$email== ''||$name== '') if (strcmp($password, $password2)!=0) try
Initial value:
{
$name
Definition: useradd.php:15
$username
Definition: useradd.php:11
register_user($username, $password, $name, $email, $allow_multiple_emails=false, $subtype=null, array $params=[])
Registers a user, returning false if the username already exists.
Definition: users.php:151
$email
Definition: useradd.php:14
$password
Definition: useradd.php:12
$guid
Reset an ElggUpgrade.
Definition: reset.php:6

Definition at line 40 of file useradd.php.