Commit ab58a4f9 authored by Michael Stucki's avatar Michael Stucki
Browse files

* A new warning message is displayed if the install tool password is still the default: "joh316"


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_3-7@487 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 0a2ae120
......@@ -4,6 +4,7 @@
2004-09-19 Michael Stucki <mundaun@gmx.ch>
* A new warning message is displayed if the install tool password is still the default: "joh316"
* Replaced all (comments AND code!) occurences of "writeable" with "writable"
* Fixed bug #0000171: Displaying wrong filepermissions in filelist module
* Fixed bug #0000261: fileDenyPattern default does not include ".php4"
......
......@@ -108,11 +108,12 @@ class SC_alt_intro {
<h1>%s<br />%s</h1>
<p>%s</p>
<p>&nbsp;</p>
<p>&nbsp;%s</p>
<p>%s</p>',
'TYPO3 '.TYPO3_version,
$LANG->getLL('introtext'),
t3lib_BEfunc::TYPO3_copyRightNotice(),
$this->displayWarningIfPasswordIsDefault(),
$LANG->getLL('introtext2')
);
......@@ -150,6 +151,23 @@ class SC_alt_intro {
function printContent() {
echo $this->content;
}
/**
* Display a warning message if the Install Tool Password is still the default: joh316
* The warning is only displayed to admin users
*
* @return void
*/
function displayWarningIfPasswordIsDefault() {
if($GLOBALS['BE_USER']->isAdmin() && $GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']==md5('joh316')) {
return '&nbsp;</p>
<p class="typo3-red" style="font-weight: bold;">Security warning: The password of your install tool is still "joh316" which is the default.<br />
It is highly recommended to change this immediately.<br />
&nbsp;';
} else {
return '';
}
}
}
// Include extension?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment