feat: add active users script #8

Merged
v0id1st merged 2 commits from io/helpers:main into main 2026-06-23 00:51:52 +02:00
Showing only changes of commit 9381838e4f - Show all commits

View File

@@ -2,7 +2,7 @@
<?php
$jsonFile = '/opt/html/online.json';
$activeUsers = shell_exec("who | awk '{print $1}' | sort | uniq");
$activeUsers = shell_exec("ps -eo user=,comm= | awk '$2 ~ /sshd/ {print $1}' | sort -u");
$activeUsersArray = array_filter(explode("\n", $activeUsers));