Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 5791) +++ t3lib/class.t3lib_div.php (working copy) @@ -1953,6 +1953,23 @@ } /** + * Rename Array keys with a given mapping table + * @param array Array by reference which should be remapped + * @param array Array with remap information, array/$oldKey => $newKey) + */ + function remapArrayKeys(&$array, $mappingTable) { + if (is_array($mappingTable)) { + foreach ($mappingTable as $old => $new) { + if ($new && isset($array[$old])) { + $array[$new] = $array[$old]; + unset ($array[$old]); + } + } + } + } + + + /** * Merges two arrays recursively and "binary safe" (integer keys are * overridden as well), overruling similar values in the first array * ($arr0) with the values of the second array ($arr1) Index: t3lib/class.t3lib_tsparser_ext.php =================================================================== --- t3lib/class.t3lib_tsparser_ext.php (revision 5791) +++ t3lib/class.t3lib_tsparser_ext.php (working copy) @@ -134,6 +134,7 @@ 'ctable' => Array('Content: \'Table\'', 'mf'), 'cuploads' => Array('Content: \'Filelinks\'', 'mg'), 'cmultimedia' => Array('Content: \'Multimedia\'', 'mh'), + 'cmedia' => Array('Content: \'Media\'', 'mr'), 'cmailform' => Array('Content: \'Form\'', 'mi'), 'csearch' => Array('Content: \'Search\'', 'mj'), 'clogin' => Array('Content: \'Login\'', 'mk'), Index: typo3/index.php =================================================================== --- typo3/index.php (revision 5791) +++ typo3/index.php (working copy) @@ -312,16 +312,20 @@ 'NEWS' => $this->makeLoginNews(), 'COPYRIGHT' => $this->makeCopyrightNotice(), 'CSS_ERRORCLASS' => ($this->commandLI ? ' class="error"' : ''), + 'SITE_LINK' => '###SITENAME###', // the labels will be replaced later on, thus the other parts above // can use these markers as well and it will be replaced 'HEADLINE' => $GLOBALS['LANG']->getLL('headline', true), - 'INFO' => $GLOBALS['LANG']->getLL('info.jscookies', true), + 'INFO_ABOUT' => $GLOBALS['LANG']->getLL('info.about', true), + 'INFO_RELOAD' => $GLOBALS['LANG']->getLL('info.reload', true), 'ERROR_JAVASCRIPT' => $GLOBALS['LANG']->getLL('error.javascript', true), 'ERROR_COOKIES' => $GLOBALS['LANG']->getLL('error.cookies', true), + 'ERROR_CAPSLOCK' => $GLOBALS['LANG']->getLL('error.capslock', true), 'LABEL_DONATELINK' => $GLOBALS['LANG']->getLL('labels.donate', true), 'LABEL_USERNAME' => $GLOBALS['LANG']->getLL('labels.username', true), 'LABEL_PASSWORD' => $GLOBALS['LANG']->getLL('labels.password', true), + 'CLEAR' => $GLOBALS['LANG']->getLL('clear', true), // global variables will now be replaced (at last) 'SITENAME' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] @@ -434,10 +438,10 @@ '; } $this->interfaceSelector=' - '.$this->interfaceSelector.' '; $this->interfaceSelector_jump=' - '.$this->interfaceSelector_jump.' '; } else { // If there is only ONE interface value set: @@ -477,7 +481,7 @@ $GLOBALS['LANG']->getLL('typo3.cms') . ($GLOBALS['TYPO3_CONF_VARS']['SYS']['loginCopyrightShowVersion']?' ' . $GLOBALS['LANG']->getLL('version.short') . ' ' . htmlspecialchars($GLOBALS['TYPO_VERSION']):'') . '. ' . $GLOBALS['LANG']->getLL('copyright') . ' © ' . TYPO3_copyright_year . ' Kasper Skårhøj. ' . $GLOBALS['LANG']->getLL('extension.copyright') . ' ' . - sprintf($GLOBALS['LANG']->getLL('details.link'), 'http://typo3.com/') . ' ' . + sprintf($GLOBALS['LANG']->getLL('details.link'), 'http://typo3.com/') . '
' . $warrantyNote . ' ' . sprintf($GLOBALS['LANG']->getLL('free.software'), '', ' ') . $GLOBALS['LANG']->getLL('keep.notice'); @@ -654,6 +658,41 @@ document.loginform.p_field.focus(); } } + // This function shows a warning, if user has capslock enabled + function checkCapslock(e) { + if (isCapslock(e)) { + document.getElementById(\'t3-capslock\').style.display = \'block\'; + } else { + document.getElementById(\'t3-capslock\').style.display = \'none\'; + } + } + + // Checks weather capslock is enabled (returns true if enabled, false otherwise) + // thanks to http://24ways.org/2007/capturing-caps-lock + + function isCapslock(e) { + var ev = e ? e : window.event; + if (!ev) { + return; + } + var targ = ev.target ? ev.target : ev.srcElement; + // get key pressed + var which = -1; + if (ev.which) { + which = ev.which; + } else if (ev.keyCode) { + which = ev.keyCode; + } + // get shift status + var shift_status = false; + if (ev.shiftKey) { + shift_status = ev.shiftKey; + } else if (ev.modifiers) { + shift_status = !!(ev.modifiers & 4); + } + return (((which >= 65 && which <= 90) && !shift_status) || + ((which >= 97 && which <= 122) && shift_status)) + } '); return $JSCode; Index: typo3/sysext/t3skin/ext_tables.php =================================================================== --- typo3/sysext/t3skin/ext_tables.php (revision 5791) +++ typo3/sysext/t3skin/ext_tables.php (working copy) @@ -164,6 +164,9 @@ //print_a($TBE_STYLES,2); + // Adding HTML template for login screen + $TBE_STYLES['htmlTemplates']['templates/login.html'] = 'sysext/t3skin/templates/login.html'; + $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath('t3skin').'registerIe6Stylesheet.php'; } Index: typo3/sysext/t3skin/backgrounds/login_submit_bg.gif =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: typo3/sysext/t3skin/backgrounds/login_footer.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: typo3/sysext/t3skin/backgrounds/login_footer.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: typo3/sysext/t3skin/backgrounds/login_headline_bg.gif =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: typo3/sysext/t3skin/backgrounds/login_headline_bg.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: typo3/sysext/t3skin/backgrounds/login_nocookies.gif =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: typo3/sysext/t3skin/backgrounds/login_nocookies.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: typo3/sysext/t3skin/backgrounds/login_noscript.gif =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: typo3/sysext/t3skin/backgrounds/login_noscript.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: typo3/sysext/t3skin/backgrounds/login_grid.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: typo3/sysext/t3skin/backgrounds/login_grid.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: typo3/sysext/t3skin/icons/login_clear.gif =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: typo3/sysext/t3skin/icons/login_clear.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream