Commit 813f608b authored by Aria's avatar Aria

file is read in@

parent 85475d75
......@@ -110,6 +110,7 @@ class UpdateKelkooFeed extends Command
return false;
}
}
echo "MD5 check of all archives successfull.\n";
return true;
}
......
......@@ -1101,6 +1101,7 @@ class MetaGer
}
}
$this->searchCheckProductSearch($request);
$this->searchCheckHostBlacklist($request);
$this->searchCheckDomainBlacklist($request);
$this->searchCheckUrlBlacklist();
......@@ -1127,6 +1128,22 @@ class MetaGer
}
}
private function searchCheckProductSearch($request)
{
$extractionPath = config_path() . "/KelkooFeeds/ExtractedFeeds/";
$filesInFeedDirectory = scandir($extractionPath);
$feedFileMatches = preg_grep("/[\w\d]*Catalog[\S.]*\.xml/i", $filesInFeedDirectory);
$feedFileContent = "";
foreach($feedFileMatches as $feedFile) {
$feedFileContent .= file_get_contents($extractionPath . $feedFile);
var_dump($feedFileContent);
}
//die(var_dump($feedFileMatches));
}
private function searchCheckHostBlacklist($request)
{
// matches '[... ]-site:test.de[ ...]'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment