|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com) 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * A copy is found in the textfile GPL.txt and important notices to the license 00017 * from the author is found in LICENSE.txt distributed with these scripts. 00018 * 00019 * 00020 * This script is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * This copyright notice MUST APPEAR in all copies of the script! 00026 ***************************************************************/ 00027 /** 00028 * 'About modules' script - the default start-up module. 00029 * Will display the list of main- and sub-modules available to the user. 00030 * Each module will be show with description and a link to the module. 00031 * 00032 * $Id: alt_intro.php 10121 2011-01-18 20:15:30Z ohader $ 00033 * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj 00034 * XHTML compliant 00035 * 00036 * @author Kasper Skårhøj <kasperYYYY@typo3.com> 00037 */ 00038 /** 00039 * [CLASS/FUNCTION INDEX of SCRIPT] 00040 * 00041 * 00042 * 00043 * 75: class SC_alt_intro 00044 * 84: function init() 00045 * 98: function main() 00046 * 148: function printContent() 00047 * 00048 * TOTAL FUNCTIONS: 3 00049 * (This index is automatically created/updated by the extension "extdeveval") 00050 * 00051 */ 00052 00053 00054 require ('init.php'); 00055 require ('template.php'); 00056 require_once ('class.alt_menu_functions.inc'); 00057 $LANG->includeLLFile('EXT:lang/locallang_alt_intro.xml'); 00058 00059 00060 00061 00062 00063 00064 00065 00066 /** 00067 * Script Class for the introduction screen, alias "About > Modules" which shows the description of each available module for the user. 00068 * 00069 * @author Kasper Skårhøj <kasperYYYY@typo3.com> 00070 * @package TYPO3 00071 * @subpackage core 00072 */ 00073 class SC_alt_intro { 00074 00075 /** 00076 * Object for backend modules. 00077 * 00078 * @var t3lib_loadModules 00079 */ 00080 var $loadModules; 00081 var $content; 00082 00083 /** 00084 * Initialization of script class 00085 * 00086 * @return void 00087 */ 00088 function init() { 00089 global $TBE_MODULES; 00090 00091 // Loads the available backend modules so we can create the description overview. 00092 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules'); 00093 $this->loadModules->observeWorkspaces = TRUE; 00094 $this->loadModules->load($TBE_MODULES); 00095 } 00096 00097 /** 00098 * Main content - displaying the module descriptions 00099 * 00100 * @return void 00101 */ 00102 function main() { 00103 global $BE_USER,$LANG,$TYPO3_CONF_VARS; 00104 global $TBE_TEMPLATE; 00105 00106 $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions'); 00107 00108 $TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId; 00109 00110 $this->content = ' 00111 <div id="typo3-docheader"> 00112 <div id="typo3-docheader-row1"> </div> 00113 </div> 00114 <div id="typo3-alt-intro-php-sub"> 00115 <h1>TYPO3 '.TYPO3_version.'<br />'.$LANG->getLL('introtext').'</h1> 00116 00117 <p>'.t3lib_BEfunc::TYPO3_copyRightNotice().'</p>'; 00118 00119 $this->content .= ' 00120 '.t3lib_BEfunc::displayWarningMessages(); 00121 00122 $this->content .= ' 00123 <h3>' . $LANG->getLL('introtext2') . '</h3>'; 00124 00125 00126 // Printing the description of the modules available 00127 $this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1); 00128 $this->content.='<br />'; 00129 00130 // end text: 'Features may vary depending on your website and permissions' 00131 $this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>'; 00132 $this->content .= '<br /></div>'; 00133 00134 // Renders the module page 00135 $this->content = $TBE_TEMPLATE->render( 00136 'About modules', 00137 $this->content 00138 ); 00139 } 00140 00141 /** 00142 * Outputting the accumulated content to screen 00143 * 00144 * @return void 00145 */ 00146 function printContent() { 00147 echo $this->content; 00148 } 00149 } 00150 00151 00152 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_intro.php'])) { 00153 include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']); 00154 } 00155 00156 00157 00158 // Make instance: 00159 $SOBE = t3lib_div::makeInstance('SC_alt_intro'); 00160 $SOBE->init(); 00161 $SOBE->main(); 00162 $SOBE->printContent(); 00163 00164 ?>
1.8.0