wallos/includes/connect_endpoint_crontabs.php
Miguel Ribeiro a524419e0a
fix: import of translations for cronjobs was missing (#321)
refactor: retrieval of webroot path
chore: add sqlite to docker image
2024-05-13 17:45:59 +02:00

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';
?>