/
index.php
20 lines (15 loc) · 914 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
// This code requires PHP 5.3 or newer, so if we don't have it - complain
if (PHP_VERSION_ID < 50300) die('This software requires PHP 5.3.0 or newer, but you have an older version. Please upgrade');
// Set standard constants needed elsewhere
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
defined('CASPAR_PATH') || define('CASPAR_PATH', realpath(getcwd() . DS . '..' . DS) . DS . 'caspar' . DS);
defined('CASPAR_SESSION_NAME') || define('CASPAR_SESSION_NAME', 'CASPAR');
// Include the "engine" script, which initializes and sets up stuff
require CASPAR_PATH . 'bootstrap.inc.php';
// Set runtime environment
\caspar\core\Caspar::setEnvironment('prod');
\caspar\core\Caspar::setCacheStrategy(array('enabled' => false, 'type' => \caspar\core\Cache::TYPE_APC),
array('enabled' => true, 'path' => CASPAR_CACHE_PATH));
// Start loading Caspar
caspar\core\Caspar::initialize();