Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
<?php
use Illuminate\Contracts\Console\Kernel;
// Stap 1: Paden goedzetten (we gaan vanuit /public één map omhoog)
$basePath = dirname(__DIR__);
if (! file_exists($basePath . '/vendor/autoload.php')) {
exit("Fout: Kan vendor/autoload.php niet vinden op $basePath. Start dit script vanuit de /public map.\n");
}
// Stap 2: Laravel framework laden
include $basePath . '/vendor/autoload.php';
$app = require_once $basePath . '/bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$kernel->bootstrap();
// Stap 3: Instellingen
$iconFolder = public_path('assets/gordon/album1544/');
$outputFile = $basePath . '/missende_icons.txt';
// Stap 4: Database scannen
// We halen de namen op uit items_base omdat daar de icon-referenties staan
echo "\n--- EPIC WEB CONTROL: 100% ICON SCAN ---\n";
$items = DB::table('items_base')->pluck('item_name')->toArray();
$missing = [];
echo 'Bezig met controleren van ' . count($items) . " meubels...\n";
foreach ($items as $item) {
// We checken of het bestand fysiek bestaat
$filename = $item . '_icon.png';
$path = $iconFolder . $filename;
if (! file_exists($path)) {
$missing[] = $item;
}
}
// Stap 5: Resultaten verwerken
echo "Scan voltooid.\n";
echo 'Totaal in database: ' . count($items) . "\n";
echo 'Aantal missende icons: ' . count($missing) . "\n";
if (count($missing) > 0) {
// Schrijf ELKE missende naam naar het tekstbestand
file_put_contents($outputFile, implode("\n", $missing));
echo "\nRESULTAAT:\n";
echo '- Alle ' . count($missing) . ' namen zijn opgeslagen in: ' . $outputFile . "\n";
echo "- Je kunt nu de downloader starten met dit bestand.\n";
echo "\nEerste 5 van de lijst:\n";
foreach (array_slice($missing, 0, 5) as $m) {
echo ' -> ' . $m . "_icon.png\n";
}
} else {
echo "\nGEWELDIG: Je bent 100% compleet! Geen actie nodig.\n";
if (file_exists($outputFile)) {
unlink($outputFile);
} // Verwijder oud bestand
}