| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: mod_login.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 6 * @license GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined( '_JEXEC' ) or die( 'Restricted access' ); 16 17 jimport('joomla.language.helper'); 18 //$browserLang = JLanguageHelper::detectLanguage(); 19 // forced to default 20 $browserLang = null; 21 $lang =& JFactory::getLanguage(); 22 23 $languages = array(); 24 $languages = JLanguageHelper::createLanguageList($browserLang ); 25 array_unshift( $languages, JHTML::_('select.option', '', JText::_( 'Default' ) ) ); 26 $langs = JHTML::_('select.genericlist', $languages, 'lang', ' class="inputbox"', 'value', 'text', $browserLang ); 27 ?> 28 <?php if(JPluginHelper::isEnabled('authentication', 'openid')) : 29 $lang->load( 'plg_authentication_openid', JPATH_ADMINISTRATOR ); 30 $langScript = 'var JLanguage = {};'. 31 ' JLanguage.WHAT_IS_OPENID = \''.JText::_( 'WHAT_IS_OPENID' ).'\';'. 32 ' JLanguage.LOGIN_WITH_OPENID = \''.JText::_( 'LOGIN_WITH_OPENID' ).'\';'. 33 ' JLanguage.NORMAL_LOGIN = \''.JText::_( 'NORMAL_LOGIN' ).'\';'. 34 ' var modlogin = 1;'; 35 $document = &JFactory::getDocument(); 36 $document->addScriptDeclaration( $langScript ); 37 JHTML::_('script', 'openid.js'); 38 endif; ?> 39 <form action="<?php echo JRoute::_( 'index.php', true, $params->get('usesecure')); ?>" method="post" name="login" id="form-login" style="clear: both;"> 40 <p id="form-login-username"> 41 <label for="modlgn_username"><?php echo JText::_('Username'); ?></label> 42 <input name="username" id="modlgn_username" type="text" class="inputbox" size="15" /> 43 </p> 44 45 <p id="form-login-password"> 46 <label for="modlgn_passwd"><?php echo JText::_('Password'); ?></label> 47 <input name="passwd" id="modlgn_passwd" type="password" class="inputbox" size="15" /> 48 </p> 49 <?php 50 if($error = JError::getError(true)) { 51 echo '<p id="login-error-message">'; 52 echo $error->get('message'); 53 echo '<p>'; 54 } 55 ?> 56 <p id="form-login-lang" style="clear: both;"> 57 <label for="lang"><?php echo JText::_('Language'); ?></label> 58 <?php echo $langs; ?> 59 </p> 60 <div class="button_holder"> 61 <div class="button1"> 62 <div class="next"> 63 <a onclick="login.submit();"> 64 <?php echo JText::_( 'Login' ); ?></a> 65 66 </div> 67 </div> 68 </div> 69 <div class="clr"></div> 70 <input type="submit" style="border: 0; padding: 0; margin: 0; width: 0px; height: 0px;" value="<?php echo JText::_( 'Login' ); ?>" /> 71 <input type="hidden" name="option" value="com_login" /> 72 <input type="hidden" name="task" value="login" /> 73 <?php echo JHTML::_( 'form.token' ); ?> 74 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |