Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Variables
login.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

 $session = elgg_get_session()
 
if($session->has('last_forward_from'))
elseif(get_input('returntoreferer')) 
else
 
 $forward_source = null
 
 $username = get_input('username')
 
 $password = get_input('password', null, false)
 
 $persistent = (bool) get_input("persistent")
 
 $result = false
 
if($result!==true) $user = get_user_by_username($username)
 
if(!$user) try
 
 $params = array('user' => $user, 'source' => $forward_source)
 
 $forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url)
 

Variable Documentation

$forward_source = null

Definition at line 21 of file login.php.

$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url)

Definition at line 73 of file login.php.

$params = array('user' => $user, 'source' => $forward_source)

Definition at line 72 of file login.php.

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

Definition at line 25 of file login.php.

$persistent = (bool) get_input("persistent")

Definition at line 26 of file login.php.

if (empty($username)||empty($password)) if (strpos($username, '@')!==false &&($users=get_user_by_email($username))) $result = false

Definition at line 27 of file login.php.

$session = elgg_get_session()

Definition at line 9 of file login.php.

if ($result!==true) $user = get_user_by_username($username)

Definition at line 45 of file login.php.

Definition at line 24 of file login.php.

catch (LoginException $e) if ($user->language) else
Initial value:
{
$forward_url
Definition: login.php:73

Definition at line 18 of file login.php.

if (!$user) try
Initial value:
{
$persistent
Definition: login.php:26
if($result!==true) $user
Definition: login.php:45
login(\ElggUser $user, $persistent=false)
Logs in a specified .
Definition: sessions.php:320

Definition at line 51 of file login.php.