Project

General

Profile

Bug #22537 » 14236.diff

Administrator Admin, 2010-05-08 14:02

View differences:

typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
'typo3conf_edit' => 'Edit files in typo3conf/',
'about' => 'About'
);
var $JSmessage = '';
......
// *******************
if (!$this->session->hasSession()) {
$this->session->startSession();
$this->JSmessage='SECURITY:
Make sure to protect the Install Tool with another password than "joh316".
Better yet you can add a die() function call to typo3/install/index.php after usage.
IF THE INSTALL TOOL CRASHES...
The Install Tool is checking PHPs support for image formats. However certain versions of PHP (fx. 4.3.0 with bundled GD) will crash when trying to read the PNG test file. If this happens you will see a blank screen or error message.
Workaround: Open the file typo3/sysext/install/mod/class.tx_install.php, go to the line where the function "isPNG()" is defined and make it return "0" hardcoded. PNG is not checked anymore and the rest of the Install Tool will work as expected. The same has been known with the other image formats as well. You can use a similar method to bypass the testing if that is also a problem.
On behalf of PHP we regret this inconvenience.
BTW: This Install Tool will only work if cookies are accepted by your web browser. If this dialog pops up over and over again you didn\'t enable cookies.
';
}
if ($this->session->isAuthorized() || $this->checkPassword()) {
......
}
// Let DBAL decide whether to load itself
$dbalLoaderFile = $this->backPath . 'sysext/dbal/class.tx_dbal_autoloader.php';
$dbalLoaderFile = $this->backPath . 'sysext/dbal/class.tx_dbal_autoloader.php';
if (@is_file($dbalLoaderFile)) {
include($dbalLoaderFile);
}
......
$TYPO3_CONF_VARS[\'BE\'][\'installToolPassword\'] in
typo3conf/localconf.php to the md5() hash value of the
password you desire.
<br />
The default password is <em>joh316</em>. Make sure to change it!
</p>
'
);
......
}
}
// Include javascript message
$this->javascript[] = $this->JSmessage ?
'<script type="text/javascript">alert(unescape(\'' . t3lib_div::rawUrlEncodeJS($this->JSmessage) . '\'));</script>' :
'';
// Define the markers content
if ($this->mode == '123') {
$this->markers['headTitle'] = 'Installing TYPO3 ' . TYPO3_branch;
(1-1/2)