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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
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
00068
00069
00070
00071
00072
00073
00074
00075 class SC_alt_intro {
00076
00077
00078
00079
00080
00081
00082 var $loadModules;
00083 var $content;
00084
00085
00086
00087
00088
00089
00090 function init() {
00091 global $TBE_MODULES;
00092
00093
00094 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00095 $this->loadModules->observeWorkspaces = TRUE;
00096 $this->loadModules->load($TBE_MODULES);
00097 }
00098
00099
00100
00101
00102
00103
00104 function main() {
00105 global $BE_USER,$LANG,$TYPO3_CONF_VARS;
00106 global $TBE_TEMPLATE;
00107
00108 $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00109
00110 $TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId;
00111 $this->content.= $TBE_TEMPLATE->startPage('About modules');
00112
00113 $this->content .= '
00114 <h1>TYPO3 '.TYPO3_version.'<br />'.$LANG->getLL('introtext').'</h1>
00115
00116 <p>'.t3lib_BEfunc::TYPO3_copyRightNotice().'</p>';
00117
00118 $this->content .= '
00119 '.t3lib_BEfunc::displayWarningMessages();
00120
00121 $this->content .= '
00122 <p>'.$LANG->getLL('introtext2').'</p>';
00123
00124
00125
00126 $this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1);
00127 $this->content.='<br />';
00128
00129
00130 $this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
00131 $this->content.='<hr />';
00132
00133
00134 $this->content.='<p class="c-user">'.
00135 htmlspecialchars($LANG->getLL('userInfo')).
00136 sprintf(' <strong>%s</strong> (%s)',
00137 $BE_USER->user['username'],
00138 (implode(', ',array($BE_USER->user['realName'],$BE_USER->user['email'])))
00139 ).
00140 '</p>
00141 <br />
00142 <br />';
00143
00144
00145 $this->content.= $TBE_TEMPLATE->endPage();
00146 }
00147
00148
00149
00150
00151
00152
00153 function printContent() {
00154 echo $this->content;
00155 }
00156 }
00157
00158
00159 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']) {
00160 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']);
00161 }
00162
00163
00164
00165
00166 $SOBE = t3lib_div::makeInstance('SC_alt_intro');
00167 $SOBE->init();
00168 $SOBE->main();
00169 $SOBE->printContent();
00170
00171 ?>