Project

General

Profile

Feature #17382 ยป bug_5788.diff

Administrator Admin, 2007-06-13 12:45

View differences:

t3lib/class.t3lib_befunc.php (Arbeitskopie)
*/
function displayWarningMessages() {
if ($GLOBALS['BE_USER']->isAdmin()) {
$warnings = array();
$warnings = array(); // Array containing warnings that must be displayed
$enableInstallToolFile = PATH_site.'typo3conf/ENABLE_INSTALL_TOOL'; // If this file exists, the Install Tool is enabled
$cmd = t3lib_div::_GET('securityWarning_cmd'); // Cleanup command, if set
switch($cmd) {
case 'remove_ENABLE_INSTALL_TOOL':
if (unlink($enableInstallToolFile)) {
unset($enableInstallToolFile);
}
break;
}
// 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"';
......
$warnings[] = 'The backend user "admin" with password "password" is still existing';
}
// Check if the Install Tool is enabled
$enableInstallToolFile = PATH_site.'typo3conf/ENABLE_INSTALL_TOOL';
if (@is_file($enableInstallToolFile)) {
$warnings[] = 'The Install Tool is enabled. Make sure to delete the file "'.$enableInstallToolFile.'" when you have finished setting up TYPO3';
$url = t3lib_div::getIndpEnv('TYPO3_REQUEST_SCRIPT').'?securityWarning_cmd=remove_ENABLE_INSTALL_TOOL';
$warnings[] = 'The Install Tool is enabled. Make sure to delete the file "'.$enableInstallToolFile.'" when you have finished setting up TYPO3. <a href="'.$url.'">Click here to remove it now!</a>';
}
// Check if the encryption key is empty
    (1-1/1)