avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | // Core of the application |
| 3 | |
| 4 | require __DIR__.'/vendor/autoload.php'; |
| 5 | |
| 6 | // Classes autoload |
| 7 | spl_autoload_register(function($className) { |
| 8 | include_once(__DIR__."/inc/".str_replace("\\", DIRECTORY_SEPARATOR, str_replace("..", "", $className)).".php"); |
| 9 | }); |
| 10 | |
| 11 | // Getting configuration |
| 12 | require_once(__DIR__."/config.php"); |
| 13 | |
| 14 | // Setting timezone and locale accordingly |
| 15 | date_default_timezone_set("Europe/Madrid"); |
| 16 | setlocale(LC_TIME, 'es_ES.UTF-8', 'es_ES', 'es'); |