- md5
- 66316a75fd5613ff064e91067f705396
- sha1
- 5db4a83d37aab1acc22f60cf9e74f35f9e1582f4
- sha256
- c93995bfaf661adca5be9cf490d089e29e18795ea7357d59aaa23d75ce266eca
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_login
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Helper for mod_login
*
* @package Joomla.Administrator
* @subpackage mod_login
* @since 1.6
*/
abstract class ModLoginHelper
{
/**
* Get an HTML select list of the available languages.
*
* @return string
*/
public static function getLanguageList()
{
$languages = JLanguageHelper::createLanguageList(null, JPATH_ADMINISTRATOR, false, true);
if (count($languages) <= 1)
{
return '';
}
array_unshift($languages, JHtml::_('select.option', '', JText::_('JDEFAULTLANGUAGE')));
return JHtml::_('select.genericlist', $languages, 'lang', ' class="advancedSelect"', 'value', 'text', null);
}
/**
* Get the redirect URI after login.
*
* @return string
*/
public static function getReturnURI()
{
$uri = JUri::getInstance();
$return = 'index.php' . $uri->toString(array('query'));
if ($return != 'index.php?option=com_login')
{
return base64_encode($return);
}
else
{
return base64_encode('index.php');
}
}
/**
* Creates a list of two factor authentication methods used in com_users
* on user view
*
* @return array
*/
public static function getTwoFactorMethods()
{
require_once JPATH_ADMINISTRATOR . '/components/com_users/helpers/users.php';
return UsersHelper::getTwoFactorMethods();
}
}
The same content is in 3 releases, Joomla 3.3.4 to 3.3.6. See them all, or every version of this file.