Using a whitelist for "leistungsschutzrecht"
parent
1b7dcbd0bb
commit
59229fa7d5
|
@ -71,9 +71,13 @@ function leistungsschutzrecht_fetchsites() {
|
||||||
$sitelist = fetch_url($url);
|
$sitelist = fetch_url($url);
|
||||||
$siteurls = explode(',', $sitelist);
|
$siteurls = explode(',', $sitelist);
|
||||||
|
|
||||||
|
$whitelist = array('tagesschau.de', 'heute.de', 'wdr.de');
|
||||||
|
|
||||||
$sites = array();
|
$sites = array();
|
||||||
foreach ($siteurls AS $site) {
|
foreach ($siteurls AS $site) {
|
||||||
$sites[$site] = $site;
|
if (!in_array($site, $whitelist)) {
|
||||||
|
$sites[$site] = $site;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// I would prefer parsing the list from the original site, but I haven't found a list.
|
// I would prefer parsing the list from the original site, but I haven't found a list.
|
||||||
|
|
Loading…
Reference in New Issue