130 return _elgg_services()->accounts->isAuthenticationFailureLimitReached($user,
$limit, $lifetime);
143 if (
$session->has(
'last_forward_from')) {
145 $session->remove(
'last_forward_from');
146 $forward_source =
'last_forward_from';
149 $forward_source =
'return_to_referer';
153 $forward_source = null;
158 'source' => $forward_source,
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
$params
Saves global plugin settings.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_get_session()
Gets Elgg's session object.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_register_authentication_failure(\ElggUser $user)
Registers an authentication failure for a user.
elgg_trigger_event_results(string $event, string $type, array $params=[], $returnvalue=null)
Triggers an event where it is expected that the mixed return value could be manipulated by event call...
elgg_logout()
Log the current user out.
elgg_reset_authentication_failures(\ElggUser $user)
Clears all authentication failures for a give user.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
if(!$entity->delete(true, true)) $forward_url
elgg_get_login_forward_url(\ElggUser $user)
Determine which URL the user should be forwarded to upon successful login.
elgg_is_authentication_failure_limit_reached(\ElggUser $user, int $limit=null, int $lifetime=null)
Checks if the authentication failure limit has been reached.
elgg_set_cookie(\ElggCookie $cookie)
Set a cookie, but allow plugins to customize it first.
if(isset($_COOKIE['elggperm'])) $session
elgg_login(\ElggUser $user, bool $persistent=false)
Log in a user.
_elgg_services()
Get the global service provider.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Login as the specified user.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.