diff --git a/map-poller.php b/map-poller.php index 0d6a355..e20bc22 100755 --- a/map-poller.php +++ b/map-poller.php @@ -61,7 +61,9 @@ { while (($file = readdir($dh)) !== false) { - if ("." != $file && ".." != $file && ".htaccess" != $file && "index.php" != $file) + $allowed = array('conf'); + $ext = pathinfo($file, PATHINFO_EXTENSION); + if (!in_array($ext, $allowed)) { $cmd = "php ./weathermap.php --config $conf_dir/$file --base-href $basehref";