szurubooru/public_html/dispatch.php

19 lines
489 B
PHP
Raw Normal View History

2013-10-05 12:55:03 +02:00
<?php
chdir('..');
2013-10-05 17:12:51 +02:00
require_once 'lib/redbean/RedBean/redbean.inc.php';
require_once 'lib/chibi-core/Facade.php';
require_once 'src/Bootstrap.php';
2013-10-05 12:55:03 +02:00
date_default_timezone_set('UTC');
setlocale(LC_CTYPE, 'en_US.UTF-8');
$query = $_SERVER['REQUEST_URI'];
$configPaths =
[
__DIR__ . DIRECTORY_SEPARATOR . '../config.ini',
__DIR__ . DIRECTORY_SEPARATOR . '../local.ini'
];
$configPaths = array_filter($configPaths, 'file_exists');
\Chibi\Facade::run($query, $configPaths, new Bootstrap());