219 |
} else { |
} else { |
220 |
|
|
221 |
# return if (! -f $path || ! m/\.(html*|php|pl|txt|info|log|text)$/i); |
# return if (! -f $path || ! m/\.(html*|php|pl|txt|info|log|text)$/i); |
222 |
return unless (-f $path && $type =~ m/html/ || |
if (-f $path && $type =~ m/html/ || |
223 |
($type =~ m#text# && $path =~ m/\.(php|pl|txt|info|log|text)$/io) |
($type !~ m#text# && $path =~ m/\.(php|pl|txt|info|log|text)$/io) |
224 |
); |
) { |
225 |
|
dump_contents($db, "<title>$path</title> $type", $mtime, $path); |
226 |
|
} |
227 |
|
|
228 |
# skip index files |
# skip index files |
229 |
return if (m/index_[a-z]\.html*/i || m/index_symbol\.html*/i); |
return if (m/index_[a-z]\.html*/i || m/index_symbol\.html*/i); |