First pass of features

This commit is contained in:
2026-03-30 14:53:13 -05:00
parent 1a65e69d25
commit 6353f9c9b4
54 changed files with 5409 additions and 128 deletions
+15 -1
View File
@@ -1,6 +1,17 @@
<?php
require_once __DIR__ . '/env.php';
$envFile = dirname(__DIR__) . '/.env';
if (!file_exists($envFile)) {
if (PHP_SAPI === 'cli') {
fwrite(STDERR, "Family Hub: .env file not found.\n");
fwrite(STDERR, "Open install.php in your browser or copy env.example to .env and edit.\n");
exit(1);
}
header('Location: install.php');
exit;
}
// Load environment variables
Env::load();
@@ -31,7 +42,10 @@ define('EXPORT_RETENTION_DAYS', (int)Env::get('EXPORT_RETENTION_DAYS', 30));
$TABS = [
'chores' => ['title' => 'Chores', 'icon' => 'tasks'],
'groceries' => ['title' => 'Grocery List', 'icon' => 'shopping-cart'],
'meals' => ['title' => 'Meal Plan', 'icon' => 'utensils']
'meals' => ['title' => 'Meal Plan', 'icon' => 'utensils'],
'calendar' => ['title' => 'Calendar', 'icon' => 'calendar-days'],
'currency' => ['title' => 'Currency', 'icon' => 'coins'],
'settings' => ['title' => 'Family settings', 'icon' => 'cog'],
];
// Load local configuration if exists