2017-12-16 20:17:29 +01:00
|
|
|
<?php
|
|
|
|
namespace Misuzu;
|
|
|
|
|
|
|
|
require_once 'vendor/autoload.php';
|
2018-01-02 20:37:13 +01:00
|
|
|
|
2018-01-04 21:01:55 +01:00
|
|
|
$app = Application::start(
|
|
|
|
__DIR__ . '/config/config.ini',
|
|
|
|
IO\Directory::exists(__DIR__ . '/vendor/phpunit/phpunit')
|
|
|
|
);
|
2018-01-03 22:39:01 +01:00
|
|
|
$app->startDatabase();
|
2018-03-14 02:39:02 +01:00
|
|
|
|
|
|
|
if (PHP_SAPI !== 'cli') {
|
|
|
|
if (isset($_COOKIE['msz_uid'], $_COOKIE['msz_sid'])) {
|
|
|
|
$app->startSession((int)$_COOKIE['msz_uid'], $_COOKIE['msz_sid']);
|
|
|
|
}
|
|
|
|
|
|
|
|
//ob_start('ob_gzhandler');
|
|
|
|
|
|
|
|
$app->startTemplating();
|
|
|
|
}
|