blob: 05c9411404d6e35b9a972ee8f51e335df6fab4c6 [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2// Core of the application
3
4require __DIR__.'/vendor/autoload.php';
5
6// Classes autoload
7spl_autoload_register(function($className) {
8 include_once(__DIR__."/inc/".str_replace("\\", DIRECTORY_SEPARATOR, str_replace("..", "", $className)).".php");
9});
10
11// Getting configuration
12require_once(__DIR__."/config.php");
13
14// Setting timezone and locale accordingly
avm9996378011ca2020-07-05 13:49:26 +020015if (isset($conf["timezone"])) date_default_timezone_set($conf["timezone"]);
avm9996399bb77c2020-01-27 03:15:08 +010016setlocale(LC_TIME, 'es_ES.UTF-8', 'es_ES', 'es');