Bug #24628 ยป safeMode_v1.diff
typo3/sysext/reports/reports/status/class.tx_reports_reports_status_configurationstatus.php (working copy) | ||
---|---|---|
public function getStatus() {
|
||
$statuses = array(
|
||
'emptyReferenceIndex' => $this->getReferenceIndexStatus(),
|
||
'deprecationLog' => $this->getDeprecationLogStatus()
|
||
'deprecationLog' => $this->getDeprecationLogStatus(),
|
||
'safeModeEnabled' => $this->getPhpSafeModeStatus(),
|
||
);
|
||
if ($this->isMemcachedUsed()) {
|
||
... | ... | |
}
|
||
/**
|
||
* Checks if PHP safe_mode is enabled.
|
||
*
|
||
* @return tx_reports_reports_status_Status An tx_reports_reports_status_Status object representing whether the safe_mode is enabled or not
|
||
*/
|
||
protected function getPhpSafeModeStatus() {
|
||
$value = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:disabled');
|
||
$message = '';
|
||
$severity = tx_reports_reports_status_Status::OK;
|
||
if (t3lib_utility_PhpOptions::isSafeModeEnabled()) {
|
||
$value = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:enabled');
|
||
$severity = tx_reports_reports_status_Status::WARNING;
|
||
$message = $GLOBALS['LANG']->sL('status_Configuration_PhpSafeModeEnabled');
|
||
}
|
||
return t3lib_div::makeInstance('tx_reports_reports_status_Status',
|
||
$GLOBALS['LANG']->getLL('status_PhpSafeMode'), $value, $message, $severity
|
||
);
|
||
}
|
||
/**
|
||
* Checks whether memcached is configured, if that's the case we asume it's also used.
|
||
*
|
||
* @return boolean True if memcached is used, false otherwise.
|
typo3/sysext/reports/reports/locallang.xml (working copy) | ||
---|---|---|
<label index="status_system">System</label>
|
||
<label index="status_security">Security</label>
|
||
<label index="status_configuration">Configuration</label>
|
||
<label index="status_referenceIndex">Reference Index</label>
|
||
<label index="status_memcachedConfiguration">Memcached Configuration</label>
|
||
<label index="status_referenceIndex">Reference Index</label>
|
||
<label index="status_memcachedConfiguration">Memcached Configuration</label>
|
||
<label index="status_PhpSafeMode">PHP safe_mode</label>
|
||
<label index="status_adminUserAccount">Admin User Account</label>
|
||
<label index="status_encryptionKey">Encryption Key</label>
|
||
<label index="status_fileDenyPattern">File Deny Pattern</label>
|
||
... | ... | |
<label index="status_configuration_DeprecationLogEnabled">The deprecation log tracks whether old APIs are being used in extensions. Depending on the extensions you use and whether they use deprecated APIs it can happen that the log takes up quite some space over time. The more space it takes up, the more it may affect your installation's performance. It is recommended to disable deprecation log in production environments.</label>
|
||
<label index="status_configuration_DeprecationLogFile">You can find the deprecation log file at %s.</label>
|
||
<label index="status_configuration_DeprecationLogSize">Your deprecation log file currently takes up %s.</label>
|
||
<label index="status_Configuration_PhpSafeModeEnabled">PHP INI setting safe_mode "On" is discouraged since PHP 5.2 and deprecated since PHP 5.3 and should not be used anymore.</label>
|
||
<label index="status_updateTaskTitle">System Status Update</label>
|
||
<label index="status_updateTaskDescription">Runs a system status check and sends notifications if problems have been found.</label>
|
||
<label index="status_updateTaskField_notificationEmail">Notification Email Address</label>
|
||
... | ... | |
<label index="status_updateTask_email_issues">Issues</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
||
</T3locallang>
|