You've already forked joomla_test
							
							first commit
This commit is contained in:
		
							
								
								
									
										59
									
								
								administrator/modules/mod_login/helper.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								administrator/modules/mod_login/helper.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,59 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package     Joomla.Administrator | ||||
|  * @subpackage  mod_login | ||||
|  * | ||||
|  * @copyright   Copyright (C) 2005 - 2013 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="inputbox 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'); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										1
									
								
								administrator/modules/mod_login/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								administrator/modules/mod_login/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
							
								
								
									
										17
									
								
								administrator/modules/mod_login/mod_login.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								administrator/modules/mod_login/mod_login.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package     Joomla.Administrator | ||||
|  * @subpackage  mod_login | ||||
|  * | ||||
|  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license     GNU General Public License version 2 or later; see LICENSE.txt | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| // Include the syndicate functions only once | ||||
| require_once __DIR__ . '/helper.php'; | ||||
|  | ||||
| $langs  = ModLoginHelper::getLanguageList(); | ||||
| $return = ModLoginHelper::getReturnURI(); | ||||
| require JModuleHelper::getLayoutPath('mod_login', $params->get('layout', 'default')); | ||||
							
								
								
									
										68
									
								
								administrator/modules/mod_login/mod_login.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								administrator/modules/mod_login/mod_login.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,68 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <extension | ||||
| 	type="module" | ||||
| 	version="3.1" | ||||
| 	client="administrator"> | ||||
| 	<name>mod_login</name> | ||||
| 	<author>Joomla! Project</author> | ||||
| 	<creationDate>March 2005</creationDate> | ||||
| 	<copyright>Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright> | ||||
| 	<license>GNU General Public License version 2 or later; see LICENSE.txt</license> | ||||
| 	<authorEmail>admin@joomla.org</authorEmail> | ||||
| 	<authorUrl>www.joomla.org</authorUrl> | ||||
| 	<version>3.0.0</version> | ||||
| 	<description>MOD_LOGIN_XML_DESCRIPTION</description> | ||||
| 	<files> | ||||
| 		<filename module="mod_login">mod_login.php</filename> | ||||
| 		<filename>helper.php</filename> | ||||
| 		<filename>index.html</filename> | ||||
| 		<folder>tmpl</folder> | ||||
| 	</files> | ||||
| 	<languages> | ||||
| 		<language tag="en-GB">en-GB.mod_login.ini</language> | ||||
| 		<language tag="en-GB">en-GB.mod_login.sys.ini</language> | ||||
| 	</languages> | ||||
| 	<help key="JHELP_EXTENSIONS_MODULE_MANAGER_ADMIN_LOGIN" /> | ||||
| 	<config> | ||||
| 		<fields name="params"> | ||||
| 			<fieldset name="basic"> | ||||
| 				<field | ||||
| 					name="usesecure" | ||||
| 					type="radio" | ||||
| 					class="btn-group" | ||||
| 					default="0" | ||||
| 					label="MOD_LOGIN_FIELD_USESECURE_LABEL" | ||||
| 					description="MOD_LOGIN_FIELD_USESECURE_DESC"> | ||||
| 					<option | ||||
| 						value="0">JNo</option> | ||||
| 					<option | ||||
| 						value="1">JYes</option> | ||||
| 				</field> | ||||
| 			</fieldset> | ||||
| 			<fieldset | ||||
| 				name="advanced"> | ||||
| 				<field | ||||
| 					name="layout" | ||||
| 					type="modulelayout" | ||||
| 					label="JFIELD_ALT_LAYOUT_LABEL" | ||||
| 					description="JFIELD_ALT_MODULE_LAYOUT_DESC" /> | ||||
|  | ||||
| 				<field | ||||
| 					name="moduleclass_sfx" | ||||
| 					type="textarea" rows="3" | ||||
| 					label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" | ||||
| 					description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" /> | ||||
|  | ||||
| 				<field | ||||
| 					name="cache" | ||||
| 					type="list" | ||||
| 					default="0" | ||||
| 					label="COM_MODULES_FIELD_CACHING_LABEL" | ||||
| 					description="COM_MODULES_FIELD_CACHING_DESC"> | ||||
| 					<option | ||||
| 						value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option> | ||||
| 				</field> | ||||
| 			</fieldset> | ||||
| 		</fields> | ||||
| 	</config> | ||||
| </extension> | ||||
							
								
								
									
										83
									
								
								administrator/modules/mod_login/tmpl/default.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								administrator/modules/mod_login/tmpl/default.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,83 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package     Joomla.Administrator | ||||
|  * @subpackage  mod_login | ||||
|  * | ||||
|  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license     GNU General Public License version 2 or later; see LICENSE.txt | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| JHtml::_('behavior.keepalive'); | ||||
| JHtml::_('bootstrap.tooltip'); | ||||
| JHtml::_('formbehavior.chosen'); | ||||
|  | ||||
| $document = JFactory::getDocument(); | ||||
| $mainDirection = $document->direction == 'rtl' ? 'right' : 'left'; | ||||
| $altDirection  = $document->direction == 'rtl' ? 'left' : 'right'; | ||||
| ?> | ||||
| <form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="form-login" class="form-inline"> | ||||
| 	<fieldset class="loginform"> | ||||
| 		<div class="control-group"> | ||||
| 			<div class="controls"> | ||||
| 				<div class="input-prepend input-append"> | ||||
| 					<span class="add-on"> | ||||
| 						<i class="icon-user hasTooltip" data-placement="<?php echo $mainDirection; ?>" title="<?php echo JText::_('JGLOBAL_USERNAME'); ?>"></i> | ||||
| 						<label for="mod-login-username" class="element-invisible"> | ||||
| 							<?php echo JText::_('JGLOBAL_USERNAME'); ?> | ||||
| 						</label> | ||||
| 					</span> | ||||
| 					<input name="username" tabindex="1" id="mod-login-username" type="text" class="input-medium" placeholder="<?php echo JText::_('JGLOBAL_USERNAME'); ?>" size="15"/> | ||||
| 					<a href="<?php echo JUri::root(); ?>index.php?option=com_users&view=remind" class="btn width-auto hasTooltip" data-placement="<?php echo $altDirection; ?>" title="<?php echo JText::_('MOD_LOGIN_REMIND'); ?>"> | ||||
| 						<i class="icon-help" title="<?php echo JText::_('MOD_LOGIN_REMIND'); ?>"></i> | ||||
| 					</a> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 		<div class="control-group"> | ||||
| 			<div class="controls"> | ||||
| 				<div class="input-prepend input-append"> | ||||
| 					<span class="add-on"> | ||||
| 						<i class="icon-lock hasTooltip" data-placement="<?php echo $mainDirection; ?>" title="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>"></i> | ||||
| 						<label for="mod-login-password" class="element-invisible"> | ||||
| 							<?php echo JText::_('JGLOBAL_PASSWORD'); ?> | ||||
| 						</label> | ||||
| 					</span> | ||||
| 					<input name="passwd" tabindex="2" id="mod-login-password" type="password" class="input-medium" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>" size="15"/> | ||||
| 					<a href="<?php echo JUri::root(); ?>index.php?option=com_users&view=reset" class="btn width-auto hasTooltip" data-placement="<?php echo $altDirection; ?>" title="<?php echo JText::_('MOD_LOGIN_RESET'); ?>"> | ||||
| 						<i class="icon-help" title="<?php echo JText::_('MOD_LOGIN_RESET'); ?>"></i> | ||||
| 					</a> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 		<?php if (!empty($langs)) : ?> | ||||
| 			<div class="control-group"> | ||||
| 				<div class="controls"> | ||||
| 					<div class="input-prepend"> | ||||
| 						<span class="add-on"> | ||||
| 							<i class="icon-comment hasTooltip" data-placement="<?php echo $mainDirection; ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('MOD_LOGIN_LANGUAGE'); ?>"></i> | ||||
| 							<label for="lang" class="element-invisible"> | ||||
| 								<?php echo JText::_('MOD_LOGIN_LANGUAGE'); ?> | ||||
| 							</label> | ||||
| 						</span> | ||||
| 						<?php echo $langs; ?> | ||||
| 					</div> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		<?php endif; ?> | ||||
| 		<div class="control-group"> | ||||
| 			<div class="controls"> | ||||
| 				<div class="btn-group pull-left"> | ||||
| 					<button tabindex="3" class="btn btn-primary btn-large"> | ||||
| 						<i class="icon-lock icon-white"></i> <?php echo JText::_('MOD_LOGIN_LOGIN'); ?> | ||||
| 					</button> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 		<input type="hidden" name="option" value="com_login"/> | ||||
| 		<input type="hidden" name="task" value="login"/> | ||||
| 		<input type="hidden" name="return" value="<?php echo $return; ?>"/> | ||||
| 		<?php echo JHtml::_('form.token'); ?> | ||||
| 	</fieldset> | ||||
| </form> | ||||
							
								
								
									
										1
									
								
								administrator/modules/mod_login/tmpl/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								administrator/modules/mod_login/tmpl/index.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
		Reference in New Issue
	
	Block a user
	 alazhar
					alazhar