console
This commit is contained in:
@@ -4,6 +4,8 @@ $base = realpath(__DIR__ . '/../assets');
|
||||
$map = [
|
||||
'pi_control.css' => $base . '/pi_control.css',
|
||||
'console.js' => $base . '/console.js',
|
||||
'hosts.js' => $base . '/hosts.js',
|
||||
'commands.js' => $base . '/commands.js',
|
||||
];
|
||||
|
||||
if (!isset($map[$file])) {
|
||||
|
||||
@@ -5,35 +5,79 @@ $table = fn(string $name) => module_fn('pi_control', 'table', $name);
|
||||
$assets = app()->assets();
|
||||
if ($assets) {
|
||||
$assets->addStyle('/module/pi_control/asset?file=pi_control.css');
|
||||
$assets->addScript('/module/pi_control/asset?file=commands.js', 'footer', true);
|
||||
}
|
||||
|
||||
$notice = null;
|
||||
$error = null;
|
||||
|
||||
if (isset($_GET['reorder_json'])) {
|
||||
require_admin();
|
||||
$payload = json_decode(file_get_contents('php://input'), true);
|
||||
$order = is_array($payload['order'] ?? null) ? $payload['order'] : [];
|
||||
if ($order) {
|
||||
$stmt = $pdo->prepare('UPDATE ' . $table('commands') . ' SET sort_order = :sort_order WHERE id = :id');
|
||||
$pos = 1;
|
||||
foreach ($order as $id) {
|
||||
$stmt->execute([
|
||||
'sort_order' => $pos++,
|
||||
'id' => (int)$id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode(['ok' => true]);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
require_admin();
|
||||
$deleteId = (int)($_POST['delete_id'] ?? 0);
|
||||
$editId = (int)($_POST['id'] ?? 0);
|
||||
$label = trim((string)($_POST['label'] ?? ''));
|
||||
$command = trim((string)($_POST['command'] ?? ''));
|
||||
$adminOnly = !empty($_POST['admin_only']) ? 1 : 0;
|
||||
$timeoutSec = (int)($_POST['timeout_sec'] ?? 0);
|
||||
|
||||
if ($label === '' || $command === '') {
|
||||
$error = 'Bitte Label und Command angeben.';
|
||||
if ($deleteId > 0) {
|
||||
$stmt = $pdo->prepare('DELETE FROM ' . $table('commands') . ' WHERE id = :id');
|
||||
$stmt->execute(['id' => $deleteId]);
|
||||
$notice = 'Befehl gelöscht.';
|
||||
} else {
|
||||
$stmt = $pdo->prepare(
|
||||
'INSERT INTO ' . $table('commands') . ' (label, command, admin_only, timeout_sec) VALUES (:label, :command, :admin_only, :timeout_sec)'
|
||||
);
|
||||
$stmt->execute([
|
||||
'label' => $label,
|
||||
'command' => $command,
|
||||
'admin_only' => $adminOnly,
|
||||
'timeout_sec' => $timeoutSec > 0 ? $timeoutSec : null,
|
||||
]);
|
||||
$notice = 'Befehl gespeichert.';
|
||||
if ($label === '' || $command === '') {
|
||||
$error = 'Bitte Label und Command angeben.';
|
||||
} else {
|
||||
if ($editId > 0) {
|
||||
$stmt = $pdo->prepare(
|
||||
'UPDATE ' . $table('commands') . ' SET label = :label, command = :command, admin_only = :admin_only, timeout_sec = :timeout_sec WHERE id = :id'
|
||||
);
|
||||
$stmt->execute([
|
||||
'id' => $editId,
|
||||
'label' => $label,
|
||||
'command' => $command,
|
||||
'admin_only' => $adminOnly,
|
||||
'timeout_sec' => $timeoutSec > 0 ? $timeoutSec : null,
|
||||
]);
|
||||
$notice = 'Befehl aktualisiert.';
|
||||
} else {
|
||||
$nextSort = (int)$pdo->query('SELECT COALESCE(MAX(sort_order), 0) + 1 FROM ' . $table('commands'))->fetchColumn();
|
||||
$stmt = $pdo->prepare(
|
||||
'INSERT INTO ' . $table('commands') . ' (label, command, admin_only, timeout_sec, sort_order) VALUES (:label, :command, :admin_only, :timeout_sec, :sort_order)'
|
||||
);
|
||||
$stmt->execute([
|
||||
'label' => $label,
|
||||
'command' => $command,
|
||||
'admin_only' => $adminOnly,
|
||||
'timeout_sec' => $timeoutSec > 0 ? $timeoutSec : null,
|
||||
'sort_order' => $nextSort,
|
||||
]);
|
||||
$notice = 'Befehl gespeichert.';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$commands = $pdo->query('SELECT * FROM ' . $table('commands') . ' ORDER BY id DESC')->fetchAll(PDO::FETCH_ASSOC);
|
||||
$commands = $pdo->query('SELECT * FROM ' . $table('commands') . ' ORDER BY COALESCE(sort_order, id) ASC, id ASC')->fetchAll(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
<div class="card">
|
||||
<div class="pill">Pi Control</div>
|
||||
@@ -53,7 +97,8 @@ $commands = $pdo->query('SELECT * FROM ' . $table('commands') . ' ORDER BY id DE
|
||||
<div class="grid" style="margin-top:1rem;">
|
||||
<div class="card" style="background:var(--panel-2);">
|
||||
<strong>Neuer Befehl</strong>
|
||||
<form method="post" class="form-grid" style="margin-top:.75rem;">
|
||||
<form method="post" class="form-grid" style="margin-top:.75rem;" data-command-form>
|
||||
<input type="hidden" name="id" value="">
|
||||
<input type="text" name="label" placeholder="Label" required>
|
||||
<textarea name="command" rows="4" placeholder="Command" required></textarea>
|
||||
<input type="number" name="timeout_sec" placeholder="Timeout (Sek., optional)">
|
||||
@@ -61,39 +106,56 @@ $commands = $pdo->query('SELECT * FROM ' . $table('commands') . ' ORDER BY id DE
|
||||
<input type="checkbox" name="admin_only" value="1">
|
||||
Nur Admin
|
||||
</label>
|
||||
<button class="cta-button" type="submit">Speichern</button>
|
||||
<div style="display:flex; gap:10px; flex-wrap:wrap;">
|
||||
<button class="cta-button" type="submit" data-command-submit>Speichern</button>
|
||||
<button class="nav-link" type="button" data-command-cancel>Zurücksetzen</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card" style="background:var(--panel-2);">
|
||||
<strong>Vorhandene Befehle</strong>
|
||||
<div style="margin-top:.75rem; overflow:auto;">
|
||||
<table class="table" style="min-width:560px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Label</th>
|
||||
<th>Command</th>
|
||||
<th>Timeout</th>
|
||||
<th>Admin</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!$commands): ?>
|
||||
<tr><td colspan="4" class="muted">Keine Befehle vorhanden.</td></tr>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($commands as $c): ?>
|
||||
<tr>
|
||||
<td><?= e($c['label'] ?? '') ?></td>
|
||||
<td class="muted" style="max-width:360px;">
|
||||
<?php if (!$commands): ?>
|
||||
<div class="muted" style="margin-top:.75rem;">Keine Befehle vorhanden.</div>
|
||||
<?php else: ?>
|
||||
<ul class="command-list" data-command-list style="margin-top:.75rem;">
|
||||
<?php foreach ($commands as $c): ?>
|
||||
<li class="command-item" draggable="true"
|
||||
data-command-id="<?= e((string)$c['id']) ?>"
|
||||
data-label="<?= e((string)($c['label'] ?? '')) ?>"
|
||||
data-command="<?= e((string)($c['command'] ?? '')) ?>"
|
||||
data-timeout="<?= e((string)($c['timeout_sec'] ?? '')) ?>"
|
||||
data-admin="<?= !empty($c['admin_only']) ? '1' : '0' ?>">
|
||||
<div class="command-drag">⋮⋮</div>
|
||||
<div class="command-body">
|
||||
<div class="command-title">
|
||||
<strong><?= e($c['label'] ?? '') ?></strong>
|
||||
<?php if (!empty($c['admin_only'])): ?>
|
||||
<span class="pill">Admin</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="muted" style="margin-top:4px;">
|
||||
<code><?= e($c['command'] ?? '') ?></code>
|
||||
</td>
|
||||
<td><?= !empty($c['timeout_sec']) ? e((string)$c['timeout_sec']) . 's' : 'default' ?></td>
|
||||
<td><?= !empty($c['admin_only']) ? 'ja' : 'nein' ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="muted" style="margin-top:4px;">
|
||||
Timeout: <?= !empty($c['timeout_sec']) ? e((string)$c['timeout_sec']) . 's' : 'default' ?>
|
||||
</div>
|
||||
</div>
|
||||
<details class="action-menu">
|
||||
<summary>☰</summary>
|
||||
<div class="action-menu-panel">
|
||||
<button class="nav-link" type="button" data-command-edit>Bearbeiten</button>
|
||||
<form method="post" onsubmit="return confirm('Befehl wirklich löschen?')">
|
||||
<input type="hidden" name="delete_id" value="<?= e((string)$c['id']) ?>">
|
||||
<button class="nav-link" type="submit">Löschen</button>
|
||||
</form>
|
||||
</div>
|
||||
</details>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<p class="muted" style="margin-top:.5rem;">Reihenfolge per Drag & Drop ändern.</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@ $table = fn(string $name) => module_fn('pi_control', 'table', $name);
|
||||
$assets = app()->assets();
|
||||
if ($assets) {
|
||||
$assets->addStyle('/module/pi_control/asset?file=pi_control.css');
|
||||
$assets->addScript('/module/pi_control/asset?file=hosts.js', 'footer', true);
|
||||
}
|
||||
|
||||
$notice = null;
|
||||
@@ -12,6 +13,8 @@ $error = null;
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
require_admin();
|
||||
$deleteId = (int)($_POST['delete_id'] ?? 0);
|
||||
$editId = (int)($_POST['id'] ?? 0);
|
||||
$name = trim((string)($_POST['name'] ?? ''));
|
||||
$host = trim((string)($_POST['host'] ?? ''));
|
||||
$port = (int)($_POST['port'] ?? 22);
|
||||
@@ -19,27 +22,137 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$authType = trim((string)($_POST['auth_type'] ?? 'key'));
|
||||
$keyPath = trim((string)($_POST['key_path'] ?? ''));
|
||||
$password = trim((string)($_POST['password'] ?? ''));
|
||||
$imageUrl = trim((string)($_POST['image_url'] ?? ''));
|
||||
|
||||
if ($name === '' || $host === '' || $username === '') {
|
||||
$error = 'Bitte Name, Host und Benutzer angeben.';
|
||||
if ($deleteId > 0) {
|
||||
$stmt = $pdo->prepare('DELETE FROM ' . $table('hosts') . ' WHERE id = :id');
|
||||
$stmt->execute(['id' => $deleteId]);
|
||||
$notice = 'Host gelöscht.';
|
||||
} else {
|
||||
$stmt = $pdo->prepare(
|
||||
'INSERT INTO ' . $table('hosts') . ' (name, host, port, username, auth_type, key_path, password) VALUES (:name, :host, :port, :username, :auth_type, :key_path, :password)'
|
||||
);
|
||||
$stmt->execute([
|
||||
'name' => $name,
|
||||
'host' => $host,
|
||||
'port' => $port > 0 ? $port : 22,
|
||||
'username' => $username,
|
||||
'auth_type' => $authType !== '' ? $authType : 'key',
|
||||
'key_path' => $keyPath !== '' ? $keyPath : null,
|
||||
'password' => $password !== '' ? $password : null,
|
||||
]);
|
||||
$notice = 'Host gespeichert.';
|
||||
if ($name === '' || $host === '' || $username === '') {
|
||||
$error = 'Bitte Name, Host und Benutzer angeben.';
|
||||
} else {
|
||||
if ($editId > 0) {
|
||||
$stmt = $pdo->prepare('SELECT * FROM ' . $table('hosts') . ' WHERE id = :id LIMIT 1');
|
||||
$stmt->execute(['id' => $editId]);
|
||||
$existing = $stmt->fetch(PDO::FETCH_ASSOC) ?: [];
|
||||
$passwordToStore = $password !== '' ? $password : ($existing['password'] ?? null);
|
||||
$stmt = $pdo->prepare(
|
||||
'UPDATE ' . $table('hosts') . ' SET name = :name, host = :host, port = :port, username = :username, auth_type = :auth_type, key_path = :key_path, password = :password, image_url = :image_url WHERE id = :id'
|
||||
);
|
||||
$stmt->execute([
|
||||
'id' => $editId,
|
||||
'name' => $name,
|
||||
'host' => $host,
|
||||
'port' => $port > 0 ? $port : 22,
|
||||
'username' => $username,
|
||||
'auth_type' => $authType !== '' ? $authType : 'key',
|
||||
'key_path' => $keyPath !== '' ? $keyPath : null,
|
||||
'password' => $passwordToStore,
|
||||
'image_url' => $imageUrl !== '' ? $imageUrl : null,
|
||||
]);
|
||||
$notice = 'Host aktualisiert.';
|
||||
} else {
|
||||
$stmt = $pdo->prepare(
|
||||
'INSERT INTO ' . $table('hosts') . ' (name, host, port, username, auth_type, key_path, password, image_url) VALUES (:name, :host, :port, :username, :auth_type, :key_path, :password, :image_url)'
|
||||
);
|
||||
$stmt->execute([
|
||||
'name' => $name,
|
||||
'host' => $host,
|
||||
'port' => $port > 0 ? $port : 22,
|
||||
'username' => $username,
|
||||
'auth_type' => $authType !== '' ? $authType : 'key',
|
||||
'key_path' => $keyPath !== '' ? $keyPath : null,
|
||||
'password' => $password !== '' ? $password : null,
|
||||
'image_url' => $imageUrl !== '' ? $imageUrl : null,
|
||||
]);
|
||||
$notice = 'Host gespeichert.';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$hosts = $pdo->query('SELECT * FROM ' . $table('hosts') . ' ORDER BY id DESC')->fetchAll(PDO::FETCH_ASSOC);
|
||||
$settings = modules()->settings('pi_control');
|
||||
$strictHostKey = !empty($settings['terminal_strict_hostkey']);
|
||||
|
||||
function hostReachable(string $host, int $port): bool
|
||||
{
|
||||
$errno = 0;
|
||||
$errstr = '';
|
||||
$fp = @fsockopen($host, $port, $errno, $errstr, 1.2);
|
||||
if ($fp) {
|
||||
fclose($fp);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function runSshCommand(string $cmd, int $timeoutSec): int
|
||||
{
|
||||
$descriptors = [
|
||||
1 => ['pipe', 'w'],
|
||||
2 => ['pipe', 'w'],
|
||||
];
|
||||
$process = proc_open($cmd, $descriptors, $pipes);
|
||||
if (!is_resource($process)) {
|
||||
return 255;
|
||||
}
|
||||
stream_set_blocking($pipes[1], false);
|
||||
stream_set_blocking($pipes[2], false);
|
||||
$start = time();
|
||||
while (true) {
|
||||
$status = proc_get_status($process);
|
||||
if (!$status['running']) {
|
||||
$code = (int)$status['exitcode'];
|
||||
proc_close($process);
|
||||
return $code;
|
||||
}
|
||||
if (time() - $start > $timeoutSec) {
|
||||
proc_terminate($process, 9);
|
||||
proc_close($process);
|
||||
return 124;
|
||||
}
|
||||
usleep(100000);
|
||||
}
|
||||
}
|
||||
|
||||
function hostAuthOk(array $host, bool $strictHostKey): bool
|
||||
{
|
||||
$hostAddr = (string)($host['host'] ?? '');
|
||||
$user = (string)($host['username'] ?? '');
|
||||
$port = (int)($host['port'] ?? 22);
|
||||
$authType = (string)($host['auth_type'] ?? 'key');
|
||||
$keyPath = (string)($host['key_path'] ?? '');
|
||||
$password = (string)($host['password'] ?? '');
|
||||
if ($hostAddr === '' || $user === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
$opts = $strictHostKey
|
||||
? '-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/root/.ssh/known_hosts'
|
||||
: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null';
|
||||
$opts .= ' -o ConnectTimeout=2 -o NumberOfPasswordPrompts=1';
|
||||
|
||||
$target = escapeshellarg($user . '@' . $hostAddr);
|
||||
$cmd = 'ssh ' . $opts . ' -p ' . (int)$port . ' ';
|
||||
if ($authType === 'key' && $keyPath !== '') {
|
||||
$cmd .= '-i ' . escapeshellarg($keyPath) . ' -o BatchMode=yes ';
|
||||
} elseif ($authType === 'key') {
|
||||
$cmd .= '-o BatchMode=yes ';
|
||||
}
|
||||
$cmd .= $target . ' -- true';
|
||||
|
||||
if ($authType === 'pass') {
|
||||
if ($password === '') {
|
||||
return false;
|
||||
}
|
||||
$cmd = 'sshpass -p ' . escapeshellarg($password) . ' ' . $cmd;
|
||||
}
|
||||
|
||||
$exitCode = runSshCommand($cmd, 3);
|
||||
return $exitCode === 0;
|
||||
}
|
||||
?>
|
||||
<div class="card">
|
||||
<div class="pill">Pi Control</div>
|
||||
@@ -59,7 +172,8 @@ $hosts = $pdo->query('SELECT * FROM ' . $table('hosts') . ' ORDER BY id DESC')->
|
||||
<div class="grid" style="margin-top:1rem;">
|
||||
<div class="card form-card" style="background:var(--panel-2);">
|
||||
<strong>Neuer Host</strong>
|
||||
<form method="post" class="form-grid" style="margin-top:.75rem;">
|
||||
<form method="post" class="form-grid" style="margin-top:.75rem;" data-host-form>
|
||||
<input type="hidden" name="id" value="">
|
||||
<label class="form-field">
|
||||
<span class="muted">Name</span>
|
||||
<input type="text" name="name" placeholder="z.B. Wohnzimmer-Pi" required title="Eindeutiger Anzeigename für diesen Pi.">
|
||||
@@ -91,39 +205,66 @@ $hosts = $pdo->query('SELECT * FROM ' . $table('hosts') . ' ORDER BY id DESC')->
|
||||
<span class="muted">Passwort (optional)</span>
|
||||
<input type="password" name="password" placeholder="SSH-Passwort" title="Nur nutzen, wenn Auth-Typ = pass.">
|
||||
</label>
|
||||
<button class="cta-button" type="submit">Speichern</button>
|
||||
<label class="form-field">
|
||||
<span class="muted">Bild-URL (optional)</span>
|
||||
<input type="text" name="image_url" placeholder="https://..." title="Optionales Bild für die Host-Karte.">
|
||||
</label>
|
||||
<div style="display:flex; gap:10px; flex-wrap:wrap;">
|
||||
<button class="cta-button" type="submit" data-host-submit>Speichern</button>
|
||||
<button class="nav-link" type="button" data-host-cancel>Zurücksetzen</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card form-card" style="background:var(--panel-2);">
|
||||
<strong>Registrierte Hosts</strong>
|
||||
<div style="margin-top:.75rem; overflow:auto;">
|
||||
<table class="table" style="min-width:560px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Host</th>
|
||||
<th>User</th>
|
||||
<th>Port</th>
|
||||
<th>Auth</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!$hosts): ?>
|
||||
<tr><td colspan="5" class="muted">Keine Hosts vorhanden.</td></tr>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($hosts as $h): ?>
|
||||
<tr>
|
||||
<td><?= e($h['name'] ?? '') ?></td>
|
||||
<td><?= e($h['host'] ?? '') ?></td>
|
||||
<td><?= e($h['username'] ?? '') ?></td>
|
||||
<td><?= e((string)($h['port'] ?? 22)) ?></td>
|
||||
<td><?= e($h['auth_type'] ?? '') ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php if (!$hosts): ?>
|
||||
<div class="muted" style="margin-top:.75rem;">Keine Hosts vorhanden.</div>
|
||||
<?php else: ?>
|
||||
<div class="host-grid" style="margin-top:.75rem;">
|
||||
<?php foreach ($hosts as $h): ?>
|
||||
<?php
|
||||
$portVal = (int)($h['port'] ?? 22);
|
||||
$reachable = hostReachable((string)($h['host'] ?? ''), $portVal);
|
||||
$authOk = $reachable ? hostAuthOk($h, $strictHostKey) : false;
|
||||
$statusClass = !$reachable ? 'status-down' : ($authOk ? 'status-ok' : 'status-auth');
|
||||
?>
|
||||
<div class="host-card"
|
||||
data-host-id="<?= e((string)$h['id']) ?>"
|
||||
data-name="<?= e((string)($h['name'] ?? '')) ?>"
|
||||
data-host="<?= e((string)($h['host'] ?? '')) ?>"
|
||||
data-port="<?= e((string)($h['port'] ?? 22)) ?>"
|
||||
data-username="<?= e((string)($h['username'] ?? '')) ?>"
|
||||
data-auth="<?= e((string)($h['auth_type'] ?? 'key')) ?>"
|
||||
data-key-path="<?= e((string)($h['key_path'] ?? '')) ?>"
|
||||
data-image-url="<?= e((string)($h['image_url'] ?? '')) ?>">
|
||||
<div class="host-card-image"<?= !empty($h['image_url']) ? ' style="background-image:url(' . e((string)$h['image_url']) . ')"' : '' ?>>
|
||||
<div class="host-card-overlay"></div>
|
||||
</div>
|
||||
<div class="host-card-body">
|
||||
<div class="host-card-header">
|
||||
<div class="host-card-title">
|
||||
<span class="status-dot <?= $statusClass ?>"></span>
|
||||
<strong><?= e((string)($h['name'] ?? '')) ?></strong>
|
||||
</div>
|
||||
<details class="action-menu">
|
||||
<summary>☰</summary>
|
||||
<div class="action-menu-panel">
|
||||
<button class="nav-link" type="button" data-host-edit>Bearbeiten</button>
|
||||
<form method="post" onsubmit="return confirm('Host wirklich löschen?')">
|
||||
<input type="hidden" name="delete_id" value="<?= e((string)$h['id']) ?>">
|
||||
<button class="nav-link" type="submit">Löschen</button>
|
||||
</form>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
<div class="muted"><?= e((string)($h['host'] ?? '')) ?>:<?= e((string)($portVal ?: 22)) ?></div>
|
||||
<div class="muted"><?= e((string)($h['username'] ?? '')) ?> · <?= e((string)($h['auth_type'] ?? '')) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user