Project

General

Profile

Feature #14711 ยป 2005-05-03_bugfix_1047.patch

Administrator Admin, 2005-05-03 17:28

View differences:

class.t3lib_befunc.php 3 May 2005 15:27:48 -0000
* @return void
*/
function displayWarningMessages() {
if($GLOBALS['BE_USER']->isAdmin()) {
$warnings = array();
$warnings = array();
// Check if the password is the same as the user
if(md5($GLOBALS['BE_USER']->user['username']) == $GLOBALS['BE_USER']->user['password']) {
$warnings[] = 'Your username and password are identical';
}
if($GLOBALS['BE_USER']->isAdmin()) {
// Check if the Install Tool Password is still default: joh316
if($GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']==md5('joh316')) {
$warnings[] = 'The password of your Install Tool is still using the default value "joh316"';
......
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] == '') {
$warnings[] = 'The encryption key is not set! Set it in $TYPO3_CONF_VARS[SYS][encryptionKey]';
}
}
if(count($warnings)) {
$content = '<br />'.
'<p class="typo3-red" style="font-weight: bold;">Security warning:<br />'.
'- '.implode('<br />- ', $warnings).'<br /><br />'.
'It is highly recommended that you change this immediately.<br />&nbsp;</p>';
if(count($warnings)) {
$content = '<br />'.
'<p class="typo3-red" style="font-weight: bold;">Security warning:<br />'.
'- '.implode('<br />- ', $warnings).'<br /><br />'.
'It is highly recommended that you change this immediately.<br />&nbsp;</p>';
unset($warnings);
return $content;
}
unset($warnings);
return $content;
}
return '<p>&nbsp;</p>';
}
    (1-1/1)