D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
lve
/
modlscapi
/
utils
/
Filename :
getuserdomains.pm
back
Copy
#!/bin/sh eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;' if 0; #!/usr/bin/perl # Copyright (c) Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. BEGIN { unshift @INC, '/usr/local/cpanel', '/scripts'; } use strict; use Cpanel::DomainLookup (); use Data::Dumper; use Cpanel::Config::Users (); sub getdocrootlist_my { my $user = shift; # optional my %DOCROOTS = (); my $docroots_ref = Cpanel::DomainLookup::getdocroots($user); foreach my $domain ( keys %{$docroots_ref} ) { print $user, "\t",$domain, "\n"; } } my @users =Cpanel::Config::Users::getcpusers(); foreach my $user (@users) { getdocrootlist_my($user); }
Name
Size
Last Modified
Owner
Permissions
Actions
checkconfdutil.pm
2.536
KB
April 10 2025 3:29:31
root
0755
cpanel-delete-lve
1.928
KB
April 10 2025 3:29:31
root
0755
cpanel-hooks-lve
4.474
KB
April 10 2025 3:29:31
root
0755
cpanel-make-lve
0.961
KB
April 10 2025 3:29:31
root
0755
cpanel_hooks_manage.py
3.498
KB
April 10 2025 3:29:31
root
0755
getdocroot.pm
2.822
KB
April 10 2025 3:29:31
root
0755
getdocroots.pm
1.26
KB
April 10 2025 3:29:31
root
0755
getuserdomains.pm
1.354
KB
April 10 2025 3:29:31
root
0755
inserphpconf.pm
2.534
KB
April 10 2025 3:29:31
root
0755
lsapi-cache
1.041
KB
April 10 2025 3:29:32
root
0755
2017 © D7net | D704T team