Re-designed the print jobs page to allow several to be cancelled at once, using the standard Webmin table with checkboxes.
---- Changes since 1.440 ----
Show the date and time a job was submitted on systems using CUPS.
+---- Changes since 1.510 ----
+Changed the default PPD driver directory on Debian to include /usr/share/ppd as well.
local $findver = &backquote_command("find --version 2>&1", 1);
local $flag = $findver =~ /GNU\s+find\s+version\s+([0-9\.]+)/i && $1 >= 4.2 ?
"-L" : "";
-&open_execute_command(FIND, "find $flag ".quotemeta($config{'model_path'}).
- " -type f -print", 1, 1);
-while(<FIND>) {
- chop;
- /([^\/]+)$/;
- next if ($donefile{$1}++);
- push(@files, $_);
- }
-close(FIND);
+foreach my $mp (split(/\s+/, $config{'model_path'})) {
+ &open_execute_command(FIND, "find $flag ".quotemeta($mp).
+ " -type f -print", 1, 1);
+ while(<FIND>) {
+ chop;
+ /([^\/]+)$/;
+ next if ($donefile{$1}++);
+ push(@files, $_);
+ }
+ close(FIND);
+ }
&read_file("$module_config_directory/ppd-cache", \%cache);
foreach $f (@files) {
if (!defined($cache{$f})) {