Elgg  Version 6.1
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($admin &&elgg_is_admin_logged_in()) $new_user admin_created = true
 
$new_user created_by_guid = elgg_get_logged_in_user_guid()
 
 $subject = elgg_echo('useradd:subject', [], $new_user->getLanguage())
 
 $body
 

Variable Documentation

$admin = get_input('admin')

Definition at line 19 of file useradd.php.

$autogen_password = get_input('autogen_password')

Definition at line 22 of file useradd.php.

$body
Initial value:
= elgg_echo('useradd:body', [
elgg_get_site_entity()->getDisplayName(),
elgg_get_site_entity()->getURL(),
], $new_user->getLanguage())
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$username
Definition: useradd.php:9
if($failures) $new_user
Definition: register.php:33
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:101
$password
Definition: useradd.php:10
Examples:
/root/Elgg/engine/classes/Elgg/FormsService.php, and /root/Elgg/engine/lib/views.php.

Definition at line 55 of file useradd.php.

Definition at line 12 of file useradd.php.

Definition at line 17 of file useradd.php.

Definition at line 13 of file useradd.php.

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

Definition at line 10 of file useradd.php.

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

Definition at line 11 of file useradd.php.

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

Definition at line 54 of file useradd.php.

$username = get_input('username')

Definition at line 9 of file useradd.php.

if ($admin &&elgg_is_admin_logged_in()) $new_user admin_created = true

Definition at line 51 of file useradd.php.

$new_user created_by_guid = elgg_get_logged_in_user_guid()

Definition at line 52 of file useradd.php.

if ($autogen_password) if ($username== ''||$password== ''||$password2== ''||$email== ''||$name== '') if (strcmp($password, $password2)!=0) try
Initial value:
{
'username' => $username,
'password' => $password,
'name' => $name,
'email' => $email,
'language' => $language,
])
$name
Definition: useradd.php:13
elgg_register_user(array $params=[])
Registers a user.
Definition: users.php:154
$username
Definition: useradd.php:9
if($failures) $new_user
Definition: register.php:33
$email
Definition: useradd.php:12
$language
Definition: useradd.php:17
$password
Definition: useradd.php:10

Definition at line 38 of file useradd.php.