Remove obsolete test scripts and add new API controllers for dashboard and game management

- Deleted test scripts: test_jellyfin_execution.php, test_stash.php, test_xbvr.php, test_xbvr_sync.php, vite.config.js
- Added DashboardController for fetching dashboard statistics and recent activity
- Added GameController for managing games, including fetching all games, game details, and games by category
- Introduced various check scripts to validate database structures and data integrity for adult videos, games, gender data, posters, and TV show actors
This commit is contained in:
Lars Behrends
2026-01-18 01:42:03 +01:00
parent b728b0c72d
commit eb1ec1153d
29 changed files with 2685 additions and 2454 deletions

23
check_games_columns.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
require_once 'vendor/autoload.php';
$container = require 'bootstrap/app.php';
$pdo = $container->get('pdo');
// Get column names from games table
$stmt = $pdo->query('DESCRIBE games');
$columns = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo 'Games table columns:' . PHP_EOL;
foreach ($columns as $column) {
echo '- ' . $column['Field'] . ' (' . $column['Type'] . ')' . PHP_EOL;
}
// Also check a sample row to see the actual data
echo PHP_EOL . 'Sample game data:' . PHP_EOL;
$stmt = $pdo->query('SELECT * FROM games LIMIT 1');
$row = $stmt->fetch(PDO::FETCH_ASSOC);
if ($row) {
foreach ($row as $key => $value) {
echo '- ' . $key . ': ' . (is_null($value) ? 'NULL' : substr($value, 0, 50)) . PHP_EOL;
}
}