コード例 #1
0
ファイル: index_ts.php プロジェクト: NaveedWebdeveloper/Test
// Prevent any output until AJAX/compression is initialized to stop
// AJAX/compression data corruption
// *********************
ob_start();
// *********************
// Timetracking started
// *********************
if ($_COOKIE['be_typo_user']) {
    require_once PATH_t3lib . 'class.t3lib_timetrack.php';
    $TT = new t3lib_timeTrack();
} else {
    require_once PATH_t3lib . 'class.t3lib_timetracknull.php';
    $TT = new t3lib_timeTrackNull();
}
$TT->start();
$TT->push('', 'Script start');
// *********************
// Mandatory libraries included
// *********************
$TT->push('Include class t3lib_db, t3lib_div, t3lib_extmgm', '');
require_once PATH_t3lib . 'class.t3lib_div.php';
require_once PATH_t3lib . 'class.t3lib_extmgm.php';
$TT->pull();
// **********************
// Include configuration
// **********************
$TT->push('Include config files', '');
require PATH_t3lib . 'config_default.php';
if (!defined('TYPO3_db')) {
    die('The configuration file was not included.');
}
コード例 #2
0
ファイル: index_ts.php プロジェクト: nicksergio/TYPO3v4-Core
    $TSFE->pageUnavailableAndExit('This page is temporarily unavailable.');
}
$TSFE->connectToDB();
$TSFE->sendRedirect();
// Output compression
// Remove any output produced until now
ob_clean();
if ($TYPO3_CONF_VARS['FE']['compressionLevel'] && extension_loaded('zlib')) {
    if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($TYPO3_CONF_VARS['FE']['compressionLevel'])) {
        // Prevent errors if ini_set() is unavailable (safe mode)
        @ini_set('zlib.output_compression_level', $TYPO3_CONF_VARS['FE']['compressionLevel']);
    }
    ob_start(array(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Utility\\CompressionUtility'), 'compressionOutputHandler'));
}
// FE_USER
$TT->push('Front End user initialized', '');
/**
 * @var $TSFE \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
 */
$TSFE->initFEuser();
$TT->pull();
// BE_USER
/**
 * @var $BE_USER \TYPO3\CMS\Backend\FrontendBackendUserAuthentication
 */
$BE_USER = $TSFE->initializeBackendUser();
// Process the ID, type and other parameters
// After this point we have an array, $page in TSFE, which is the page-record of the current page, $id
$TT->push('Process ID', '');
// Initialize admin panel since simulation settings are required here:
if ($TSFE->isBackendUserLoggedIn()) {