[!!!][TASK] Bootstrap: Central constants and path handling
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / index_ts.php
index bf53d1a..ac78e7d 100644 (file)
@@ -47,17 +47,8 @@ if (version_compare(phpversion(), '5.3', '<'))       die ('TYPO3 requires PHP 5.3.0 or
 // Constants defined
 // ******************
 $TYPO3_MISC['microtime_start'] = microtime(TRUE);
-define('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':'');
 define('TYPO3_MODE','FE');
 
-if (!defined('PATH_t3lib'))            define('PATH_t3lib', PATH_site.'t3lib/');
-
-define('TYPO3_mainDir', 'typo3/');             // This is the directory of the backend administration for the sites of this TYPO3 installation.
-define('PATH_typo3', PATH_site.TYPO3_mainDir);
-define('PATH_typo3conf', PATH_site.'typo3conf/');
-
-if (!@is_dir(PATH_typo3conf))  die('Cannot find configuration. This file is probably executed from the wrong location.');
-
 // *********************
 // Unset variable(s) in global scope (fixes #13959)
 // *********************
@@ -254,10 +245,10 @@ if ($TSFE->isBackendUserLoggedIn()) {
        $spriteManager->loadCacheFile();
 
        $BE_USER->initializeFrontendEdit();
-       if ($BE_USER->adminPanel instanceof tslib_AdminPanel) {
+       if ($BE_USER->adminPanel instanceof tslib_AdminPanel) {
                $LANG = t3lib_div::makeInstance('language');
                $LANG->init($BE_USER->uc['lang']);
-       }
+       }
        if ($BE_USER->frontendEdit instanceof t3lib_frontendedit) {
                $BE_USER->frontendEdit->initConfigOptions();
        }