|
|
@@ -70,6 +70,7 @@ class FilesInFolders { |
|
|
|
$ls = scandir($this->folder); |
|
|
|
foreach ($ls as $k=>$f) { |
|
|
|
if (!strncmp($f,'.',1)) continue; // ignore hidden files |
|
|
|
|
|
|
|
$ex=explode(".", $f); |
|
|
|
$ext=strtolower(end($ex)); |
|
|
|
if (array_key_exists($ex[0],$this->domains)) { |
|
|
@@ -137,10 +138,12 @@ class FilesInFolders { |
|
|
|
$str |
|
|
|
); |
|
|
|
} |
|
|
|
foreach($this->structs[$domain_key]['pic'] as $key=>$file) { |
|
|
|
$this->content[$domain][$key] = sprintf( |
|
|
|
"<img class=\"direct\" src=\"/$file\" />" |
|
|
|
); |
|
|
|
if (false) { // TODO: make this configurable in main.cfg |
|
|
|
foreach($this->structs[$domain_key]['pic'] as $key=>$file) { |
|
|
|
$this->content[$domain][$key] = sprintf( |
|
|
|
"<img class=\"direct\" src=\"/$file\" />" |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
foreach($this->structs[$domain_key]['csv'] as $key=>$file) { |
|
|
|
$csv = new \Modules\Ography($file,TRUE); |