Bug #22166 » bug_13630v3.diff
reports/reports/locallang.xml 2010-03-24 18:15:06.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 "%s" when you have finished setting up TYPO3. If not used the Install Tool will be disabled automaticly in %s minutes.</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
reports/reports/status/class.tx_reports_reports_status_securitystatus.php 2010-03-24 18:18:19.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')
|
||
. '&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')
|
||
. '&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::NOTICE;
|
||
$disableInstallToolUrl = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL')
|
||
. '&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>', floor($enableInstallToolFileTtl/60) );
|
||
$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',
|
- « Previous
- 1
- 2
- 3
- Next »