module
This commit is contained in:
@@ -59,6 +59,12 @@ if (!$host) {
|
||||
$pdo->prepare('UPDATE ' . $table('sessions') . ' SET last_used_at = ' . $nowSql . ' WHERE id = :id')
|
||||
->execute(['id' => (int)$session['id']]);
|
||||
|
||||
$commandText = (string)($session['command_text'] ?? '');
|
||||
if ($commandText !== '') {
|
||||
$pdo->prepare('UPDATE ' . $table('sessions') . ' SET command_text = NULL WHERE id = :id')
|
||||
->execute(['id' => (int)$session['id']]);
|
||||
}
|
||||
|
||||
echo json_encode([
|
||||
'ok' => true,
|
||||
'host' => [
|
||||
@@ -70,5 +76,6 @@ echo json_encode([
|
||||
'key_path' => (string)($host['key_path'] ?? ''),
|
||||
'password' => (string)($host['password'] ?? ''),
|
||||
],
|
||||
'command' => $commandText,
|
||||
]);
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user