931038378f1afdc05fb4b0a210f9e303d79939b8
2 /***************************************************************
5 * (c) 1999-2009 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 ***************************************************************/
29 * This document shows some standard-information for TYPO3 CMS: About-text, version number and so on.
32 * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
35 * @todo This module could use a major overhaul in general.
36 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
39 * [CLASS/FUNCTION INDEX of SCRIPT]
43 * 73: class SC_mod_help_about_index
45 * 125: function printContent()
48 * (This index is automatically created/updated by the extension "extdeveval")
54 require ($BACK_PATH.'init.php');
55 require ($BACK_PATH.'template.php');
56 $LANG->includeLLFile('EXT:lang/locallang_mod_help_about.xml');
57 $BE_USER->modAccess($MCONF,1);
67 * Script Class for the Help > About module
69 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
73 class SC_mod_help_about_index
{
77 var $MOD_MENU=array();
78 var $MOD_SETTINGS=array();
85 * Main function, producing the module output.
86 * In this case, the module output is a very simple screen telling the version of TYPO3 and that's basically it...
87 * The content is set in the internal variable $this->content
92 global $TBE_TEMPLATE,$LANG,$BACK_PATH;
94 $this->MCONF
= $GLOBALS['MCONF'];
96 // **************************
98 // **************************
99 #$TBE_TEMPLATE->bgColor = '#cccccc';
100 $TBE_TEMPLATE->backPath
= $GLOBALS['BACK_PATH'];
101 $this->content
.= $TBE_TEMPLATE->startPage('About');
103 $minorText = sprintf($LANG->getLL('minor'), 'TYPO3 Ver. '.htmlspecialchars(TYPO3_version
).', Copyright © '.htmlspecialchars(TYPO3_copyright_year
), 'Kasper Skårhøj');
106 <div id="typo3-mod-help-about-index-php-outer">
107 <img src="'.$BACK_PATH.'gfx/typo3logo.gif" width="123" height="34" vspace="10" alt="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:typo3_logo', true).'" />
108 <div class="typo3-mod-help-about-index-php-inner">
109 <h2>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:information', true).'</h2>
110 <h3>'.$LANG->getLL('welcome',1).'</h3>
111 <p>'.$minorText.'</p>
114 <div class="typo3-mod-help-about-index-php-inner">
115 <h2>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:community_credits', true).'</h2>
116 <p>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:information_detail').'</p>
119 <div class="typo3-mod-help-about-index-php-inner">
120 <h2>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:coredevs', true) . '</h2>
121 <p>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:coredevs_detail') . '</p>
124 <div class="typo3-mod-help-about-index-php-inner">
125 <h2>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:extension_authors', true).'</h2>
126 <p>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:extension_list_info', true).'</p>
127 <br />'.$this->getExtensionAuthors().'
131 $this->content
.= $content;
132 $this->content
.= $TBE_TEMPLATE->endPage();
136 * Outputting the accumulated content to screen
140 function printContent() {
145 * gets the author names from the installed extensions
147 * @return string list of extensions authors and their e-mail
149 function getExtensionAuthors() {
150 $content = '<table border="0" cellspacing="2" cellpadding="1"><tr><th>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:extension', true).'</th><th>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_help_about.xml:extension_author', true).'</th></tr>';
152 $loadedExtensions = $GLOBALS['TYPO3_LOADED_EXT'];
153 foreach ($loadedExtensions as $extensionKey => $extension) {
154 if (is_array($extension) && $extension['type'] != 'S') {
155 $emconfPath = PATH_site
.$extension['siteRelPath'].'ext_emconf.php';
156 include($emconfPath);
158 $emconf = $EM_CONF['']; // ext key is not set when loading the ext_emconf.php directly
160 $content.= '<tr><td>'.$emconf['title'].' ('.$extensionKey.')</td>'.
161 '<td><a href="mailto:'.$emconf['author_email'].'?subject='.rawurlencode('Thanks for your '.$emconf['title'].' extension').'">'.$emconf['author'].'</a></td></tr>';
165 $content.= '</table>';
171 // Include extension?
172 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/mod/help/about/index.php']) {
173 include_once($TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/mod/help/about/index.php']);
188 $SOBE = t3lib_div
::makeInstance('SC_mod_help_about_index');
190 $SOBE->printContent();