X7ROOT File Manager
Current Path:
/usr/libexec/webmin/virtualmin-htpasswd
usr
/
libexec
/
webmin
/
virtualmin-htpasswd
/
📁
..
📄
CHANGELOG
(404 B)
📄
LICENSE
(34.32 KB)
📄
add.cgi
(3.14 KB)
📄
add_form.cgi
(1.52 KB)
📄
cgi_args.pl
(279 B)
📄
create-protected-directory.pl
(4.78 KB)
📄
create-protected-user.pl
(3.63 KB)
📄
delete-protected-directory.pl
(3.35 KB)
📄
delete-protected-user.pl
(2.64 KB)
📄
delete.cgi
(1.82 KB)
📄
find.cgi
(1.79 KB)
📁
help
📄
index.cgi
(2.42 KB)
📄
install-type
(4 B)
📁
lang
📄
list-protected-directories.pl
(3.01 KB)
📄
list-protected-users.pl
(2.99 KB)
📄
module.info
(147 B)
📄
module.info.af.auto
(34 B)
📄
module.info.ar.auto
(49 B)
📄
module.info.be.auto
(41 B)
📄
module.info.bg.auto
(65 B)
📄
module.info.ca.auto
(44 B)
📄
module.info.cs.auto
(42 B)
📄
module.info.da.auto
(40 B)
📄
module.info.de.auto
(45 B)
📄
module.info.el.auto
(79 B)
📄
module.info.es.auto
(45 B)
📄
module.info.eu.auto
(43 B)
📄
module.info.fa.auto
(58 B)
📄
module.info.fi
(40 B)
📄
module.info.fr.auto
(47 B)
📄
module.info.he.auto
(45 B)
📄
module.info.hr.auto
(41 B)
📄
module.info.hu.auto
(40 B)
📄
module.info.it.auto
(41 B)
📄
module.info.ja.auto
(43 B)
📄
module.info.ko.auto
(39 B)
📄
module.info.lt.auto
(45 B)
📄
module.info.lv.auto
(41 B)
📄
module.info.ms.auto
(40 B)
📄
module.info.mt.auto
(43 B)
📄
module.info.nl
(42 B)
📄
module.info.no
(40 B)
📄
module.info.pl.auto
(39 B)
📄
module.info.pt.auto
(45 B)
📄
module.info.pt_BR.auto
(48 B)
📄
module.info.ro.auto
(40 B)
📄
module.info.ru.auto
(57 B)
📄
module.info.sk.auto
(40 B)
📄
module.info.sl.auto
(41 B)
📄
module.info.sv.auto
(38 B)
📄
module.info.th.auto
(111 B)
📄
module.info.tr.auto
(38 B)
📄
module.info.uk.auto
(63 B)
📄
module.info.ur.auto
(72 B)
📄
module.info.vi.auto
(41 B)
📄
module.info.zh.auto
(37 B)
📄
module.info.zh_TW.auto
(40 B)
📄
virtual_feature.pl
(7.38 KB)
📄
virtualmin-htpasswd-lib.pl
(2.03 KB)
Editing: delete.cgi
#!/usr/bin/perl # Remove protection for several directories use strict; use warnings; our (%text, %in); require './virtualmin-htpasswd-lib.pl'; &ReadParse(); &error_setup($text{'delete_err'}); # Validate inputs my @d = split(/\0/, $in{'d'}); @d || &error($text{'delete_enone'}); my $d; if ($in{'dom'}) { $d = &virtual_server::get_domain($in{'dom'}); &virtual_server::can_edit_domain($d) || &error($text{'index_ecannot'}); } my @dirs = &htaccess_htpasswd::list_directories(); my $htusers = $htaccess_htpasswd::config{'htpasswd'} || "htusers"; foreach my $path (@d) { &can_directory($path, $d) || &error($text{'delete_ecannot'}); my ($dir) = grep { $_->[0] eq $path } @dirs; if ($dir) { # Remove protection directives no warnings "once"; my $file = "$dir->[0]/$htaccess_htpasswd::config{'htaccess'}"; &lock_file($file); my $conf = &apache::get_htaccess_config($file); &apache::save_directive("AuthUserFile", [ ], $conf, $conf); &apache::save_directive("AuthType", [ ], $conf, $conf); &apache::save_directive("AuthName", [ ], $conf, $conf); &apache::save_directive("require", [ ], $conf, $conf); my @files = &apache::find_directive_struct("Files", $conf); @files = grep { $_->{'value'} ne $htusers } @files; &apache::save_directive("Files", \@files, $conf, $conf); if ($main::file_cache{$file}) { &virtual_server::write_as_domain_user($d, sub { &flush_file_lines($file) }); } use warnings "once"; # Remove whole file if empty if (&empty_file($file)) { &virtual_server::unlink_logged_as_domain_user( $d, $file); } &unlock_file($file); # Remove htusers file if (&can_directory($dir->[1], $d)) { &virtual_server::unlink_logged_as_domain_user( $d, $dir->[1]); } @dirs = grep { $_ ne $dir } @dirs; } } &htaccess_htpasswd::save_directories(\@dirs); &redirect("index.cgi?dom=$in{'dom'}");
Upload File
Create Folder