This commit was manufactured by cvs2svn to create tag
[Packages/TYPO3.CMS.git] / typo3 / mod / help / about / index.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2004 Kasper Skaarhoj (kasper@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 * Module: About
29 * This document shows some standard-information for TYPO3 CMS: About-text, version number and so on.
30 *
31 * $Id$
32 * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
33 * XHTML compliant
34 *
35 * @todo This module could use a major overhaul in general.
36 * @author Kasper Skaarhoj <kasper@typo3.com>
37 */
38 /**
39 * [CLASS/FUNCTION INDEX of SCRIPT]
40 *
41 *
42 *
43 * 73: class SC_mod_help_about_index
44 * 91: function main()
45 * 141: function printContent()
46 *
47 * TOTAL FUNCTIONS: 2
48 * (This index is automatically created/updated by the extension "extdeveval")
49 *
50 */
51
52 unset($MCONF);
53 require ('conf.php');
54 require ($BACK_PATH.'init.php');
55 require ($BACK_PATH.'template.php');
56 include (PATH_typo3.'sysext/lang/locallang_mod_help_about.php');
57 $BE_USER->modAccess($MCONF,1);
58
59
60
61
62
63
64
65
66 /**
67 * Script Class for the Help > About module
68 *
69 * @author Kasper Skaarhoj <kasper@typo3.com>
70 * @package TYPO3
71 * @subpackage core
72 */
73 class SC_mod_help_about_index {
74
75 // Internal, dynamic:
76 var $MCONF=array();
77 var $MOD_MENU=array();
78 var $MOD_SETTINGS=array();
79 var $content;
80
81
82
83
84 /**
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
88 *
89 * @return void
90 */
91 function main() {
92 global $TBE_TEMPLATE,$TYPO_VERSION,$LANG,$BACK_PATH;
93
94 $this->MCONF = $GLOBALS['MCONF'];
95
96 // **************************
97 // Main
98 // **************************
99 $TBE_TEMPLATE->bgColor = '#cccccc';
100 $TBE_TEMPLATE->backPath = $GLOBALS['BACK_PATH'];
101 $this->content.= $TBE_TEMPLATE->startPage('About');
102
103 $minorText = sprintf($LANG->getLL('minor'), 'TYPO3 Ver. '.$TYPO_VERSION.', Copyright &#169; 1998-2004', 'Kasper Sk&#229;rh&#248;j');
104
105 $content='
106 <div id="typo3-mod-help-about-index-php-outer">
107 <img src="'.$BACK_PATH.'gfx/typo3logo.gif" width="333" height="43" vspace="10" alt="TYPO3 logo" />
108 <div id="typo3-mod-help-about-index-php-inner">
109 <h2>TYPO3 Information</h2>
110 <h3>'.$LANG->getLL('welcome',1).'</h3>
111 <p>'.$minorText.'</p>
112 </div>
113 </div>
114 ';
115 $this->content.= $content;
116 $this->content.= $TBE_TEMPLATE->endPage();
117 }
118
119 /**
120 * Outputting the accumulated content to screen
121 *
122 * @return void
123 */
124 function printContent() {
125 echo $this->content;
126 }
127 }
128
129 // Include extension?
130 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/mod/help/about/index.php']) {
131 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/mod/help/about/index.php']);
132 }
133
134
135
136
137
138
139
140
141
142
143
144
145 // Make instance:
146 $SOBE = t3lib_div::makeInstance('SC_mod_help_about_index');
147 $SOBE->main();
148 $SOBE->printContent();
149 ?>