Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

alt_intro.php

Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2004 Kasper Skaarhoj (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 ***************************************************************/
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 
00075 class SC_alt_intro {
00076    var $loadModules;
00077    var $content;
00078 
00084    function init()   {
00085       global $TBE_MODULES;
00086 
00087          // Loads the available backend modules so we can create the description overview.
00088       $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00089       $this->loadModules->load($TBE_MODULES);
00090    }
00091 
00097    function main()   {
00098       global $BE_USER,$LANG,$TYPO3_CONF_VARS;
00099       global $TBE_TEMPLATE;
00100 
00101       $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00102 
00103       $TBE_TEMPLATE->docType = 'xhtml_trans';
00104       $TBE_TEMPLATE->divClass = $TBE_TEMPLATE->bodyTagId;
00105       $this->content.= $TBE_TEMPLATE->startPage('About modules');
00106 
00107       $this->content.= sprintf('
00108          <h1>%s<br />%s</h1>
00109 
00110          <p>%s</p>
00111          <p>&nbsp;</p>
00112          <p>%s</p>',
00113          'TYPO3 '.TYPO3_version,
00114          $LANG->getLL('introtext'),
00115          t3lib_BEfunc::TYPO3_copyRightNotice(),
00116          $LANG->getLL('introtext2')
00117          );
00118 
00119 
00120 
00121 
00122          // Printing the description of the modules available
00123       $this->content.=$alt_menuObj->topMenu($this->loadModules->modules,0,'',1);
00124       $this->content.='<br />';
00125 
00126          // end text: 'Features may vary depending on your website and permissions'
00127       $this->content.='<p class="c-features"><em>('.$LANG->getLL('endText').')</em></p>';
00128       $this->content.='<hr />';
00129 
00130          // Logged in user, eg: 'You're logged in as user: admin (John Doe, john@doe.email)'
00131       $this->content.='<p class="c-user">'.
00132             htmlspecialchars($LANG->getLL('userInfo')).
00133             sprintf(' <strong>%s</strong> (%s)',
00134                   $BE_USER->user['username'],
00135                   (implode(', ',array($BE_USER->user['realName'],$BE_USER->user['email'])))
00136                   ).
00137             '</p>
00138             <br />
00139             <br />';
00140 
00141          // End page
00142       $this->content.= $TBE_TEMPLATE->endPage();
00143    }
00144 
00150    function printContent() {
00151       echo $this->content;
00152    }
00153 }
00154 
00155 // Include extension?
00156 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_intro.php'])  {
00157    include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_intro.php']);
00158 }
00159 
00160 
00161 
00162 
00163 
00164 
00165 
00166 
00167 
00168 
00169 
00170 
00171 // Make instance:
00172 $SOBE = t3lib_div::makeInstance('SC_alt_intro');
00173 $SOBE->init();
00174 $SOBE->main();
00175 $SOBE->printContent();
00176 ?>

Generated on Sun Oct 3 01:05:53 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913