add verbose option for getting user passwords
This commit is contained in:
parent
5f856fe5ca
commit
e00528d9c8
|
@ -18,7 +18,7 @@ class Users extends \Panel\Vhost {
|
||||||
|
|
||||||
if ($f3->exists('PARAMS.username')) {
|
if ($f3->exists('PARAMS.username')) {
|
||||||
$username = $f3->get('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'] == "") {
|
if ($users_array[0]['passwd'] == "") {
|
||||||
$users_array[0]['passwd'] = '(unavailable)';
|
$users_array[0]['passwd'] = '(unavailable)';
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class Users extends \Panel\Vhost {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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) {
|
if (is_array($users_array) && count($users_array) > 0) {
|
||||||
foreach ($users_array as $k=>$user_array) {
|
foreach ($users_array as $k=>$user_array) {
|
||||||
if ($user_array['passwd'] == "") {
|
if ($user_array['passwd'] == "") {
|
||||||
|
|
|
@ -57,7 +57,7 @@ class Vhosts extends \Panel\Vhost {
|
||||||
}
|
}
|
||||||
/* get user info */
|
/* get user info */
|
||||||
$username = $vhost_array[0]['username'];
|
$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'] == "") {
|
if ($users_array[0]['passwd'] == "") {
|
||||||
$users_array[0]['passwd'] = '(unavailable)';
|
$users_array[0]['passwd'] = '(unavailable)';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user