| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/arni-solutions.de/web/terminal/ |
Upload File : |
<?php
/**
* Dynamisches Web-App-Manifest je Terminal: manifest.php?h=<hash>
* start_url zeigt direkt auf das Terminal, damit die installierte App ohne
* Browser-Bedienelemente (standalone) genau dieses Terminal öffnet.
*/
require_once __DIR__ . '/config.inc.php';
$hash = (string)($_GET['h'] ?? '');
$name = 'Terminal';
if ($hash !== '') {
$t = term_terminal_load(term_db(), $hash);
if ($t && (int)$t['terminal_active'] === 1) $name = (string)$t['terminal_label'];
}
$start = $hash !== '' ? ('terminal.php?h=' . $hash) : './';
header('Content-Type: application/manifest+json; charset=utf-8');
header('Cache-Control: no-store');
echo json_encode([
'name' => $name,
'short_name' => mb_substr($name, 0, 24),
'lang' => 'de',
'dir' => 'ltr',
'start_url' => $start,
'scope' => './',
'display' => 'standalone',
'display_override' => ['fullscreen', 'standalone', 'minimal-ui'],
'orientation' => 'portrait',
'background_color' => '#0e1116',
'theme_color' => '#0e1116',
'icons' => [
['src' => 'assets/icons/icon-192.png', 'sizes' => '192x192', 'type' => 'image/png', 'purpose' => 'any'],
['src' => 'assets/icons/icon-512.png', 'sizes' => '512x512', 'type' => 'image/png', 'purpose' => 'any'],
['src' => 'assets/icons/icon-maskable-192.png', 'sizes' => '192x192', 'type' => 'image/png', 'purpose' => 'maskable'],
['src' => 'assets/icons/icon-maskable-512.png', 'sizes' => '512x512', 'type' => 'image/png', 'purpose' => 'maskable'],
],
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);