d12b9d7d3e8920d83cd34410286c74c7512aad82
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / index_ts.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2005 Kasper Skaarhoj (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 * This is the MAIN DOCUMENT of the TypoScript driven standard front-end (from the "cms" extension)
29 * Basically put this is the "index.php" script which all requests for TYPO3 delivered pages goes to in the frontend (the website)
30 * The script configures constants, includes libraries and does a little logic here and there in order to instantiate the right classes to create the webpage.
31 * All the real data processing goes on in the "tslib/" classes which this script will include and use as needed.
32 *
33 * $Id$
34 * Revised for TYPO3 3.6 June/2003 by Kasper Skaarhoj
35 *
36 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
37 * @package TYPO3
38 * @subpackage tslib
39 */
40
41 // *******************************
42 // Set error reporting
43 // *******************************
44 error_reporting (E_ALL ^ E_NOTICE);
45
46
47 // ******************
48 // Constants defined
49 // ******************
50 $TYPO3_MISC['microtime_start'] = microtime();
51 define('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':'');
52 define('TYPO3_MODE','FE');
53
54 if (!defined('PATH_thisScript')) define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', (php_sapi_name()=='cgi'||php_sapi_name()=='isapi' ||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));
55 if (!defined('PATH_site')) define('PATH_site', dirname(PATH_thisScript).'/');
56 if (!defined('PATH_t3lib')) define('PATH_t3lib', PATH_site.'t3lib/');
57
58 define('PATH_typo3conf', PATH_site.'typo3conf/');
59 define('TYPO3_mainDir', 'typo3/'); // This is the directory of the backend administration for the sites of this TYPO3 installation.
60
61 if (!defined('PATH_tslib')) {
62 if (@is_dir(PATH_site.TYPO3_mainDir.'sysext/cms/tslib/')) {
63 define('PATH_tslib', PATH_site.TYPO3_mainDir.'sysext/cms/tslib/');
64 } elseif (@is_dir(PATH_site.'tslib/')) {
65 define('PATH_tslib', PATH_site.'tslib/');
66 }
67 }
68
69 if (!@is_dir(PATH_typo3conf)) die('Cannot find configuration. This file is probably executed from the wrong location.');
70
71 // *********************
72 // Timetracking started
73 // *********************
74 require_once(PATH_t3lib.'class.t3lib_timetrack.php');
75 $TT = new t3lib_timeTrack;
76 $TT->start();
77 $TT->push('','Script start');
78
79
80 // *********************
81 // Mandatory libraries included
82 // *********************
83 $TT->push('Include class t3lib_db, t3lib_div, t3lib_extmgm','');
84 require_once(PATH_t3lib.'class.t3lib_div.php');
85 require_once(PATH_t3lib.'class.t3lib_extmgm.php');
86 $TT->pull();
87
88
89
90 // **********************
91 // Include configuration
92 // **********************
93 $TT->push('Include config files','');
94 require(PATH_t3lib.'config_default.php');
95 if (!defined ('TYPO3_db')) die ('The configuration file was not included.'); // the name of the TYPO3 database is stored in this constant. Here the inclusion of the config-file is verified by checking if this var is set.
96 if (!t3lib_extMgm::isLoaded('cms')) die('<strong>Error:</strong> The main frontend extension "cms" was not loaded. Enable it in the extension manager in the backend.');
97
98 if (!defined('PATH_tslib')) {
99 define('PATH_tslib', t3lib_extMgm::extPath('cms').'tslib/');
100 }
101
102 require_once(PATH_t3lib.'class.t3lib_db.php');
103 $TYPO3_DB = t3lib_div::makeInstance('t3lib_DB');
104 $TYPO3_DB->debugOutput = $TYPO3_CONF_VARS['SYS']['sqlDebug'];
105
106 $CLIENT = t3lib_div::clientInfo(); // Set to the browser: net / msie if 4+ browsers
107 $TT->pull();
108
109
110 // *******************************
111 // Checking environment
112 // *******************************
113 if (t3lib_div::int_from_ver(phpversion())<4001000) die ('TYPO3 runs with PHP4.1.0+ only');
114
115 if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
116 if (!get_magic_quotes_gpc()) {
117 $TT->push('Add slashes to GET/POST arrays','');
118 t3lib_div::addSlashesOnArray($_GET);
119 t3lib_div::addSlashesOnArray($_POST);
120 $HTTP_GET_VARS = $_GET;
121 $HTTP_POST_VARS = $_POST;
122 $TT->pull();
123 }
124
125
126 // *********************
127 // Look for extension ID which will launch alternative output engine
128 // *********************
129 if ($temp_extId = t3lib_div::_GP('eID')) {
130 if ($classPath = t3lib_div::getFileAbsFileName($TYPO3_CONF_VARS['FE']['eID_include'][$temp_extId])) {
131 require_once(PATH_tslib.'class.tslib_eidtools.php');
132 require($classPath);
133 }
134 exit;
135 }
136
137 // *********************
138 // Libraries included
139 // *********************
140 $TT->push('Include Frontend libraries','');
141 require_once(PATH_tslib.'class.tslib_fe.php');
142 require_once(PATH_t3lib.'class.t3lib_page.php');
143 require_once(PATH_t3lib.'class.t3lib_userauth.php');
144 require_once(PATH_tslib.'class.tslib_feuserauth.php');
145 require_once(PATH_t3lib.'class.t3lib_tstemplate.php');
146 require_once(PATH_t3lib.'class.t3lib_cs.php');
147 $TT->pull();
148
149
150 // ***********************************
151 // Create $TSFE object (TSFE = TypoScript Front End)
152 // Connecting to database
153 // ***********************************
154 $temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
155 $TSFE = new $temp_TSFEclassName(
156 $TYPO3_CONF_VARS,
157 t3lib_div::_GP('id'),
158 t3lib_div::_GP('type'),
159 t3lib_div::_GP('no_cache'),
160 t3lib_div::_GP('cHash'),
161 t3lib_div::_GP('jumpurl'),
162 t3lib_div::_GP('MP'),
163 t3lib_div::_GP('RDCT')
164 );
165 $TSFE->connectToDB();
166
167 // In case of a keyword-authenticated preview, re-initialize the TSFE object:
168 if ($temp_previewConfig = $TSFE->ADMCMD_preview()) {
169 $TSFE = new $temp_TSFEclassName(
170 $TYPO3_CONF_VARS,
171 t3lib_div::_GP('id'),
172 t3lib_div::_GP('type'),
173 t3lib_div::_GP('no_cache'),
174 t3lib_div::_GP('cHash'),
175 t3lib_div::_GP('jumpurl'),
176 t3lib_div::_GP('MP'),
177 t3lib_div::_GP('RDCT')
178 );
179 $TSFE->ADMCMD_preview_postInit($temp_previewConfig);
180 }
181
182 if ($TSFE->RDCT) {$TSFE->sendRedirect();}
183
184
185 // *******************
186 // output compression
187 // *******************
188 if ($TYPO3_CONF_VARS['FE']['compressionLevel']) {
189 ob_start();
190 require_once(PATH_t3lib.'class.gzip_encode.php');
191 }
192
193 // *********
194 // FE_USER
195 // *********
196 $TT->push('Front End user initialized','');
197 $TSFE->initFEuser();
198 $TT->pull();
199
200 // ****************
201 // PRE BE_USER HOOK
202 // ****************
203 if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/index_ts.php']['preBeUser'])) {
204 foreach($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/index_ts.php']['preBeUser'] as $_funcRef) {
205 $_params = array();
206 t3lib_div::callUserFunction($_funcRef, $_params , $_params);
207 }
208 }
209
210
211 // *********
212 // BE_USER
213 // *********
214 $BE_USER='';
215 if ($_COOKIE['be_typo_user']) { // If the backend cookie is set, we proceed and checks if a backend user is logged in.
216 $TYPO3_MISC['microtime_BE_USER_start'] = microtime();
217 $TT->push('Back End user initialized','');
218 require_once (PATH_t3lib.'class.t3lib_befunc.php');
219 require_once (PATH_t3lib.'class.t3lib_userauthgroup.php');
220 require_once (PATH_t3lib.'class.t3lib_beuserauth.php');
221 require_once (PATH_t3lib.'class.t3lib_tsfebeuserauth.php');
222
223 // the value this->formfield_status is set to empty in order to disable login-attempts to the backend account through this script
224 $BE_USER = t3lib_div::makeInstance('t3lib_tsfeBeUserAuth'); // New backend user object
225 $BE_USER->OS = TYPO3_OS;
226 $BE_USER->lockIP = $TYPO3_CONF_VARS['BE']['lockIP'];
227 $BE_USER->start(); // Object is initialized
228 $BE_USER->unpack_uc('');
229 if ($BE_USER->user['uid']) {
230 $BE_USER->fetchGroupData();
231 $TSFE->beUserLogin = 1;
232 }
233 if ($BE_USER->checkLockToIP() && $BE_USER->checkBackendAccessSettingsFromInitPhp()) {
234 $BE_USER->extInitFeAdmin();
235 if ($BE_USER->extAdmEnabled) {
236 require_once(t3lib_extMgm::extPath('lang').'lang.php');
237 $LANG = t3lib_div::makeInstance('language');
238 $LANG->init($BE_USER->uc['lang']);
239
240 $BE_USER->extSaveFeAdminConfig();
241 // Setting some values based on the admin panel
242 $TSFE->forceTemplateParsing = $BE_USER->extGetFeAdminValue('tsdebug', 'forceTemplateParsing');
243 $TSFE->displayEditIcons = $BE_USER->extGetFeAdminValue('edit', 'displayIcons');
244 $TSFE->displayFieldEditIcons = $BE_USER->extGetFeAdminValue('edit', 'displayFieldIcons');
245
246 if (t3lib_div::_GP('ADMCMD_editIcons')) {
247 $TSFE->displayFieldEditIcons=1;
248 $BE_USER->uc['TSFE_adminConfig']['edit_editNoPopup']=1;
249 }
250 if (t3lib_div::_GP('ADMCMD_simUser')) {
251 $BE_USER->uc['TSFE_adminConfig']['preview_simulateUserGroup']=intval(t3lib_div::_GP('ADMCMD_simUser'));
252 $BE_USER->ext_forcePreview=1;
253 }
254 if (t3lib_div::_GP('ADMCMD_simTime')) {
255 $BE_USER->uc['TSFE_adminConfig']['preview_simulateDate']=intval(t3lib_div::_GP('ADMCMD_simTime'));
256 $BE_USER->ext_forcePreview=1;
257 }
258
259 // Include classes for editing IF editing module in Admin Panel is open
260 if (($BE_USER->extAdmModuleEnabled('edit') && $BE_USER->extIsAdmMenuOpen('edit')) || $TSFE->displayEditIcons == 1) {
261 $TSFE->includeTCA();
262 if ($BE_USER->extIsEditAction()) {
263 require_once (PATH_t3lib.'class.t3lib_tcemain.php');
264 $BE_USER->extEditAction();
265 }
266 if ($BE_USER->extIsFormShown()) {
267 require_once(PATH_t3lib.'class.t3lib_tceforms.php');
268 require_once(PATH_t3lib.'class.t3lib_iconworks.php');
269 require_once(PATH_t3lib.'class.t3lib_loaddbgroup.php');
270 require_once(PATH_t3lib.'class.t3lib_transferdata.php');
271 }
272 }
273
274 if ($TSFE->forceTemplateParsing || $TSFE->displayEditIcons || $TSFE->displayFieldEditIcons) { $TSFE->set_no_cache(); }
275 }
276
277 // $WEBMOUNTS = (string)($BE_USER->groupData['webmounts'])!='' ? explode(',',$BE_USER->groupData['webmounts']) : Array();
278 // $FILEMOUNTS = $BE_USER->groupData['filemounts'];
279 } else { // Unset the user initialization.
280 $BE_USER='';
281 $TSFE->beUserLogin=0;
282 }
283 $TT->pull();
284 $TYPO3_MISC['microtime_BE_USER_end'] = microtime();
285 } elseif ($TSFE->ADMCMD_preview_BEUSER_uid) {
286 require_once (PATH_t3lib.'class.t3lib_befunc.php');
287 require_once (PATH_t3lib.'class.t3lib_userauthgroup.php');
288 require_once (PATH_t3lib.'class.t3lib_beuserauth.php');
289 require_once (PATH_t3lib.'class.t3lib_tsfebeuserauth.php');
290
291 // the value this->formfield_status is set to empty in order to disable login-attempts to the backend account through this script
292 $BE_USER = t3lib_div::makeInstance('t3lib_tsfeBeUserAuth'); // New backend user object
293 $BE_USER->userTS_dontGetCached = 1;
294 $BE_USER->OS = TYPO3_OS;
295 $BE_USER->setBeUserByUid($TSFE->ADMCMD_preview_BEUSER_uid);
296 $BE_USER->unpack_uc('');
297 if ($BE_USER->user['uid']) {
298 $BE_USER->fetchGroupData();
299 $TSFE->beUserLogin = 1;
300 } else {
301 $BE_USER = '';
302 $TSFE->beUserLogin = 0;
303 }
304 }
305
306 // ********************
307 // Workspace preview:
308 // ********************
309 $TSFE->workspacePreviewInit();
310
311
312 // *****************************************
313 // Proces the ID, type and other parameters
314 // After this point we have an array, $page in TSFE, which is the page-record of the current page, $id
315 // *****************************************
316 $TT->push('Process ID','');
317 $TSFE->checkAlternativeIdMethods();
318 $TSFE->clear_preview();
319 $TSFE->determineId();
320
321 // Now, if there is a backend user logged in and he has NO access to this page, then re-evaluate the id shown!
322 if ($TSFE->beUserLogin && (!$BE_USER->extPageReadAccess($TSFE->page) || t3lib_div::_GP('ADMCMD_noBeUser'))) { // t3lib_div::_GP('ADMCMD_noBeUser') is placed here because workspacePreviewInit() might need to know if a backend user is logged in!
323
324 // Remove user
325 unset($BE_USER);
326 $TSFE->beUserLogin = 0;
327
328 // Re-evaluate the page-id.
329 $TSFE->checkAlternativeIdMethods();
330 $TSFE->clear_preview();
331 $TSFE->determineId();
332 }
333 $TSFE->makeCacheHash();
334 $TT->pull();
335
336
337 // *******************************************
338 // Get compressed $TCA-Array();
339 // After this, we should now have a valid $TCA, though minimized
340 // *******************************************
341 $TSFE->getCompressedTCarray();
342
343
344 // ********************************
345 // Starts the template
346 // *******************************
347 $TT->push('Start Template','');
348 $TSFE->initTemplate();
349 $TT->pull();
350
351
352 // ********************************
353 // Get from cache
354 // *******************************
355 $TT->push('Get Page from cache','');
356 $TSFE->getFromCache();
357 $TT->pull();
358
359
360 // ******************************************************
361 // Get config if not already gotten
362 // After this, we should have a valid config-array ready
363 // ******************************************************
364 $TSFE->getConfigArray();
365
366
367 // ********************************
368 // Convert POST data to internal "renderCharset" if different from the metaCharset:
369 // *******************************
370 $TSFE->convPOSTCharset();
371
372
373 // *******************************************
374 // Setting the internal var, sys_language_uid + locale settings
375 // *******************************************
376 $TSFE->settingLanguage();
377 $TSFE->settingLocale();
378
379
380 // ********************************
381 // Check JumpUrl
382 // *******************************
383 $TSFE->setExternalJumpUrl();
384 $TSFE->checkJumpUrlReferer();
385
386
387 // ********************************
388 // Check Submission of data.
389 // This is done at this point, because we need the config values
390 // *******************************
391 switch($TSFE->checkDataSubmission()) {
392 case 'email':
393 require_once(PATH_t3lib.'class.t3lib_htmlmail.php');
394 require_once(PATH_t3lib.'class.t3lib_formmail.php');
395 $TSFE->sendFormmail();
396 break;
397 case 'fe_tce':
398 require_once(PATH_tslib.'class.tslib_fetce.php');
399 $TSFE->includeTCA();
400 $TT->push('fe_tce','');
401 $TSFE->fe_tce();
402 $TT->pull();
403 break;
404 }
405
406
407 // ********************************
408 // Generate page
409 // *******************************
410 $TSFE->setUrlIdToken();
411
412 $TT->push('Page generation','');
413 if ($TSFE->doXHTML_cleaning()) {require_once(PATH_t3lib.'class.t3lib_parsehtml.php');}
414 if ($TSFE->isGeneratePage()) {
415 $TSFE->generatePage_preProcessing();
416 $temp_theScript=$TSFE->generatePage_whichScript();
417
418 if ($temp_theScript) {
419 include($temp_theScript);
420 } else {
421 require_once(PATH_tslib.'class.tslib_pagegen.php');
422 include(PATH_tslib.'pagegen.php');
423 }
424 $TSFE->generatePage_postProcessing();
425 } elseif ($TSFE->isINTincScript()) {
426 require_once(PATH_tslib.'class.tslib_pagegen.php');
427 include(PATH_tslib.'pagegen.php');
428 }
429 $TT->pull();
430
431
432 // ********************************
433 // $GLOBALS['TSFE']->config['INTincScript']
434 // *******************************
435 if ($TSFE->isINTincScript()) {
436 $TT->push('Non-cached objects','');
437 $INTiS_config = $GLOBALS['TSFE']->config['INTincScript'];
438
439 // Special feature: Include libraries
440 $TT->push('Include libraries');
441 foreach($INTiS_config as $INTiS_cPart) {
442 if ($INTiS_cPart['conf']['includeLibs']) {
443 $INTiS_resourceList = t3lib_div::trimExplode(',',$INTiS_cPart['conf']['includeLibs'],1);
444 $GLOBALS['TT']->setTSlogMessage('Files for inclusion: "'.implode(', ',$INTiS_resourceList).'"');
445
446 foreach($INTiS_resourceList as $INTiS_theLib) {
447 $INTiS_incFile = $GLOBALS['TSFE']->tmpl->getFileName($INTiS_theLib);
448 if ($INTiS_incFile) {
449 require_once('./'.$INTiS_incFile);
450 } else {
451 $GLOBALS['TT']->setTSlogMessage('Include file "'.$INTiS_theLib.'" did not exist!',2);
452 }
453 }
454 }
455 }
456 $TT->pull();
457 $TSFE->INTincScript();
458 $TT->pull();
459 }
460
461 // ***************
462 // Output content
463 // ***************
464 if ($TSFE->isOutputting()) {
465 $TT->push('Print Content','');
466 $TSFE->processOutput();
467
468 // ***************************************
469 // Outputs content / Includes EXT scripts
470 // ***************************************
471 if ($TSFE->isEXTincScript()) {
472 $TT->push('External PHP-script','');
473 // Important global variables here are $EXTiS_*, they must not be overridden in include-scripts!!!
474 $EXTiS_config = $GLOBALS['TSFE']->config['EXTincScript'];
475 $EXTiS_splitC = explode('<!--EXT_SCRIPT.',$GLOBALS['TSFE']->content); // Splits content with the key.
476
477 // Special feature: Include libraries
478 reset($EXTiS_config);
479 while(list(,$EXTiS_cPart)=each($EXTiS_config)) {
480 if ($EXTiS_cPart['conf']['includeLibs']) {
481 $EXTiS_resourceList = t3lib_div::trimExplode(',',$EXTiS_cPart['conf']['includeLibs'],1);
482 $GLOBALS['TT']->setTSlogMessage('Files for inclusion: "'.implode(', ',$EXTiS_resourceList).'"');
483 reset($EXTiS_resourceList);
484 while(list(,$EXTiS_theLib)=each($EXTiS_resourceList)) {
485 $EXTiS_incFile=$GLOBALS['TSFE']->tmpl->getFileName($EXTiS_theLib);
486 if ($EXTiS_incFile) {
487 require_once($EXTiS_incFile);
488 } else {
489 $GLOBALS['TT']->setTSlogMessage('Include file "'.$EXTiS_theLib.'" did not exist!',2);
490 }
491 }
492 }
493 }
494
495 reset($EXTiS_splitC);
496 while(list($EXTiS_c,$EXTiS_cPart)=each($EXTiS_splitC)) {
497 if (substr($EXTiS_cPart,32,3)=='-->') { // If the split had a comment-end after 32 characters it's probably a split-string
498 $EXTiS_key = 'EXT_SCRIPT.'.substr($EXTiS_cPart,0,32);
499 if (is_array($EXTiS_config[$EXTiS_key])) {
500 $REC = $EXTiS_config[$EXTiS_key]['data'];
501 $CONF = $EXTiS_config[$EXTiS_key]['conf'];
502 $content='';
503 include($EXTiS_config[$EXTiS_key]['file']);
504 echo $content; // The script MAY return content in $content or the script may just output the result directly!
505 }
506 echo substr($EXTiS_cPart,35);
507 } else {
508 echo ($c?'<!--EXT_SCRIPT.':'').$EXTiS_cPart;
509 }
510 }
511
512 $TT->pull();
513 } else {
514 echo $GLOBALS['TSFE']->content;
515 }
516 $TT->pull();
517 }
518
519
520 // ********************************
521 // Store session data for fe_users
522 // ********************************
523 $TSFE->storeSessionData();
524
525
526 // ***********
527 // Statistics
528 // ***********
529 $TYPO3_MISC['microtime_end'] = microtime();
530 $TSFE->setParseTime();
531 if ($TSFE->isOutputting() && ($TSFE->TYPO3_CONF_VARS['FE']['debug'] || $TSFE->config['config']['debug'])) {
532 echo '
533 <!-- Parsetime: '.$TSFE->scriptParseTime.' ms-->';
534 }
535 $TSFE->statistics();
536
537
538 // ***************
539 // Check JumpUrl
540 // ***************
541 $TSFE->jumpurl();
542
543
544 // *************
545 // Preview info
546 // *************
547 $TSFE->previewInfo();
548
549
550 // ******************
551 // Publishing static
552 // ******************
553 if (is_object($BE_USER)) {
554 if ($BE_USER->extAdmModuleEnabled('publish') && $BE_USER->extPublishList) {
555 include_once(PATH_tslib.'publish.php');
556 }
557 }
558
559
560 // ******************
561 // Hook for end-of-frontend
562 // ******************
563 $TSFE->hook_eofe();
564
565
566 // ********************
567 // Finish timetracking
568 // ********************
569 $TT->pull();
570
571
572 // ******************
573 // beLoginLinkIPList
574 // ******************
575 echo $GLOBALS['TSFE']->beLoginLinkIPList();
576
577
578 // *************
579 // Admin panel
580 // *************
581 if (is_object($BE_USER)
582 && $GLOBALS['TSFE']->beUserLogin
583 && $GLOBALS['TSFE']->config['config']['admPanel']
584 && $BE_USER->extAdmEnabled
585 // && $BE_USER->extPageReadAccess($GLOBALS['TSFE']->page) // This is already done, if there is a BE_USER object at this point!
586 && !$BE_USER->extAdminConfig['hide']) {
587 echo $BE_USER->extPrintFeAdminDialog();
588 }
589
590
591 // *************
592 // Debugging Output
593 // *************
594 if(@is_callable(array($error,'debugOutput'))) {
595 $error->debugOutput();
596 }
597 if (TYPO3_DLOG) t3lib_div::devLog('END of FRONTEND session','',0,array('_FLUSH'=>TRUE));
598
599
600 // *************
601 // Compressions
602 // *************
603 if ($TYPO3_CONF_VARS['FE']['compressionLevel']) {
604 new gzip_encode($TYPO3_CONF_VARS['FE']['compressionLevel'], false, $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionDebugInfo']);
605 }
606
607 ?>