Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $config = include 'config.php';
- include 'database.php';
- require_once $config['path']['base'] . '\library\Twig/Autoloader.php';
- Twig_Autoloader::register();
- $loader = new Twig_Loader_Filesystem($config['path']['base'] . '\templates');
- $twig = new Twig_Environment($loader, array(
- 'cache' => '',
- ));
- if ($config['maintenance'] === true) {
- echo $twig->render('maintenance.html', array());
- die();
- }
- session_start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement