From e00528d9c8f6adc66f3e3368ef0929dd6c8e4cb4 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 15 Apr 2024 10:55:24 -0700 Subject: [PATCH] add verbose option for getting user passwords --- panel/classes/Panel/Vhost/Users.php | 4 ++-- panel/classes/Panel/Vhost/Vhosts.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panel/classes/Panel/Vhost/Users.php b/panel/classes/Panel/Vhost/Users.php index 61bf938..589e9d4 100644 --- a/panel/classes/Panel/Vhost/Users.php +++ b/panel/classes/Panel/Vhost/Users.php @@ -18,7 +18,7 @@ class Users extends \Panel\Vhost { if ($f3->exists('PARAMS.username')) { $username = $f3->get('PARAMS.username'); - if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -c", FALSE))) { + if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -v -c", FALSE))) { if ($users_array[0]['passwd'] == "") { $users_array[0]['passwd'] = '(unavailable)'; } @@ -28,7 +28,7 @@ class Users extends \Panel\Vhost { } } } else { - if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -c", FALSE))) { + if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -v -c", FALSE))) { if (is_array($users_array) && count($users_array) > 0) { foreach ($users_array as $k=>$user_array) { if ($user_array['passwd'] == "") { diff --git a/panel/classes/Panel/Vhost/Vhosts.php b/panel/classes/Panel/Vhost/Vhosts.php index e208beb..ac1a982 100644 --- a/panel/classes/Panel/Vhost/Vhosts.php +++ b/panel/classes/Panel/Vhost/Vhosts.php @@ -57,7 +57,7 @@ class Vhosts extends \Panel\Vhost { } /* get user info */ $username = $vhost_array[0]['username']; - if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -c", FALSE))) { + if ($users_array = $f3->call('\Panel::vGet', array("vhost-user-get.sh -u $username -v -c", FALSE))) { if ($users_array[0]['passwd'] == "") { $users_array[0]['passwd'] = '(unavailable)'; }