blob: 05c9411404d6e35b9a972ee8f51e335df6fab4c6 [file] [log] [blame]
<?php
// Core of the application
require __DIR__.'/vendor/autoload.php';
// Classes autoload
spl_autoload_register(function($className) {
include_once(__DIR__."/inc/".str_replace("\\", DIRECTORY_SEPARATOR, str_replace("..", "", $className)).".php");
});
// Getting configuration
require_once(__DIR__."/config.php");
// Setting timezone and locale accordingly
if (isset($conf["timezone"])) date_default_timezone_set($conf["timezone"]);
setlocale(LC_TIME, 'es_ES.UTF-8', 'es_ES', 'es');