2 /***************************************************************
5 * (c) 2007-2009 Ingo Renner <ingo@typo3.org>
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 ***************************************************************/
28 require_once('init.php');
29 require_once('template.php');
30 require_once('interfaces/interface.backend_toolbaritem.php');
32 require('classes/class.typo3logo.php');
33 require('classes/class.modulemenu.php');
36 require('classes/class.workspaceselector.php');
37 require('classes/class.clearcachemenu.php');
38 require('classes/class.shortcutmenu.php');
39 require('classes/class.backendsearchmenu.php');
41 require_once('class.alt_menu_functions.inc');
42 $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xml');
46 * Class for rendering the TYPO3 backend version 4.2+
48 * @author Ingo Renner <ingo@typo3.org>
59 protected $jsFilesAfterInline;
60 protected $toolbarItems;
61 private $menuWidthDefault = 160; // intentionally private as nobody should modify defaults
65 * Object for loading backend modules
67 * @var t3lib_loadModules
69 protected $moduleLoader;
72 * module menu generating object
76 protected $moduleMenu;
83 public function __construct() {
85 // Initializes the backend modules structure for use later.
86 $this->moduleLoader
= t3lib_div
::makeInstance('t3lib_loadModules');
87 $this->moduleLoader
->load($GLOBALS['TBE_MODULES']);
89 $this->moduleMenu
= t3lib_div
::makeInstance('ModuleMenu');
91 // add default BE javascript
93 $this->jsFiles
= array(
94 'contrib/swfupload/swfupload.js',
95 'contrib/swfupload/plugins/swfupload.swfobject.js',
96 'contrib/swfupload/plugins/swfupload.cookies.js',
97 'contrib/swfupload/plugins/swfupload.queue.js',
101 'js/toolbarmanager.js',
103 'js/iecompatibility.js',
105 '../t3lib/jsfunc.evalfield.js'
107 $this->jsFilesAfterInline
= array(
109 'js/loginrefresh.js',
111 // add default BE css
113 $this->cssFiles
= array(
114 'backend-scaffolding' => 'css/backend-scaffolding.css',
115 'backend-style' => 'css/backend-style.css',
116 'modulemenu' => 'css/modulemenu.css',
119 $this->toolbarItems
= array();
120 $this->initializeCoreToolbarItems();
122 $this->menuWidth
= $this->menuWidthDefault
;
123 if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW']) && (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] != (int) $this->menuWidth
) {
124 $this->menuWidth
= (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
129 * initializes the core toolbar items
133 protected function initializeCoreToolbarItems() {
135 $coreToolbarItems = array(
136 'workspaceSelector' => 'WorkspaceSelector',
137 'shortcuts' => 'ShortcutMenu',
138 'clearCacheActions' => 'ClearCacheMenu',
139 'backendSearch' => 'BackendSearchMenu'
142 foreach($coreToolbarItems as $toolbarItemName => $toolbarItemClassName) {
143 $toolbarItem = t3lib_div
::makeInstance($toolbarItemClassName, $this);
145 if(!($toolbarItem instanceof backend_toolbarItem
)) {
146 throw new UnexpectedValueException('$toolbarItem "'.$toolbarItemName.'" must implement interface backend_toolbarItem', 1195126772);
149 if($toolbarItem->checkAccess()) {
150 $this->toolbarItems
[$toolbarItemName] = $toolbarItem;
158 * main function generating the BE scaffolding
162 public function render() {
164 // prepare the scaffolding, at this point extension may still add javascript and css
165 $logo = t3lib_div
::makeInstance('TYPO3Logo');
166 $logo->setLogo('gfx/typo3logo_mini.png');
168 $menu = $this->moduleMenu
->render();
170 if ($this->menuWidth
!= $this->menuWidthDefault
) {
174 width: ' . ($this->menuWidth
- 1) . 'px;
179 margin-left: ' . $this->menuWidth
. 'px;
184 // create backend scaffolding
185 $backendScaffolding = '
186 <div id="typo3-backend">
187 <div id="typo3-top-container">
188 <div id="typo3-logo">'.$logo->render().'</div>
189 <div id="typo3-top" class="typo3-top-toolbar">'
190 .$this->renderToolbar()
193 <div id="typo3-main-container">
194 <div id="typo3-side-menu">
197 <div id="typo3-content">
198 <iframe src="alt_intro.php" name="content" id="content" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto"></iframe>
204 /******************************************************
205 * now put the complete backend document together
206 ******************************************************/
208 $GLOBALS['TBE_TEMPLATE']->loadScriptaculous('builder,effects,controls,dragdrop');
209 $GLOBALS['TBE_TEMPLATE']->loadExtJS();
211 // remove duplicate entries
212 $this->jsFiles
= array_unique($this->jsFiles
);
215 foreach($this->jsFiles
as $jsFile) {
216 $GLOBALS['TBE_TEMPLATE']->loadJavascriptLib($jsFile);
218 $GLOBALS['TBE_TEMPLATE']->JScode
.= chr(10);
219 $this->generateJavascript();
220 $GLOBALS['TBE_TEMPLATE']->JScode
.= $GLOBALS['TBE_TEMPLATE']->wrapScriptTags($this->js
) . chr(10);
222 foreach($this->jsFilesAfterInline
as $jsFile) {
223 $GLOBALS['TBE_TEMPLATE']->JScode
.= '
224 <script type="text/javascript" src="' . $jsFile . '"></script>';
228 // FIXME abusing the JS container to add CSS, need to fix template.php
229 foreach($this->cssFiles
as $cssFileName => $cssFile) {
230 $GLOBALS['TBE_TEMPLATE']->addStyleSheet($cssFileName, $cssFile);
232 // load addditional css files to overwrite existing core styles
233 if(!empty($GLOBALS['TBE_STYLES']['stylesheets'][$cssFileName])) {
234 $GLOBALS['TBE_TEMPLATE']->addStyleSheet($cssFileName . 'TBE_STYLES', $GLOBALS['TBE_STYLES']['stylesheets'][$cssFileName]);
238 if(!empty($this->css
)) {
239 $GLOBALS['TBE_TEMPLATE']->inDocStylesArray
['backend.php'] = $this->css
;
242 // set document title:
243 $title = ($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']
244 ?
$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'].' [TYPO3 '.TYPO3_version
.']'
245 : 'TYPO3 '.TYPO3_version
248 // start page header:
249 $this->content
.= $GLOBALS['TBE_TEMPLATE']->startPage($title);
250 $this->content
.= $backendScaffolding;
251 $this->content
.= $GLOBALS['TBE_TEMPLATE']->endPage();
257 * renders the items in the top toolbar
259 * @return string top toolbar elements as HTML
261 protected function renderToolbar() {
263 // move search to last position
264 $search = $this->toolbarItems
['backendSearch'];
265 unset($this->toolbarItems
['backendSearch']);
266 $this->toolbarItems
['backendSearch'] = $search;
268 $toolbar = '<ul id="typo3-toolbar">';
269 $toolbar.= '<li>'.$this->getLoggedInUserLabel().'</li>
270 <li><div id="logout-button" class="toolbar-item no-separator">'.$this->moduleMenu
->renderLogoutButton().'</div></li>';
272 foreach($this->toolbarItems
as $toolbarItem) {
273 $menu = $toolbarItem->render();
275 $additionalAttributes = $toolbarItem->getAdditionalAttributes();
276 $toolbar .= '<li' . $additionalAttributes . '>' .$menu. '</li>';
280 return $toolbar.'</ul>';
284 * gets the label of the currently loged in BE user
286 * @return string html code snippet displaying the currently logged in user
288 protected function getLoggedInUserLabel() {
289 global $BE_USER, $BACK_PATH;
291 $icon = '<img'.t3lib_iconWorks
::skinImg(
293 $BE_USER->isAdmin() ?
294 'gfx/i/be_users_admin.gif' :
295 'gfx/i/be_users.gif',
296 'width="18" height="16"'
298 .' title="" alt="" />';
300 $label = $GLOBALS['BE_USER']->user
['realName'] ?
301 $BE_USER->user
['realName'].' ['.$BE_USER->user
['username'].']' :
302 $BE_USER->user
['username'];
304 // Link to user setup if it's loaded and user has access
306 if (t3lib_extMgm
::isLoaded('setup') && $BE_USER->check('modules','user_setup')) {
307 $link = '<a href="#" onclick="top.goToModule(\'user_setup\');this.blur();return false;">';
310 $username = '">'.$link.$icon.'<span>'.htmlspecialchars($label).'</span>'.($link?
'</a>':'');
313 if($BE_USER->user
['ses_backuserid']) {
314 $username = ' su-user">'.$icon.
315 '<span title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xml:switchtouser').'">SU: </span>'.
316 '<span>'.htmlspecialchars($label).'</span>';
319 return '<div id="username" class="toolbar-item no-separator'.$username.'</div>';
323 * Generates the JavaScript code for the backend.
327 protected function generateJavascript() {
329 $pathTYPO3 = t3lib_div
::dirname(t3lib_div
::getIndpEnv('SCRIPT_NAME')).'/';
330 $goToModuleSwitch = $this->moduleMenu
->getGotoModuleJavascript();
331 $moduleFramesHelper = implode(chr(10), $this->moduleMenu
->getFsMod());
333 // If another page module was specified, replace the default Page module with the new one
334 $newPageModule = trim($GLOBALS['BE_USER']->getTSConfigVal('options.overridePageModule'));
335 $pageModule = t3lib_BEfunc
::isModuleSetInTBE_MODULES($newPageModule) ?
$newPageModule : 'web_layout';
337 $menuFrameName = 'menu';
338 if($GLOBALS['BE_USER']->uc
['noMenuMode'] === 'icons') {
339 $menuFrameName = 'topmenuFrame';
342 // create challenge for the (re)login form and save it in the session.
343 $challenge = md5(uniqid('').getmypid());
345 $_SESSION['login_challenge'] = $challenge;
347 // determine security level from conf vars and default to super challenged
348 if ($GLOBALS['TYPO3_CONF_VARS']['BE']['loginSecurityLevel']) {
349 $this->loginSecurityLevel
= $GLOBALS['TYPO3_CONF_VARS']['BE']['loginSecurityLevel'];
351 $this->loginSecurityLevel
= 'superchallenged';
355 Ext.BLANK_IMAGE_URL = "' .
356 // t3lib_div::locationHeaderUrl() will include '/typo3/' in the URL
357 htmlspecialchars(t3lib_div
::locationHeaderUrl('gfx/clear.gif')) .
361 TYPO3.configuration = ' . json_encode(array(
362 'siteUrl' => t3lib_div
::getIndpEnv('TYPO3_SITE_URL'),
363 'PATH_typo3' => $pathTYPO3,
364 'PATH_typo3_enc' => rawurlencode($pathTYPO3),
365 'username' => htmlspecialchars($GLOBALS['BE_USER']->user
['username']),
366 'uniqueID' => t3lib_div
::shortMD5(uniqid('')),
367 'securityLevel' => $this->loginSecurityLevel
,
368 'challenge' => $challenge,
369 'TYPO3_mainDir' => TYPO3_mainDir
,
370 'pageModule' => $pageModule,
371 'condensedMode' => $GLOBALS['BE_USER']->uc
['condensedMode'] ?
1 : 0 ,
372 'workspaceFrontendPreviewEnabled' => (($GLOBALS['BE_USER']->workspace
!= 0 && !$GLOBALS['BE_USER']->user
['workspace_preview']) ?
'false' : 'true'),
373 'veriCode' => $GLOBALS['BE_USER']->veriCode(),
374 'denyFileTypes' => PHP_EXTENSIONS_DEFAULT
,
377 core : ' . json_encode(array(
378 'waitTitle' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_logging_in') ,
379 'refresh_login_failed' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_failed'),
380 'refresh_login_failed_message' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_failed_message'),
381 'refresh_login_title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_title'),
382 'login_expired' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.login_expired'),
383 'refresh_login_username' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_username'),
384 'refresh_login_password' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_password'),
385 'refresh_login_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_button'),
386 'refresh_logout_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_logout_button'),
387 'please_wait' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.please_wait'),
388 'be_locked' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.be_locked'),
389 'refresh_login_countdown_singular' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_countdown_singular'),
390 'refresh_login_countdown' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_countdown'),
391 'login_about_to_expire' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.login_about_to_expire'),
392 'login_about_to_expire_title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.login_about_to_expire_title'),
393 'refresh_login_refresh_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_refresh_button'),
394 'refresh_direct_logout_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_direct_logout_button'),
396 fileUpload: ' . json_encode(array(
397 'windowTitle' => "File Upload Progress",
398 'buttonSelectFiles' => "Select Files",
399 'buttonCancelAll' => "Cancel All Uploads",
400 'infoComponentMaxFileSize' => "You can upload files with a maximum size of {0}.",
401 'infoComponentFileUploadLimit' => "You can upload a total of {0}.",
402 'infoComponentFileTypeLimit' => "You can upload the following file types {0}.",
403 'infoComponentOverrideFiles' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xml:overwriteExistingFiles', 1),
404 'processRunning' => "Another process is already uploading",
405 'uploadWait' => "Waiting to start upload of {0}",
406 'uploadStarting' => "Starting upload of {0}",
407 'uploadProgress' => "{0}% of {1} uploaded",
408 'uploadSuccess' => "{0} was successfully uploaded!",
409 'errorQueueLimitExceeded' => "Too many files selected",
410 'errorQueueFileSizeLimit' => "{0} is too big",
411 'errorQueueZeroByteFile' => "{0} is empty",
412 'errorQueueInvalidFiletype' => "Filetype not allowed for {0}",
413 'errorUploadHttp' => "Too many files selected",
414 'errorUploadMissingUrl' => "Internal error: No Upload URL set",
415 'errorUploadIO' => "Internal error: Problems while reading/writing the file",
416 'errorUploadSecurityError' => "Internal error: {0}",
417 'errorUploadLimit' => "Upload limit exceeded",
418 'errorUploadFailed' => "Upload failed",
419 'errorUploadFileIDNotFound' => "Internal error: File ID not found",
420 'errorUploadFileValidation' => "Internal error while validating the file",
421 'errorUploadFileCancelled' => "Upload of {0} canceled",
422 'errorUploadStopped' => "Upload of {0} stopped",
428 function typoSetup() { //
429 this.PATH_typo3 = TYPO3.configuration.PATH_typo3;
430 this.PATH_typo3_enc = TYPO3.configuration.PATH_typo3_enc;
431 this.username = TYPO3.configuration.username;
432 this.uniqueID = TYPO3.configuration.uniqueID;
433 this.navFrameWidth = 0;
434 this.securityLevel = TYPO3.configuration.securityLevel;
435 this.veriCode = TYPO3.configuration.veriCode;
436 this.denyFileTypes = TYPO3.configuration.denyFileTypes;
438 var TS = new typoSetup();
440 var currentModuleLoaded = "";
441 var goToModule = ' . $goToModuleSwitch . ';
444 * Frameset Module object
446 * Used in main modules with a frameset for submodules to keep the ID between modules
447 * Typically that is set by something like this in a Web>* sub module:
448 * if (top.fsMod) top.fsMod.recentIds["web"] = "\'.intval($this->id).\'";
449 * if (top.fsMod) top.fsMod.recentIds["file"] = "...(file reference/string)...";
451 function fsModules() { //
452 this.recentIds=new Array(); // used by frameset modules to track the most recent used id for list frame.
453 this.navFrameHighlightedID=new Array(); // used by navigation frames to track which row id was highlighted last time
454 this.currentMainLoaded="";
455 this.currentBank="0";
457 var fsMod = new fsModules();' . $moduleFramesHelper . ';';
461 // Check editing of page:
462 $this->handlePageEditing();
463 $this->setStartupModule();
467 * Checking if the "&edit" variable was sent so we can open it for editing the page.
468 * Code based on code from "alt_shortcut.php"
472 protected function handlePageEditing() {
474 if(!t3lib_extMgm
::isLoaded('cms')) {
479 $editId = preg_replace('/[^[:alnum:]_]/', '', t3lib_div
::_GET('edit'));
484 // Looking up the page to edit, checking permissions:
485 $where = ' AND ('.$GLOBALS['BE_USER']->getPagePermsClause(2)
486 .' OR '.$GLOBALS['BE_USER']->getPagePermsClause(16).')';
488 if(t3lib_div
::testInt($editId)) {
489 $editRecord = t3lib_BEfunc
::getRecordWSOL('pages', $editId, '*', $where);
491 $records = t3lib_BEfunc
::getRecordsByField('pages', 'alias', $editId, $where);
493 if(is_array($records)) {
495 $editRecord = current($records);
496 t3lib_BEfunc
::workspaceOL('pages', $editRecord);
500 // If the page was accessible, then let the user edit it.
501 if(is_array($editRecord) && $GLOBALS['BE_USER']->isInWebMount($editRecord['uid'])) {
502 // Setting JS code to open editing:
504 // Load page to edit:
505 window.setTimeout("top.loadEditId('.intval($editRecord['uid']).');", 500);
507 // Checking page edit parameter:
508 if(!$GLOBALS['BE_USER']->getTSConfigVal('options.shortcut_onEditId_dontSetPageTree')) {
510 // Expanding page tree:
511 t3lib_BEfunc
::openPageTree(intval($editRecord['pid']), !$GLOBALS['BE_USER']->getTSConfigVal('options.shortcut_onEditId_keepExistingExpanded'));
515 // Warning about page editing:
516 alert('.$GLOBALS['LANG']->JScharCode(sprintf($GLOBALS['LANG']->getLL('noEditPage'), $editId)).');
523 * Sets the startup module from either GETvars module and mpdParams or user configuration.
527 protected function setStartupModule() {
528 $startModule = preg_replace('/[^[:alnum:]_]/', '', t3lib_div
::_GET('module'));
531 if ($GLOBALS['BE_USER']->uc
['startModule']) {
532 $startModule = $GLOBALS['BE_USER']->uc
['startModule'];
533 } else if($GLOBALS['BE_USER']->uc
['startInTaskCenter']) {
534 $startModule = 'user_task';
538 $moduleParameters = t3lib_div
::_GET('modParams');
542 function startInModule(modName, cMR_flag, addGetVars) {
543 Event.observe(document, \'dom:loaded\', function() {
544 top.goToModule(modName, cMR_flag, addGetVars);
548 startInModule(\''.$startModule.'\', false, \''.$moduleParameters.'\');
554 * generates the code for the TYPO3 logo, either the default TYPO3 logo or a custom one
556 * @return string HTML code snippet to display the TYPO3 logo
558 protected function getLogo() {
559 $logo = '<a href="http://www.typo3.com/" target="_blank" onclick="'.$GLOBALS['TBE_TEMPLATE']->thisBlur().'">'.
560 '<img'.t3lib_iconWorks
::skinImg('','gfx/alt_backend_logo.gif','width="117" height="32"').' title="TYPO3 Content Management Framework" alt="" />'.
563 // overwrite with custom logo
564 if($GLOBALS['TBE_STYLES']['logo']) {
565 if(substr($GLOBALS['TBE_STYLES']['logo'], 0, 3) == '../') {
566 $imgInfo = @getimagesize
(PATH_site
.substr($GLOBALS['TBE_STYLES']['logo'], 3));
568 $logo = '<a href="http://www.typo3.com/" target="_blank" onclick="'.$GLOBALS['TBE_TEMPLATE']->thisBlur().'">'.
569 '<img src="'.$GLOBALS['TBE_STYLES']['logo'].'" '.$imgInfo[3].' title="TYPO3 Content Management Framework" alt="" />'.
577 * adds a javascript snippet to the backend
579 * @param string javascript snippet
582 public function addJavascript($javascript) {
583 // TODO do we need more checks?
584 if(!is_string($javascript)) {
585 throw new InvalidArgumentException('parameter $javascript must be of type string', 1195129553);
588 $this->js
.= $javascript;
592 * adds a javscript file to the backend after it has been checked that it exists
594 * @param string javascript file reference
595 * @return boolean true if the javascript file was successfully added, false otherwise
597 public function addJavascriptFile($javascriptFile) {
598 $jsFileAdded = false;
600 //TODO add more checks if neccessary
601 if(file_exists(t3lib_div
::resolveBackPath(PATH_typo3
.$javascriptFile))) {
602 $this->jsFiles
[] = $javascriptFile;
610 * adds a css snippet to the backend
612 * @param string css snippet
615 public function addCss($css) {
616 if(!is_string($css)) {
617 throw new InvalidArgumentException('parameter $css must be of type string', 1195129642);
624 * adds a css file to the backend after it has been checked that it exists
626 * @param string the css file's name with out the .css ending
627 * @param string css file reference
628 * @return boolean true if the css file was added, false otherwise
630 public function addCssFile($cssFileName, $cssFile) {
631 $cssFileAdded = false;
633 //TODO add more checks if neccessary
634 if(file_exists(t3lib_div
::resolveBackPath(PATH_typo3
.$cssFile))) {
635 // prevent overwriting existing css files
636 if(empty($this->cssFiles
[$cssFileName])) {
637 $this->cssFiles
[$cssFileName] = $cssFile;
638 $cssFileAdded = true;
642 return $cssFileAdded;
646 * adds an item to the toolbar, the class file for the toolbar item must be loaded at this point
648 * @param string toolbar item name, f.e. tx_toolbarExtension_coolItem
649 * @param string toolbar item class name, f.e. tx_toolbarExtension_coolItem
652 public function addToolbarItem($toolbarItemName, $toolbarItemClassName) {
653 $toolbarItem = t3lib_div
::makeInstance($toolbarItemClassName, $this);
655 if(!($toolbarItem instanceof backend_toolbarItem
)) {
656 throw new UnexpectedValueException('$toolbarItem "'.$toolbarItemName.'" must implement interface backend_toolbarItem', 1195125501);
659 if($toolbarItem->checkAccess()) {
660 $this->toolbarItems
[$toolbarItemName] = $toolbarItem;
669 if(defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/backend.php']) {
670 include_once($TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/backend.php']);
674 // document generation
675 $TYPO3backend = t3lib_div
::makeInstance('TYPO3backend');
677 // include extensions which may add css, javascript or toolbar items
678 if(is_array($GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'])) {
679 foreach($GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'] as $additionalBackendItem) {
680 include_once($additionalBackendItem);
684 $TYPO3backend->render();