2016-08-19 03:02:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
|
|
|
|
if (file_exists(__DIR__.'/../config.php')) {
|
|
|
|
require __DIR__.'/../config.php';
|
|
|
|
}
|
|
|
|
|
2016-12-26 15:44:53 +01:00
|
|
|
require_once __DIR__.'/constants.php';
|
|
|
|
require_once __DIR__.'/check_setup.php';
|
|
|
|
require_once __DIR__.'/functions.php';
|
2016-08-19 03:02:49 +02:00
|
|
|
|
2016-12-26 21:07:18 +01:00
|
|
|
PicoDb\Database::setInstance('db', function () {
|
|
|
|
try {
|
|
|
|
return Miniflux\Database\get_connection();
|
|
|
|
} catch (Exception $e) {
|
|
|
|
die($e->getMessage());
|
2016-08-19 03:02:49 +02:00
|
|
|
}
|
|
|
|
});
|