Project

General

Profile

Feature #22616 » 14343_trunk_v2.patch

Administrator Admin, 2010-05-09 22:21

View differences:

typo3/sysext/setup/mod/index.php (working copy)
if ($this->isAdmin) {
if (t3lib_div::_POST('deleteInstallToolEnableFile')) {
unlink(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
$installToolEnableFileExists = is_file(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
if ($installToolEnableFileExists) {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$LANG->getLL('enableInstallTool.fileDelete_failed'),
$LANG->getLL('enableInstallTool.file'),
t3lib_FlashMessage::ERROR
);
} else {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$LANG->getLL('enableInstallTool.fileDelete_ok'),
$LANG->getLL('enableInstallTool.file'),
t3lib_FlashMessage::OK
);
}
$this->content .= $flashMessage->render();
}
if (t3lib_div::_POST('createInstallToolEnableFile')) {
touch(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
$installToolEnableFileExists = is_file(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
if ($installToolEnableFileExists) {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$LANG->getLL('enableInstallTool.fileCreate_ok'),
$LANG->getLL('enableInstallTool.file'),
t3lib_FlashMessage::OK
);
} else {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$LANG->getLL('enableInstallTool.fileCreate_failed'),
$LANG->getLL('enableInstallTool.file'),
t3lib_FlashMessage::ERROR
);
}
$this->content .= $flashMessage->render();
}
}
typo3/sysext/setup/mod/locallang.xml (working copy)
<label index="adminFunctions">Admin functions</label>
<label index="enableInstallTool.label">Install Tool Access</label>
<label index="enableInstallTool.createFile">Create Install Tool Enable File</label>
<label index="enableInstallTool.file">Install Tool Enable file</label>
<label index="enableInstallTool.fileCreate_ok">The Install Tool Enable file has been created.</label>
<label index="enableInstallTool.fileCreate_failed">The Install Tool Enable file could not be created.</label>
<label index="enableInstallTool.deleteFile">Delete Install Tool Enable File</label>
<label index="enableInstallTool.fileDelete_ok">The Install Tool Enable file has been deleted.</label>
<label index="enableInstallTool.fileDelete_failed">The Install Tool Enable file could not be deleted!</label>
<label index="tempDataCleared">Temporary data cleared</label>
<label index="tempDataClearedFlashMessage">The temporary data has been cleared.</label>
<label index="tempDataClearedLog">Temporary data cleared</label>
(2-2/2)