diff --git a/config.php b/config.php index 8091d94..d10c1ce 100755 --- a/config.php +++ b/config.php @@ -47,4 +47,5 @@ $SkipObjects = array('UnDossier', 'UnFichier'); //Those files and folders will $thumb_size = 320; //Thumbnail height/width (square thumbs). Changing this will most likely require manual altering of the template file to make it look properly! $label_max_length = 40; //Maximum chars of a folder name that will be displayed on the folder thumbnail $display_exif = 0; //Take care, even if not diplayed EXIF are still readable for visitors. May be a good idea to erase EXIF data... +$display_filename = 0; //Show file names below the pictures ?> diff --git a/index.php b/index.php index dadbf26..d45fa05 100644 --- a/index.php +++ b/index.php @@ -227,6 +227,12 @@ if (file_exists($currentdir ."/captions.txt")) // 3. LOAD FILES if ($file != "." && $file != ".." && $file != "folder.jpg") { + if($display_filename) { + $filename_caption="" . padstring($file, $label_max_length) . ""; + } + else { + $filename_caption=""; + } // JPG, GIF and PNG if (preg_match("/.jpg$|.gif$|.png$/i", $file)) { @@ -256,12 +262,13 @@ if (file_exists($currentdir ."/captions.txt")) "name" => $file, "date" => filemtime($currentdir . "/" . $file), "size" => filesize($currentdir . "/" . $file), - "html" => "