blob: 89c2ec01b927d366f92ea811ebf4dd8928477f37 [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
15date_default_timezone_set("Europe/Madrid");
16setlocale(LC_TIME, 'es_ES.UTF-8', 'es_ES', 'es');