summaryrefslogtreecommitdiffstats
path: root/app/app.php
blob: 3d6929289c75844222798bfeb45ba186b444333f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

error_reporting(0);

require_once __DIR__.'/../vendor/autoload.php';

$moon_version = trim(file_get_contents(__DIR__.'/../VERSION'));

session_start();

$PlanetConfig = PlanetConfig::load(__DIR__);
$Planet = new Planet($PlanetConfig);

if ($PlanetConfig->getDebug()) {
    error_reporting(E_ALL);
}

$l10n = new Simplel10n($PlanetConfig->getLocale());
$csrf = new CSRF();