2 /***************************************************************
5 * (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
28 * 'About modules' script - the default start-up module.
29 * Will display the list of main- and sub-modules available to the user.
30 * Each module will be show with description and a link to the module.
33 * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
36 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
39 * [CLASS/FUNCTION INDEX of SCRIPT]
43 * 75: class SC_alt_intro
46 * 150: function printContent()
49 * (This index is automatically created/updated by the extension "extdeveval")
55 require ('template.php');
56 require_once (PATH_t3lib
.'class.t3lib_loadmodules.php');
57 require_once (PATH_t3lib
.'class.t3lib_basicfilefunc.php');
58 require_once ('class.alt_menu_functions.inc');
59 $LANG->includeLLFile('EXT:lang/locallang_alt_intro.xml');
69 * Script Class for the introduction screen, alias "About > Modules" which shows the description of each available module for the user.
71 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
80 * Initialization of script class
87 // Loads the available backend modules so we can create the description overview.
88 $this->loadModules
= t3lib_div
::makeInstance('t3lib_loadModules');
89 $this->loadModules
->load($TBE_MODULES);
93 * Main content - displaying the module descriptions
98 global $BE_USER,$LANG,$TYPO3_CONF_VARS;
101 $alt_menuObj = t3lib_div
::makeInstance('alt_menu_functions');
103 $TBE_TEMPLATE->docType
= 'xhtml_trans';
104 $TBE_TEMPLATE->divClass
= $TBE_TEMPLATE->bodyTagId
;
105 $this->content
.= $TBE_TEMPLATE->startPage('About modules');
107 $this->content
.= sprintf('
113 'TYPO3 '.TYPO3_version
,
114 $LANG->getLL('introtext'),
115 t3lib_BEfunc
::TYPO3_copyRightNotice(),
116 $this->displayWarningIfPasswordIsDefault(),
117 $LANG->getLL('introtext2')
123 // Printing the description of the modules available
124 $this->content
.=$alt_menuObj->topMenu($this->loadModules
->modules
,0,'',1);
125 $this->content
.='<br />';
127 // end text: 'Features may vary depending on your website and permissions'
128 $this->content
.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
129 $this->content
.='<hr />';
131 // Logged in user, eg: 'You're logged in as user: admin (John Doe, john@doe.email)'
132 $this->content
.='<p class="c-user">'.
133 htmlspecialchars($LANG->getLL('userInfo')).
134 sprintf(' <strong>%s</strong> (%s)',
135 $BE_USER->user
['username'],
136 (implode(', ',array($BE_USER->user
['realName'],$BE_USER->user
['email'])))
143 $this->content
.= $TBE_TEMPLATE->endPage();
147 * Outputting the accumulated content to screen
151 function printContent() {
156 * Display a warning message if the Install Tool Password is still the default: joh316
157 * The warning is only displayed to admin users
161 function displayWarningIfPasswordIsDefault() {
162 if($GLOBALS['BE_USER']->isAdmin() && $GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']==md5('joh316')) {
164 <p class="typo3-red" style="font-weight: bold;">Security warning: The password of your install tool is still "joh316" which is the default.<br />
165 It is highly recommended to change this immediately.<br />
173 // Include extension?
174 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/alt_intro.php']) {
175 include_once($TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/alt_intro.php']);
190 $SOBE = t3lib_div
::makeInstance('SC_alt_intro');
193 $SOBE->printContent();