created a configuration object model, and other minor changes...

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@6 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-03-30 15:47:02 +00:00
parent 3830a5312e
commit 87b72b6fb0
8 changed files with 131 additions and 26 deletions

View File

@@ -18,7 +18,7 @@ class dirlist {
// Sorting
var $sort_items = true;
var $sort_reverse = false;
var $reverse = false;
// Smart date formatting
var $smartdate = '{date}, {time}';
@@ -73,7 +73,7 @@ class dirlist {
}
}
if ( $this->sort_items ) {
( $this->sort_reverse ) ? krsort($this->list) : ksort($this->list) ;
( $this->reverse ) ? krsort($this->list) : ksort($this->list) ;
}
return true;
}else{ $this->error = true; return false; }