dList v2.2.3 beta

- started keeping track of version numbers properly
- added finnish translation
- edited multiple things in simple template
- added file/folder hiding by the use of regular expressions
- updated most main parts of dlist

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@19 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-04-17 16:46:05 +00:00
parent edf251dbec
commit 3f5b4da066
15 changed files with 299 additions and 57 deletions

View File

@@ -52,8 +52,10 @@ $do_sort_reverse = false;
//>Section> do_readdir
if ( $do_readdir ) {
//>Section> readdir.start
$dlist = new dirList();
//>Section> readdir.options
if ( $do_sort_items ) {
$dlist->sort_by = $do_sort_by;
@@ -61,9 +63,20 @@ if ( $do_readdir ) {
} else $dlist->sort_items = false;
if ($config->show_hidden) $dlist->show_hidden = true;
if ( !$config->smartdate ) $dlist->use_smartdate = false;
$dlist->dir_url = DIR_URL;
//>Section> readdir.filter_out
if ( !empty($config->filter_out) ) $dlist->filter_out = '/'.implode('|', $config->filter_out).'/i';
//>Section> readdir.hide_self
$alt_string = ( empty($config->alt_urls) ) ? '' : '|^'.str_replace('/', '\/', implode('$|^', $config->alt_urls)).'$' ;
$dlist->hide_self = '/^'.str_replace('/', '\/', DLIST_URL).'$'.$alt_string.'/i';
//>Section> readdir.read
$dlist->read(DIR_PATH);
//>Section> do_readdir.end
}
//==========================
@@ -72,6 +85,5 @@ if ( $do_readdir ) {
//_END;
?>