Project

General

Profile

Bug #17104 » 5182-2.diff

Administrator Admin, 2008-11-14 15:42

View differences:

typo3/sysext/install/mod/class.tx_install.php (copie de travail)
}
// Check if the password from TYPO3_CONF_VARS combined with uKey matches the sKey cookie. If not, ask for password.
$sKey = $_COOKIE[$this->cookie_name];
$sKey1 = $_COOKIE[$this->cookie_name.'1'];
if (md5($GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword'].'|'.$uKey) == $sKey || $this->checkPassword($uKey)) {
$this->passwordOK=1;
......
if ($p && md5($p)==$GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']) {
$sKey = md5($GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword'].'|'.$uKey);
SetCookie($this->cookie_name, $sKey, 0, '/');
SetCookie($this->cookie_name.'1', $sKey, 0, '/'); // duplicate for the Firefox browsers
// Sending warning email
$wEmail = $GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'];
......
<br />
'.$this->fw('The Install Tool Password is <i>not</i> the admin password of TYPO3.<br />
If you don\'t know the current password, you can set a new one by setting the value of $TYPO3_CONF_VARS[\'BE\'][\'installToolPassword\'] in typo3conf/localconf.php to the md5() hash value of the password you desire.'.
($p ? '<br /><br />The password you just tried has this md5-value: <br /><br />'.md5($p) : '')
).'
If you don\'t know the current password, you can set a new one by setting the value of $TYPO3_CONF_VARS[\'BE\'][\'installToolPassword\'] in typo3conf/localconf.php to the md5() hash value of the password you desire.<br /><br />'.
($p ? 'The password you just tried has this md5-value: '.md5($p) : 'You did not enter any password yet.')
).'<br /><br />
</form>
<script type="text/javascript">
<!--
(2-2/3)