Upload via GUI (24 Dateien)

This commit is contained in:
2026-10-16 18:42:18 +00:00
parent 1f03c7e4cd
commit d9d58112e0
24 changed files with 1167 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
/** Katalog für DeskHub: catalog.php?type=plugins oder catalog.php?type=themes (JSON). */
require_once __DIR__ . '/inc/lib.php';
site_require_access();
$type = ($_GET['type'] ?? 'plugins') === 'themes' ? 'theme' : 'plugin';
header('Content-Type: application/json; charset=utf-8');
header('Cache-Control: public, max-age=300');
header('X-Content-Type-Options: nosniff');
echo json_encode(site_catalog($type), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);