sort users.php alphabetically

This commit is contained in:
Arya Kiran 2022-10-25 17:34:03 +05:30
parent 165ac3c835
commit 82e8f7341a
No known key found for this signature in database
GPG Key ID: 3A6EA2D0EE314EEF
1 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,14 @@
$onlist = array();
$users = explode(' ', shell_exec('users /sshfs/var/run/utmp'));
$handle = opendir('/sshfs/home');
//$handle = opendir('/sshfs/home');
if ($handle = opendir('/sshfs/home')) {
$files = array();
while ($files[] = readdir($dir));
sort($files);
closedir($handle);
}
while (($subdir = readdir($handle)) !== false) {
$online = '<b><span class=';
if ($subdir != '.' && $subdir != '..') {