Files
deskhub/DeskHub-Webseite/staff/help.php
T
2026-11-05 21:21:48 +00:00

82 lines
5.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Adminportal → Hilfe: Handbuch (PDF, kommt mit dem Update) herunterladen, dazu eine Kurzhilfe mit Sprungmarken.
* Nur für echte Administratoren.
*/
require_once __DIR__ . '/../includes/bootstrap.php';
require_once __DIR__ . '/../includes/manual_file.php';
require_once __DIR__ . '/_ui.php';
$staff = require_admin_or_permission('view_help');
// Download
if (isset($_GET['download'])) {
$info = manual_info();
if (!$info) { http_response_code(404); exit('Das Handbuch ist nicht hinterlegt.'); }
session_write_close();
while (ob_get_level() > 0) { @ob_end_clean(); }
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename="' . MANUAL_FILE . '"');
header('Content-Length: ' . $info['size']);
header('X-Content-Type-Options: nosniff');
header('Cache-Control: private, no-store');
readfile(manual_path());
exit;
}
$info = manual_info();
$pageTitle = 'Hilfe';
$activePage = 'help';
require __DIR__ . '/_header.php';
?>
<h1 style="margin-top:0">Hilfe für Administratoren</h1>
<p class="muted">Diese Seite sehen nur Administratoren: das Handbuch zum Herunterladen und eine Kurzhilfe für den Alltag.</p>
<div class="card" style="max-width:860px;margin-bottom:20px">
<div style="font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px">Handbuch</div>
<?php if ($info): ?>
<div style="font-size:1.3rem;font-weight:800">DeskHub-Handbuch (PDF)</div>
<div class="muted" style="font-size:.82rem;margin:4px 0 12px">Zu DeskHub <?= e(DESKHUB_VERSION) ?> · <?= e(app_format_size($info['size'])) ?> · Stand <?= e(ui_date($info['modified_at'])) ?></div>
<a class="btn" href="/staff/help.php?download=1">⬇ Handbuch herunterladen</a>
<div class="muted" style="font-size:.72rem;margin-top:10px;word-break:break-all">SHA-256: <?= e($info['sha256']) ?></div>
<div class="muted" style="font-size:.8rem;margin-top:10px">Das Handbuch beschreibt jede Funktion mit Bildern (Beispieldaten) und wird mit jedem Update aktualisiert.</div>
<?php else: ?>
<div style="font-size:1.1rem;font-weight:700">Das Handbuch ist in dieser Installation nicht vorhanden</div>
<p class="muted" style="margin:6px 0 0">Es gehört zum Update-Paket (Datei <code>docs/<?= e(MANUAL_FILE) ?></code>). Spielt das nächste vollständige Update ein, dann erscheint es hier.</p>
<?php endif; ?>
</div>
<div class="card" style="max-width:860px;margin-bottom:20px">
<h3 style="margin-top:0">Erste Schritte</h3>
<ol style="line-height:1.9;padding-left:20px;margin:0">
<li><a href="/staff/departments.php">Abteilungen</a> anlegen – jedes Ticket gehört zu genau einer.</li>
<li><a href="/staff/settings.php?tab=email">E-Mail-Versand (SMTP)</a> einrichten und eine Test-Mail senden.</li>
<li><a href="/staff/imap_accounts.php">Postfach für den E-Mail-Abruf</a> einrichten und testen.</li>
<li><a href="/staff/settings.php?tab=cron">Automatisierung (Cron-Jobs)</a> prüfen.</li>
<li><a href="/staff/staff_manage.php">Mitarbeiter</a> anlegen und Rollen vergeben; Administratoren sollten 2FA oder einen Passkey nutzen.</li>
<li><a href="/staff/security_check.php">Sicherheitsprüfung</a> ausführen und <a href="/staff/backup.php">Backups</a> einrichten.</li>
</ol>
</div>
<div class="card" style="max-width:860px;margin-bottom:20px">
<h3 style="margin-top:0">Wenn etwas nicht funktioniert</h3>
<table style="width:100%;font-size:.9rem">
<tr><td style="padding:6px 8px 6px 0;width:42%"><strong>Eine automatische Mail kommt nicht an</strong></td><td><a href="/staff/audit_log.php">Admin-Protokoll</a> (Fehlermeldung des Anbieters), <a href="/staff/mail_queue.php">Mail-Warteschlange</a>, Test-Mail unter Einstellungen → E-Mail.</td></tr>
<tr><td style="padding:6px 8px 6px 0"><strong>E-Mails werden nicht zu Tickets</strong></td><td><a href="/staff/imap_accounts.php">Postfächer</a> → „Testen“ zeigt die Meldung des Mail-Servers.</td></tr>
<tr><td style="padding:6px 8px 6px 0"><strong>Rotes oder gelbes Banner oben</strong></td><td>Störungsmeldung der Überwachung (Postfach, Abruf, Versand). Details unter <a href="/staff/email_addresses.php">E-Mail-Adressen</a>.</td></tr>
<tr><td style="padding:6px 8px 6px 0"><strong>„Datenbank veraltet“</strong></td><td><a href="/staff/update.php">System-Update</a> → „Datenbank aktualisieren“.</td></tr>
<tr><td style="padding:6px 8px 6px 0"><strong>Ein Plugin macht Probleme</strong></td><td>Unter <a href="/staff/plugins.php">Plugins</a> deaktivieren; geht die Seite nicht mehr auf, die Datei <code>plugins/.disabled</code> anlegen.</td></tr>
<tr><td style="padding:6px 8px 6px 0"><strong>Ein Mitarbeiter ist gesperrt oder hat sein Gerät verloren</strong></td><td><a href="/staff/staff_manage.php">Mitarbeiter</a> → Menü ⋯: „Sperre aufheben“, „Überall abmelden“, „Passkeys entfernen“.</td></tr>
<tr><td style="padding:6px 8px 6px 0"><strong>Anmeldungen und Sperren ansehen</strong></td><td><a href="/staff/login_log.php">Anmelde-Wächter</a> mit Protokoll und Einstellungen (auch Passkeys ein- und ausschalten).</td></tr>
</table>
</div>
<div class="card" style="max-width:860px">
<h3 style="margin-top:0">Diese Installation</h3>
<table style="font-size:.9rem">
<tr><td style="padding:3px 18px 3px 0;color:var(--muted)">DeskHub-Version</td><td><?= e(DESKHUB_VERSION) ?></td></tr>
<tr><td style="padding:3px 18px 3px 0;color:var(--muted)">PHP</td><td><?= e(PHP_VERSION) ?></td></tr>
<tr><td style="padding:3px 18px 3px 0;color:var(--muted)">Website-URL</td><td><?= e(base_url()) ?></td></tr>
</table>
</div>
<?php require __DIR__ . '/_footer.php'; ?>