61 if (TYPO3_OS !==
'WIN') {
74 $value =
$GLOBALS[
'LANG']->getLL(
'status_ok');
77 $count =
$GLOBALS[
'TYPO3_DB']->exec_SELECTcountRows(
'*',
'sys_refindex');
79 $lastRefIndexUpdate =
$registry->get(
'core',
'sys_refindex_lastUpdate');
80 if (!$count && $lastRefIndexUpdate) {
81 $value =
$GLOBALS[
'LANG']->getLL(
'status_empty');
84 $message = sprintf(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.backend_reference_index'),
'<a href="' . htmlspecialchars($url) .
'">',
'</a>', \
TYPO3\CMS\Backend\Utility\BackendUtility::dateTime($lastRefIndexUpdate));
95 $memcachedUsed = FALSE;
97 if (count($memcachedServers)) {
98 $memcachedUsed = TRUE;
100 return $memcachedUsed;
109 $memcachedServers = array();
110 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'caching'][
'cacheConfigurations'])) {
111 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'caching'][
'cacheConfigurations'] as $table => $conf) {
112 if (is_array($conf)) {
113 foreach ($conf as $key => $value) {
114 if (!is_array($value) && $value ===
'TYPO3\\CMS\\Core\\Cache\\Backend\\MemcachedBackend') {
115 $memcachedServers =
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'caching'][
'cacheConfigurations'][$table][
'options'][
'servers'];
122 return $memcachedServers;
131 $value =
$GLOBALS[
'LANG']->getLL(
'status_ok');
134 $failedConnections = array();
135 $defaultMemcachedPort = ini_get(
'memcache.default_port');
137 if (function_exists(
'memcache_connect') && is_array($memcachedServers)) {
138 foreach ($memcachedServers as $testServer) {
139 $configuredServer = $testServer;
140 if (substr($testServer, 0, 7) ==
'unix://') {
144 if (substr($testServer, 0, 6) ===
'tcp://') {
145 $testServer = substr($testServer, 6);
147 if (strstr($testServer,
':') !== FALSE) {
148 list(
$host, $port) = explode(
':', $testServer, 2);
151 $port = $defaultMemcachedPort;
154 $memcachedConnection = @memcache_connect(
$host, $port);
155 if ($memcachedConnection != NULL) {
156 memcache_close($memcachedConnection);
158 $failedConnections[] = $configuredServer;
162 if (count($failedConnections)) {
163 $value =
$GLOBALS[
'LANG']->getLL(
'status_connectionFailed');
165 $message =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.memcache_not_usable') .
'<br /><br />' .
'<ul><li>' . implode(
'</li><li>', $failedConnections) .
'</li></ul>';
177 $title =
$GLOBALS[
'LANG']->getLL(
'status_configuration_DeprecationLog');
178 $value =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:disabled');
181 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'enableDeprecationLog']) {
182 $value =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:enabled');
183 $message =
'<p>' .
$GLOBALS[
'LANG']->getLL(
'status_configuration_DeprecationLogEnabled') .
'</p>';
187 if (@file_exists($logFile)) {
188 $logFileSize = filesize($logFile);
191 $message .=
'<p>' . sprintf(
$GLOBALS[
'LANG']->getLL(
'status_configuration_DeprecationLogSize'),
GeneralUtility::formatSize($logFileSize)) .
' <a href="' . $removeDeprecationLogFileUrl .
'">' .
$GLOBALS[
'LANG']->getLL(
'status_configuration_DeprecationLogDeleteLink') .
'</a></p>';
193 if ($logFileSize > $this->deprecationLogFileSizeWarningThreshold) {
196 if ($logFileSize > $this->deprecationLogFileSizeErrorThreshold) {
209 $value =
$GLOBALS[
'LANG']->getLL(
'status_ok');
212 if ((
int)
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'fileCreateMask'] % 10 & 2) {
213 $value = $GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'fileCreateMask'];
215 $message = $GLOBALS[
'LANG']->getLL(
'status_CreatedFilePermissions.writable');
217 return GeneralUtility::makeInstance(
'TYPO3\\CMS\\Reports\\Status', $GLOBALS[
'LANG']->getLL(
'status_CreatedFilePermissions'), $value, $message, $severity);
226 $value =
$GLOBALS[
'LANG']->getLL(
'status_ok');
229 if ((
int)
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'folderCreateMask'] % 10 & 2) {
230 $value = $GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'folderCreateMask'];
232 $message = $GLOBALS[
'LANG']->getLL(
'status_CreatedDirectoryPermissions.writable');
234 return GeneralUtility::makeInstance(
'TYPO3\\CMS\\Reports\\Status', $GLOBALS[
'LANG']->getLL(
'status_CreatedDirectoryPermissions'), $value, $message, $severity);
246 $link =
'<a href="' . $relativePath .
'">' . $logFile .
'</a>';
261 case 'removeDeprecationLogFile':
262 self::removeDeprecationLogFile();
274 static protected function removeDeprecationLogFile() {
276 $message =
$GLOBALS[
'LANG']->getLL(
'status_configuration_DeprecationLogDeletedSuccessful');
279 $message =
$GLOBALS[
'LANG']->getLL(
'status_configuration_DeprecationLogDeletionFailed');
286 $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
287 $defaultFlashMessageQueue->enqueue($flashMessage);
getDeprecationLogFileLink()
getMemcachedConnectionStatus()
getCreatedDirectoriesWorldWritableStatus()
getCreatedFilesWorldWritableStatus()
$deprecationLogFileSizeWarningThreshold
static getIndpEnv($getEnvName)
static getDeprecationLogFileName()
static makeInstance($className)
static getModuleUrl($moduleName, $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
getDeprecationLogStatus()
getReferenceIndexStatus()
static formatSize($sizeInBytes, $labels='')
$deprecationLogFileSizeErrorThreshold
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
getConfiguredMemcachedServers()
static resolveBackPath($pathStr)