00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00054 require ('init.php');
00055 require ('template.php');
00056 require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
00057 require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
00058 require_once ('class.alt_menu_functions.inc');
00059 $LANG->includeLLFile('EXT:lang/locallang_alt_intro.xml');
00060
00061
00062
00063
00064
00065
00066
00067
00075 class SC_alt_intro {
00076 var $loadModules;
00077 var $content;
00078
00084 function init() {
00085 global $TBE_MODULES;
00086
00087
00088 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00089 $this->loadModules->load($TBE_MODULES);
00090 }
00091
00097 function main() {
00098 global $BE_USER,$LANG,$TYPO3_CONF_VARS;
00099 global $TBE_TEMPLATE;
00100
00101 $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00102
00103 $TBE_TEMPLATE->docType = 'xhtml_trans';
00104 $TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId;
00105 $this->content.= $TBE_TEMPLATE->startPage('About modules');
00106
00107 $this->content.= sprintf('
00108 <h1>%s<br />%s</h1>
00109
00110 <p>%s</p>
00111 <p> %s</p>
00112 <p>%s</p>',
00113 'TYPO3 '.TYPO3_version,
00114 $LANG->getLL('introtext'),
00115 t3lib_BEfunc::TYPO3_copyRightNotice(),
00116 $this->displayWarningIfPasswordIsDefault(),
00117 $LANG->getLL('introtext2')
00118 );
00119
00120
00121
00122
00123
00124 $this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1);
00125 $this->content.='<br />';
00126
00127
00128 $this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
00129 $this->content.='<hr />';
00130
00131
00132 $this->content.='<p class="c-user">'.
00133 htmlspecialchars($LANG->getLL('userInfo')).
00134 sprintf(' <strong>%s</strong> (%s)',
00135 $BE_USER->user['username'],
00136 (implode(', ',array($BE_USER->user['realName'],$BE_USER->user['email'])))
00137 ).
00138 '</p>
00139 <br />
00140 <br />';
00141
00142
00143 $this->content.= $TBE_TEMPLATE->endPage();
00144 }
00145
00151 function printContent() {
00152 echo $this->content;
00153 }
00154
00161 function displayWarningIfPasswordIsDefault() {
00162 if($GLOBALS['BE_USER']->isAdmin() && $GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']==md5('joh316')) {
00163 return ' </p>
00164 <p class="typo3-red" style="font-weight: bold;">Security warning: The password of your install tool is still "joh316" which is the default.<br />
00165 It is highly recommended to change this immediately.<br />
00166 ';
00167 } else {
00168 return '';
00169 }
00170 }
00171 }
00172
00173
00174 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']) {
00175 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']);
00176 }
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190 $SOBE = t3lib_div::makeInstance('SC_alt_intro');
00191 $SOBE->init();
00192 $SOBE->main();
00193 $SOBE->printContent();
00194 ?>