2007-07-19 10:40:28 +00:00
|
|
|
<?php
|
2012-03-31 20:09:45 +13:00
|
|
|
|
2008-12-04 22:38:32 +00:00
|
|
|
/************************************************************************************
|
|
|
|
************************************************************************************
|
|
|
|
** **
|
|
|
|
** If you can read this text in your browser then you don't have PHP installed. **
|
2017-06-07 18:07:33 +12:00
|
|
|
** Please install PHP 5.6.0 or higher **
|
2008-12-04 22:38:32 +00:00
|
|
|
** **
|
|
|
|
************************************************************************************
|
|
|
|
************************************************************************************/
|
|
|
|
|
2017-06-07 18:07:33 +12:00
|
|
|
use SilverStripe\Core\AppKernel;
|
|
|
|
use SilverStripe\Core\HTTPApplication;
|
|
|
|
use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
|
|
|
|
use SilverStripe\Core\Startup\OutputMiddleware;
|
|
|
|
use SilverStripe\Control\HTTPRequest;
|
|
|
|
|
|
|
|
require __DIR__ . '/src/includes/autoload.php';
|
|
|
|
|
|
|
|
// Default application
|
|
|
|
$request = HTTPRequest::createFromEnvironment();
|
|
|
|
$kernel = new AppKernel();
|
|
|
|
$app = new HTTPApplication($kernel);
|
|
|
|
$app->addMiddleware(new OutputMiddleware());
|
|
|
|
$app->addMiddleware(new ErrorControlChainMiddleware($app, $request));
|
|
|
|
$app->handle($request);
|