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 |
avm99963 | 78011ca | 2020-07-05 13:49:26 +0200 | [diff] [blame^] | 15 | if (isset($conf["timezone"])) date_default_timezone_set($conf["timezone"]); |
avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame] | 16 | setlocale(LC_TIME, 'es_ES.UTF-8', 'es_ES', 'es'); |