Project

General

Profile

Bug #22166 » bug_13630.diff

Administrator Admin, 2010-02-23 15:49

View differences:

reports/reports/locallang.xml 2010-02-23 15:39:23.000000000 +0100
<label index="status_insecure">Insecure</label>
<label index="status_disabled">Disabled</label>
<label index="status_enabled">Enabled</label>
<label index="status_enabledPermanently">Enabled permanently</label>
<label index="status_enabledTemporarily">Enabled temporarily</label>
<label index="status_empty">Empty</label>
<label index="status_connectionFailed">Connection Failed</label>
<label index="status_updateComplete">Update Complete</label>
......
<label index="status_phpRegisterGlobalsHowToChange">how to change configuration settings</label>
<label index="status_phpRegisterGlobalsPHPManual">The PHP manual has instructions for %s.</label>
<label index="status_webServer">Web Server</label>
<label index="status_installEnabledTemporarily">The Install Tool is temporarily enabled. Delete the file &quot;%s&quot; when you have finished setting up TYPO3.</label>
</languageKey>
</data>
</T3locallang>
reports/reports/status/class.tx_reports_reports_status_securitystatus.php 2010-02-23 15:46:52.000000000 +0100
$enableInstallToolFileExists = is_file($enableInstallToolFile);
if ($enableInstallToolFileExists && trim(file_get_contents($enableInstallToolFile)) === 'KEEP_FILE') {
$value = $GLOBALS['LANG']->getLL('status_enabled');
if ($enableInstallToolFileExists) {
$severity = tx_reports_reports_status_Status::WARNING;
$disableInstallToolUrl = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL')
. '&amp;adminCmd=remove_ENABLE_INSTALL_TOOL';
$message = sprintf(
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.install_enabled'),
'<span style="white-space: nowrap;">' . $enableInstallToolFile . '</span>');
$message .= ' <a href="' . $disableInstallToolUrl . '">'
. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.install_enabled_cmd')
. '</a>';
if (trim(file_get_contents($enableInstallToolFile)) === 'KEEP_FILE') {
$value = $GLOBALS['LANG']->getLL('status_enabledPermanently');
$message = sprintf(
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.install_enabled'),
'<span style="white-space: nowrap;">' . $enableInstallToolFile . '</span>');
$message .= ' <a href="' . $disableInstallToolUrl . '">'
. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.install_enabled_cmd')
. '</a>';
} else {
$value = $GLOBALS['LANG']->getLL('status_enabledTemporarily');
$message = sprintf(
$GLOBALS['LANG']->getLL('status_installEnabledTemporarily'),
'<span style="white-space: nowrap;">' . $enableInstallToolFile . '</span>');
$message .= ' <a href="' . $disableInstallToolUrl . '">'
. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.install_enabled_cmd')
. '</a>';
}
}
return t3lib_div::makeInstance('tx_reports_reports_status_Status',
(1-1/3)