Source for file login.php
Documentation is available at login.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Administrator
* Method to auto-populate the model state.
* Note. Calling getState in this method will result in recursion.
'password' =>
JRequest::getVar('passwd', '', 'post', 'string', JREQUEST_ALLOWRAW),
'secretkey' =>
JRequest::getVar('secretkey', '', 'post', 'string', JREQUEST_ALLOWRAW),
$this->setState('credentials', $credentials);
// check for return URL from the request first
// Set the return URL if empty.
* Get the administrator login module by name (real, eg 'login' or folder, eg 'mod_login')
* @param string $name The name of the module
* @param string $title The title of the module, optional
* @return object The Module object
public static function getLoginModule($name =
'mod_login', $title =
null)
$modules =
self::_load($name);
$total =
count($modules);
for ($i =
0; $i <
$total; $i++
)
// Match the title if we're looking for a specific instance of the module
if (!$title ||
$modules[$i]->title ==
$title)
// If we didn't find it, and the name is mod_something, create a dummy object
* Note that we load regardless of state or access level since access
* for public is the only thing that makes sense since users are not logged in
* and the module lets them log in.
* This is put in as a failsafe to avoid super user lock out caused by an unpublished
* login module or by a module set to have a viewing access level that is not Public.
* @param string $name The name of the module
protected static function _load($module)
$clientId = (int)
$app->getClientId();
if (!($clean =
$cache->get($cacheid)))
$query =
$db->getQuery(true)
->select('m.id, m.title, m.module, m.position, m.showtitle, m.params')
->from('#__modules AS m')
->where('m.module =' .
$db->quote($module) .
' AND m.client_id = 1')
->join('LEFT', '#__extensions AS e ON e.element = m.module AND e.client_id = m.client_id')
->where('e.enabled = 1');
if ($app->isSite() &&
$app->getLanguageFilter())
$query->where('m.language IN (' .
$db->quote($lang) .
',' .
$db->quote('*') .
')');
$query->order('m.position, m.ordering');
$modules =
$db->loadObjectList();
catch
(RuntimeException $e)
// Return to simple indexing that matches the query order.
$cache->store($loginmodule, $cacheid);
Documentation generated on Tue, 19 Nov 2013 15:07:27 +0100 by phpDocumentor 1.4.3