Upload via GUI (24 Dateien)
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user