mirror of
https://github.com/ellite/Wallos.git
synced 2026-05-03 18:40:41 -05:00
a524419e0a
refactor: retrieval of webroot path chore: add sqlite to docker image
15 lines
367 B
PHP
15 lines
367 B
PHP
<?php
|
|
|
|
$databaseFile = __DIR__ . '/../db/wallos.db';
|
|
$db = new SQLite3($databaseFile);
|
|
$db->busyTimeout(5000);
|
|
|
|
if (!$db) {
|
|
die('Connection to the database failed.');
|
|
}
|
|
|
|
require_once __DIR__ . '/../includes/i18n/languages.php';
|
|
require_once __DIR__ . '/../includes/i18n/getlang.php';
|
|
require_once __DIR__ . '/../includes/i18n/' . $lang . '.php';
|
|
|
|
?>
|