📄 mod_login.php
字号:
<?php/*** @version $Id: mod_login.php 8412 2007-08-15 19:34:16Z jinx $* @package Joomla* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.* @license GNU/GPL, see LICENSE.php* Joomla! is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See COPYRIGHT.php for copyright notices and details.*/// no direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );//$browserLang = JLanguageHelper::detectLanguage();// forced to default$browserLang = null;$lang =& JFactory::getLanguage();$languages = array();$languages = JLanguageHelper::createLanguageList($browserLang );array_unshift( $languages, JHTML::_('select.option', '', JText::_( 'Default' ) ) );$langs = JHTML::_('select.genericlist', $languages, 'lang', ' class="inputbox"', 'value', 'text', $browserLang );?><?php if(JPluginHelper::isEnabled('authentication', 'openid')) : ?> <?php JHTML::_('script', 'openid'); ?><?php endif; ?><form action="index.php" method="post" name="login" id="form-login" style="clear: both;"> <p id="form-login-username"> <label for="username"><?php echo JText::_('Username'); ?></label> <input name="username" id="username" type="text" class="inputbox" size="15" /> </p> <p id="form-login-password"> <label for="password"><?php echo JText::_('Password'); ?></label> <input name="passwd" id="password" type="password" class="inputbox" size="15" /> </p> <?php if($error = JError::getError(true)) { echo '<p>'; echo $error->get('message'); echo '<p>'; } ?> <p id="form-login-lang" style="clear: both;"> <label for="lang"><?php echo JText::_('Language'); ?></label> <?php echo $langs; ?> </p> <div style="padding-left: 180px;"> <div class="<?php echo $lang->isRTL() ? 'button1-right' : 'button1-left'; ?>"> <div class="<?php echo $lang->isRTL() ? 'prev' : 'next'; ?>"> <a onclick="login.submit();"> <?php echo JText::_( 'Login' ); ?> </a> <input type="submit" style="border: 0; padding: 0; margin: 0; width: 0px; height: 0px;" value="<?php echo JText::_( 'Login' ); ?>" /> </div> </div> </div> <div class="clr"></div> <input type="hidden" name="option" value="com_login" /> <input type="hidden" name="task" value="login" /> <input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" /></form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -