[TASK] Remove SVN auto properties $Id$
[Packages/TYPO3.CMS.git] / typo3 / alt_intro.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
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.
13 *
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.
18 *
19 *
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.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
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.
31 *
32 * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
33 * XHTML compliant
34 *
35 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
36 */
37 /**
38 * [CLASS/FUNCTION INDEX of SCRIPT]
39 *
40 *
41 *
42 * 75: class SC_alt_intro
43 * 84: function init()
44 * 98: function main()
45 * 148: function printContent()
46 *
47 * TOTAL FUNCTIONS: 3
48 * (This index is automatically created/updated by the extension "extdeveval")
49 *
50 */
51
52
53 require ('init.php');
54 require ('template.php');
55 require_once ('class.alt_menu_functions.inc');
56 $LANG->includeLLFile('EXT:lang/locallang_alt_intro.xml');
57
58
59
60
61
62
63
64
65 /**
66 * Script Class for the introduction screen, alias "About > Modules" which shows the description of each available module for the user.
67 *
68 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
69 * @package TYPO3
70 * @subpackage core
71 */
72 class SC_alt_intro {
73
74 /**
75 * Object for backend modules.
76 *
77 * @var t3lib_loadModules
78 */
79 var $loadModules;
80 var $content;
81
82 /**
83 * Initialization of script class
84 *
85 * @return void
86 */
87 function init() {
88 global $TBE_MODULES;
89
90 // Loads the available backend modules so we can create the description overview.
91 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
92 $this->loadModules->observeWorkspaces = TRUE;
93 $this->loadModules->load($TBE_MODULES);
94 }
95
96 /**
97 * Main content - displaying the module descriptions
98 *
99 * @return void
100 */
101 function main() {
102 global $BE_USER,$LANG,$TYPO3_CONF_VARS;
103 global $TBE_TEMPLATE;
104
105 $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
106
107 $TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId;
108
109 $this->content = '
110 <div id="typo3-docheader">
111 <div id="typo3-docheader-row1">&nbsp;</div>
112 </div>
113 <div id="typo3-alt-intro-php-sub">
114 <h1>TYPO3 '.TYPO3_version.'<br />'.$LANG->getLL('introtext').'</h1>
115
116 <p>'.t3lib_BEfunc::TYPO3_copyRightNotice().'</p>';
117
118 $this->content .= '
119 '.t3lib_BEfunc::displayWarningMessages();
120
121 $this->content .= '
122 <h3>' . $LANG->getLL('introtext2') . '</h3>';
123
124
125 // Printing the description of the modules available
126 $this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1);
127 $this->content.='<br />';
128
129 // end text: 'Features may vary depending on your website and permissions'
130 $this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
131 $this->content .= '<br /></div>';
132
133 // Renders the module page
134 $this->content = $TBE_TEMPLATE->render(
135 'About modules',
136 $this->content
137 );
138 }
139
140 /**
141 * Outputting the accumulated content to screen
142 *
143 * @return void
144 */
145 function printContent() {
146 echo $this->content;
147 }
148 }
149
150
151 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_intro.php'])) {
152 include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']);
153 }
154
155
156
157 // Make instance:
158 $SOBE = t3lib_div::makeInstance('SC_alt_intro');
159 $SOBE->init();
160 $SOBE->main();
161 $SOBE->printContent();
162
163 ?>