Project

General

Profile

Bug #22166 » bug_13630v2.diff

Administrator Admin, 2010-02-24 08:45

View differences:

reports/reports/locallang.xml 2010-02-24 08:36:03.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. If not used the Install Tool will be disabled automaticly in %s seconds.</label>
</languageKey>
</data>
</T3locallang>
reports/reports/status/class.tx_reports_reports_status_securitystatus.php 2010-02-24 08:36:17.000000000 +0100
$enableInstallToolFileExists = is_file($enableInstallToolFile);
if ($enableInstallToolFileExists && trim(file_get_contents($enableInstallToolFile)) === 'KEEP_FILE') {
$value = $GLOBALS['LANG']->getLL('status_enabled');
$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 ($enableInstallToolFileExists) {
if (trim(file_get_contents($enableInstallToolFile)) === 'KEEP_FILE') {
$severity = tx_reports_reports_status_Status::WARNING;
$disableInstallToolUrl = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL')
. '&amp;adminCmd=remove_ENABLE_INSTALL_TOOL';
$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 {
$enableInstallToolFileTtl = filemtime($enableInstallToolFile) + 3600 - time();
if ($enableInstallToolFileTtl <= 0) {
unlink($enableInstallToolFile);
} else {
$severity = tx_reports_reports_status_Status::WARNING;
$disableInstallToolUrl = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL')
. '&amp;adminCmd=remove_ENABLE_INSTALL_TOOL';
$value = $GLOBALS['LANG']->getLL('status_enabledTemporarily');
$message = sprintf(
$GLOBALS['LANG']->getLL('status_installEnabledTemporarily'),
'<span style="white-space: nowrap;">' . $enableInstallToolFile . '</span>', $enableInstallToolFileTtl);
$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',
(2-2/3)