⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
virtual-server
/
View File Name :
fixperms.cgi
#!/usr/bin/perl # Fix permissions on selected domains require './virtual-server-lib.pl'; &ReadParse(); &error_setup($text{'fixperms_err'}); &can_edit_templates() || &error($text{'fixperms_ecannot'}); # Check and parse inputs if ($in{'servers_def'}) { @doms = grep { $_->{'dir'} } &list_domains(); } else { foreach $id (split(/\0/, $in{'servers'})) { $d = &get_domain($id); if ($d) { push(@doms, $d); if ($in{'subservers'}) { push(@doms, &get_domain_by("parent", $d->{'id'})); } } } } @doms = grep { !$_->{'parent'} } @doms; @doms || &error($text{'fixperms_edoms'}); &ui_print_header(undef, $text{'fixperms_title'}, ""); foreach $d (@doms) { &$first_print(&text('fixperms_dom', &show_domain_name($d))); if (!$d->{'dir'}) { &$second_print($text{'fixperms_edirmiss'}); } else { my (@changed_files) = &set_home_ownership($d); if (@changed_files) { my $details_body; foreach my $changed (@changed_files) { $changed->[0] =~ s/^$d->{'home'}\///; $details_body .= &text('fixperms_details', &html_escape($changed->[1]), &html_escape($changed->[2]), &html_escape($changed->[0])). "
"; } &$second_print( &ui_details({ 'title' => $text{'fixperms_oklist'}, 'content' => $details_body, 'class' =>'inline', 'html' => 1}) ); } else { &$second_print($text{'setup_done'}); } } } &ui_print_footer("", $text{'index_return'}, "edit_newvalidate.cgi?mode=fix", $text{'newvalidate_return'});