Feature #20658 » bug_11391.diff
typo3/sysext/setup/mod/locallang.xml (Arbeitskopie) | ||
---|---|---|
<label index="newPassword_ok">Password was updated</label>
|
||
<label index="newPassword_failed">Password was NOT updated because you didn't enter the same password twice.</label>
|
||
<label index="adminFunctions">Admin functions</label>
|
||
<label index="enableInstallTool.headerTitle">Admin control for re-enabling Install Tool access</label>
|
||
<label index="enableInstallTool.description">By clicking this button, a file typo3conf/ENABLE_INSTALL_TOOL is created (or removed if it already exists).<br />It unlocks the access to the Install Tool (password is still needed!) and will be removed automatically after 1 hour.</label>
|
||
<label index="enableInstallTool.createFile">Create Install Tool Enable File</label>
|
||
<label index="enableInstallTool.deleteFile">Delete Install Tool Enable File</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
typo3/sysext/setup/mod/index.php (Arbeitskopie) | ||
---|---|---|
function main() {
|
||
global $BE_USER,$LANG,$BACK_PATH,$TBE_MODULES;
|
||
|
||
// file creation / delete
|
||
if ($this->isAdmin) {
|
||
if (t3lib_div::_POST('deleteInstallToolEnableFile')) {
|
||
unlink(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
|
||
}
|
||
if (t3lib_div::_POST('createInstallToolEnableFile')) {
|
||
touch(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
|
||
}
|
||
}
|
||
|
||
if ($this->languageUpdate) {
|
||
$this->doc->JScodeArray['languageUpdate'] .= '
|
||
if (top.refreshMenu) {
|
||
... | ... | |
<input type="submit" name="data[setValuesToDefault]" value="'.$LANG->getLL('setToStandard').'" onclick="return confirm(\''.$LANG->getLL('setToStandardQuestion').'\');" />'
|
||
);
|
||
// Install Tool access file
|
||
if ($this->isAdmin) {
|
||
$installToolEnableFileExists = is_file(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
|
||
$installToolEnableButton = $installToolEnableFileExists ?
|
||
'<input type="submit" name="deleteInstallToolEnableFile" value="' . $LANG->getLL('enableInstallTool.deleteFile') . '" />' :
|
||
'<input type="submit" name="createInstallToolEnableFile" value="' . $LANG->getLL('enableInstallTool.createFile') . '" />';
|
||
$this->content .= $this->doc->spacer(30);
|
||
$this->content .= $this->doc->section($LANG->getLL('enableInstallTool.headerTitle'),
|
||
$LANG->getLL('enableInstallTool.description')
|
||
);
|
||
$this->content .= $this->doc->spacer(10);
|
||
$this->content .= $this->doc->section('',
|
||
$installToolEnableButton
|
||
);
|
||
}
|
||
// Notice
|
||
$this->content .= $this->doc->spacer(30);
|
||
$this->content .= $this->doc->section('', $LANG->getLL('activateChanges'));
|