Exemple #1
0
ClassLoader::scanAndRegister();
// config/autoload.php
/**
 * Register the SwiftMailer autoloader
 */
require_once TL_ROOT . '/system/library/Swiftmailer/classes/Swift.php';
Swift::registerAutoload(TL_ROOT . '/system/library/Swiftmailer/swift_init.php');
/**
 * Get the Config instance
 */
$objConfig = Config::getInstance();
/**
 * Initialize the Input and RequestToken class
 */
Input::initialize();
RequestToken::initialize();
/**
 * Set error_reporting
 */
@ini_set('display_errors', $GLOBALS['TL_CONFIG']['displayErrors'] ? 1 : 0);
error_reporting($GLOBALS['TL_CONFIG']['displayErrors'] || $GLOBALS['TL_CONFIG']['logErrors'] ? E_ALL | E_STRICT : 0);
/**
 * Set the timezone
 */
@ini_set('date.timezone', $GLOBALS['TL_CONFIG']['timeZone']);
@date_default_timezone_set($GLOBALS['TL_CONFIG']['timeZone']);
/**
 * Define the relativ path to the Contao installation
 */
if ($GLOBALS['TL_CONFIG']['websitePath'] === null) {
    $path = preg_replace('/\\/contao\\/[^\\/]*$/i', '', Environment::get('requestUri'));
 public static function getGenerateInternalCacheAction()
 {
     \RequestToken::initialize();
     return 'contao/main.php?do=maintenance&bic=1&rt=' . \RequestToken::get();
 }