|
|
|
|
|
|
|
|
$ls = scandir($this->folder); |
|
|
$ls = scandir($this->folder); |
|
|
foreach ($ls as $k=>$f) { |
|
|
foreach ($ls as $k=>$f) { |
|
|
if (!strncmp($f,'.',1)) continue; // ignore hidden files |
|
|
if (!strncmp($f,'.',1)) continue; // ignore hidden files |
|
|
|
|
|
|
|
|
$ex=explode(".", $f); |
|
|
$ex=explode(".", $f); |
|
|
$ext=strtolower(end($ex)); |
|
|
$ext=strtolower(end($ex)); |
|
|
if (array_key_exists($ex[0],$this->domains)) { |
|
|
if (array_key_exists($ex[0],$this->domains)) { |
|
|
|
|
|
|
|
|
$str |
|
|
$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) { |
|
|
foreach($this->structs[$domain_key]['csv'] as $key=>$file) { |
|
|
$csv = new \Modules\Ography($file,TRUE); |
|
|
$csv = new \Modules\Ography($file,TRUE); |