diff options
-rw-r--r-- | mlmmj-webarchiver/index.php.newlist | 2 | ||||
-rw-r--r-- | mlmmj-webarchiver/search.php.newlist | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mlmmj-webarchiver/index.php.newlist b/mlmmj-webarchiver/index.php.newlist index e760230..425d4b2 100644 --- a/mlmmj-webarchiver/index.php.newlist +++ b/mlmmj-webarchiver/index.php.newlist @@ -3,7 +3,7 @@ $path = getcwd(); $mlist = substr(strrchr($path, "/"), 1); $handle = @opendir($path) or die("Unable to open $path"); while($file = readdir($handle)) { - if(is_dir($path . "/" . $file) && $file != "." && $file != "..") { + if(is_dir($path . "/" . $file) && $file != "." && $file != ".." && $file != "images" && $file != "style") { $files[] = $file; } } diff --git a/mlmmj-webarchiver/search.php.newlist b/mlmmj-webarchiver/search.php.newlist index 1606580..c4ecbed 100644 --- a/mlmmj-webarchiver/search.php.newlist +++ b/mlmmj-webarchiver/search.php.newlist @@ -31,13 +31,13 @@ $html=array(); $count=0; $maxresults=##MAX_RESULTS##; - exec("find -type f -name '0*.html' | xargs egrep -roi '$words' | perl -pe 's/:.*//' | sort | uniq",&$output); + exec("find -type f -name '0*.html' | xargs egrep -roi '$words' | perl -pe 's/:.*//' | sort | uniq",$output); while(isset($output[$count]) && $count<$maxresults) { $file=$output[$count++]; $content=file_get_contents($file); $matches=array(); - if (preg_match('/<em>Subject<\/em>: ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>: ([^<]*)<\/li>/',$content,&$matches)) + if (preg_match('/<em>Subject<\/em>: ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>: ([^<]*)<\/li>/',$content,$matches)) { $html[]="<li><a href='$file'>$matches[1]</a>, $matches[2], $matches[3]</li>"; } |