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