\n"; # Use the find command &switch_user(); open(FIND, "find ".quotemeta($in{'search'})." -name ". quotemeta($config{'htaccess'})." -print 2>/dev/null |"); while($f = ) { chop($f); if ($got{$f}) { print &text('search_already', "$f"),"\n"; } elsif (!open(TEST, $f)) { print &text('search_open', "$f", $!),"\n"; } else { $conf = &foreign_call($apachemod, "get_htaccess_config", $f); $currfile = &foreign_call($apachemod, "find_directive", "AuthUserFile", $conf, 1); $require = &foreign_call($apachemod, "find_directive", "require", $conf, 1); if ($currfile && $require) { print &text('search_found', "$f", "$currfile"),"\n"; local $d = $f; $d =~ s/\/$config{'htaccess'}$//; push(@dirs, [ $d, $currfile ]); } else { print &text('search_noprot', "$f"),"\n"; } } } close(FIND); print "$text{'search_done'}\n"; &switch_back(); &lock_file($directories_file); &save_directories(\@dirs); &unlock_file($directories_file); &webmin_log("search", $in{'search'}); &ui_print_footer("", $text{'index_return'});
$text{'search_done'}
\n"; &switch_back(); &lock_file($directories_file); &save_directories(\@dirs); &unlock_file($directories_file); &webmin_log("search", $in{'search'}); &ui_print_footer("", $text{'index_return'});