Initial commit to aggregate values and show monthly overviews.

This commit is contained in:
2024-05-03 11:27:58 +02:00
commit a7a5955723
5 changed files with 432 additions and 0 deletions

12
bootstrap.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
$config = require(__DIR__ . '/config/config.php');
$remote_db = new mysqli($config['remote']['db_host'], $config['remote']['db_user'], $config['remote']['db_pass'], $config['remote']['db_name'], $config['remote']['db_port']);
$local_db = new mysqli($config['local']['db_host'], $config['local']['db_user'], $config['local']['db_pass'], $config['local']['db_name'], $config['local']['db_port']);
return [
'config' => $config,
'remote_db' => $remote_db,
'local_db' => $local_db
];