Project

General

Profile

Bug #17671 » autocomplete_off_2007-10-13.diff

Administrator Admin, 2007-10-13 11:39

View differences:

t3lib/config_default.php (working copy)
// 'everybody' => '' // default in tce_main is ''. If this is set (uncomment), this value is used instead.
),
'newPagesVersioningType' => -1, // Integer. Default versioning type for new pages create as versions. -1 means "element", 0 means "page", 1 means "branch"
'autocompleteOffIPs' => '', // String. A list of IPs (or *) for which autocompletion in the BE-Login form is disabled.
'defaultUC' => array ( // Override default settings for BE-users. See class.t3lib_beuserauth.php, array $uc_default
),
// The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else.
typo3/index.php (working copy)
function makeLoginForm() {
// There must be no white-spaces outside of the tags (needed for buggy IE)
$autocompleteOff = t3lib_div::cmpIP($_SERVER['REMOTE_ADDR'], $GLOBALS['TYPO3_CONF_VARS']['BE']['autocompleteOffIPs']);
$content.= '<!--
Login form:
--><table cellspacing="0" cellpadding="0" border="0" id="logintable">
......
</tr>' : '').'
<tr class="c-username">
<td><p class="c-username">'.htmlspecialchars($this->L_vars[0]).':</p></td>
<td><input type="text" name="username" value="'.htmlspecialchars($this->u).'" class="c-username" /></td>
<td><input type="text" name="username" value="'.htmlspecialchars($this->u).'" class="c-username" '.($autocompleteOff?'autocomplete="off"':'').' /></td>
</tr>
<tr class="c-password">
<td><p class="c-password">'.htmlspecialchars($this->L_vars[1]).':</p></td>
(2-2/2)