2 namespace TYPO3\CMS\Install\Service;
49 $files = self::getFirstInstallFilePaths();
50 if (!empty($files) && !\TYPO3\CMS\Core\Core\
Bootstrap::getInstance()->checkIfEssentialConfigurationExists()) {
63 $installEnableFilePath = self::getInstallToolEnableFilePath();
64 if (!is_file($installEnableFilePath)) {
65 $result = touch($installEnableFilePath);
68 self::extendInstallToolEnableFileLifetime();
70 \TYPO3\CMS\Core\Utility\GeneralUtility::fixPermissions($installEnableFilePath);
81 return unlink(self::getInstallToolEnableFilePath());
92 $files = self::getFirstInstallFilePaths();
93 foreach ($files as $file) {
94 $result = unlink(self::$sitePath . $file) && $result;
106 return @is_file(self::getInstallToolEnableFilePath());
116 if (!self::installToolEnableFileExists()) {
119 if (!self::isInstallToolEnableFilePermanent()) {
120 if (self::installToolEnableFileLifetimeExpired()) {
121 self::removeInstallToolEnableFile();
124 self::extendInstallToolEnableFileLifetime();
136 if (self::installToolEnableFileExists()) {
137 $content = @file_get_contents(self::getInstallToolEnableFilePath());
138 if (strpos($content,
'KEEP_FILE') !==
false) {
153 if (time() - @filemtime(self::getInstallToolEnableFilePath()) > self::INSTALL_TOOL_ENABLE_FILE_LIFETIME) {
167 $enableFile = self::getInstallToolEnableFilePath();
169 if (is_file($enableFile)) {
170 $couldTouch = @touch($enableFile);
173 if (self::removeInstallToolEnableFile()) {
174 self::createInstallToolEnableFile();
187 return PATH_site . self::INSTALL_TOOL_ENABLE_FILE_PATH;
197 $files = array_filter(scandir(self::$sitePath),
function ($file) {
198 return (@is_file(self::$sitePath . $file) && preg_match(
'~^' . self::FIRST_INSTALL_FILE_PATH .
'.*~i', $file));