HEX
Server: LiteSpeed
System: Linux server.tenvelop.com 5.14.0-611.16.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 22 03:40:39 EST 2025 x86_64
User: livspacetenvelop (1024)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/cpguard/app/scripts/interworx_user_list.php
#!/opt/cpguard/cpg-php-fpm/bin/php
<?php

## DO NOT CUSTOMISE THIS FILE
## This file may be updated during software update
## Please make a copy of the file for customising it


$json = shell_exec("/usr/bin/nodeworx -u -n -c Siteworx -a listAccounts --output-style json");
$json = json_decode($json);

$result = [];

if (is_array($json)) {
    foreach ($json as $item) {
        $result[] = [
            'user' => $item->uniqname,
            'email' => $item->email
        ];
    }
}

echo json_encode($result, JSON_PRETTY_PRINT);