Elgg  Version 3.0
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 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->language)
$name
Definition: useradd.php:13
$username
Definition: useradd.php:9
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:130
if($guid===false) $new_user
Definition: useradd.php:44
$password
Definition: useradd.php:10
Examples:
/root/Elgg/engine/classes/Elgg/FormsService.php, and /root/Elgg/engine/lib/views.php.

Definition at line 60 of file useradd.php.

Definition at line 12 of file useradd.php.

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

Definition at line 17 of file useradd.php.

Definition at line 13 of file useradd.php.

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

Definition at line 44 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->language)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 59 of file useradd.php.

$username = get_input('username')

Definition at line 9 of file useradd.php.

$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 53 of file useradd.php.

string language = $language

Definition at line 57 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:13
$username
Definition: useradd.php:9
$guid
Removes an admin notice.
$email
Definition: useradd.php:12
register_user($username, $password, $name, $email, $allow_multiple_emails=false, $subtype=null)
Registers a user, returning false if the username already exists.
Definition: users.php:205
$password
Definition: useradd.php:10

Definition at line 38 of file useradd.php.