mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- thumbnail support is fully functional with custom imageThumb class which supports caching and so on, the class is still considered beta (specially the clean_cache() function)
- updated simple template - added Last Access (atime) to dirlist.lib.php - updated and fixed loads of other things git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@18 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -31,8 +31,12 @@ if(!preg_match("/\/$/", $dir_url)) $redirect = '/';
|
||||
if ( empty($redirect) ) {
|
||||
|
||||
// path lookup
|
||||
$dir_path = apache_lookup_uri($dir_url);
|
||||
$dir_path = ( is_array($dir_path) ) ? $dir_path['filename'] : $dir_path->filename ;
|
||||
if ( function_exists('apache_lookup_uri') ) {
|
||||
$dir_path = apache_lookup_uri($dir_url);
|
||||
$dir_path = ( is_array($dir_path) ) ? $dir_path['filename'] : $dir_path->filename ;
|
||||
} else {
|
||||
$dir_path = $_SERVER['DOCUMENT_ROOT'].$dir_url;
|
||||
}
|
||||
if(!preg_match("/\/$/", $dir_path)) $dir_path .= '/';
|
||||
|
||||
// check for index files and redirect if found
|
||||
|
||||
Reference in New Issue
Block a user