| version 1.2, 2005/09/08 23:08:14 |
version 1.3, 2005/10/18 12:50:30 |
|
|
| # 2005-07-19 - created |
# 2005-07-19 - created |
| # |
# |
| |
|
| # $Platon: web-apps/fastcgi-gallery/_modules/gallery.pm,v 1.1 2005/09/07 13:36:47 rajo Exp $ |
# $Platon: web-apps/fastcgi-gallery/_modules/gallery.pm,v 1.2 2005/09/08 23:08:14 rajo Exp $ |
| |
|
| package gallery; |
package gallery; |
| |
|
| Line 127 sub handler { # {{{ |
|
| Line 127 sub handler { # {{{ |
|
| |
|
| my $top_location = ($self->config('GalleryDocLocation') or '/'); |
my $top_location = ($self->config('GalleryDocLocation') or '/'); |
| my $topdir = ($self->config('GalleryRootPath') or '.'); |
my $topdir = ($self->config('GalleryRootPath') or '.'); |
| my $doc_pattern = ($self->config('GalleryDocFile') or '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps)$'); |
my $doc_pattern = ($self->config('GalleryDocFile') or '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps|sxw)$'); |
| my $img_pattern = ($self->config('GalleryImgFile') or '\.(jpe?g|png|tiff?|ppm)$'); |
my $img_pattern = ($self->config('GalleryImgFile') or '\.(jpe?g|png|tiff?|ppm)$'); |
| |
|
| my $abs_filename = Platon::File::Spec::Unix->canonpath("$topdir/$filename"); |
my $abs_filename = Platon::File::Spec::Unix->canonpath("$topdir/$filename"); |
| Line 1095 sub get_subentries_count($$;) |
|
| Line 1095 sub get_subentries_count($$;) |
|
| dirs => 0, |
dirs => 0, |
| }; |
}; |
| |
|
| my $doc_pattern = ($self->config('GalleryDocFile') or '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps)$'); |
my $doc_pattern = ($self->config('GalleryDocFile') or '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps|sxw)$'); |
| my $img_pattern = ($self->config('GalleryImgFile') or '\.(jpe?g|png|tiff?|ppm)$'); |
my $img_pattern = ($self->config('GalleryImgFile') or '\.(jpe?g|png|tiff?|ppm)$'); |
| |
|
| opendir(DIR, "$topdir/$dir") or return $data; |
opendir(DIR, "$topdir/$dir") or return $data; |
| Line 1314 Pattern matching the files you want Apac |
|
| Line 1314 Pattern matching the files you want Apac |
|
| as normal files. All other filetypes will still be served by Apache::Gallery |
as normal files. All other filetypes will still be served by Apache::Gallery |
| but are not visible in the index. |
but are not visible in the index. |
| |
|
| The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps)$' |
The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps|sxw)$' |
| |
|
| =item B<GalleryTTFDir> |
=item B<GalleryTTFDir> |
| |
|