/[Search-Estraier]/trunk/scripts/est-spider
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/scripts/est-spider

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 76 by dpavlin, Sat Jan 7 23:46:10 2006 UTC revision 77 by dpavlin, Mon Jan 16 21:34:14 2006 UTC
# Line 219  sub file { Line 219  sub file {
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);

Legend:
Removed from v.76  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.26