file-directory-list/README.md

53 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2016-06-28 08:55:11 +03:00
# Free Super Clean PHP File Directory Listing Script
2018-02-23 22:02:52 +03:00
Easily display files and folders in a mobile friendly, clean and cool way. Just drop the `index.php` in your folder and you are ready to go. Past versions of this script can be found here: https://halgatewood.com/free/file-directory-list/
2016-06-28 08:55:11 +03:00
## Options
At the top of the `index.php` file you have a few settings you can change:
--
`$title = "List of Files";`
This will be the title of your page and also is set to the meta mitle of the document.
2018-02-23 20:55:23 +03:00
--
`$color = "light";`
2018-02-23 21:02:36 +03:00
2018-02-23 20:55:23 +03:00
Change this variable to `dark` when you are feeling down.
2016-06-28 08:55:11 +03:00
--
`$ignore_file_list = array( ".htaccess", "Thumbs.db", ".DS_Store", "index.php" );`
Create an array of files that you do not want to appear in the listing
--
`$ignore_ext_list = array( );`
You can create an array of extensions not to show, for example: 'jpg,png,gif,pdf'
--
`$sort_by = "name_asc";`
This will sort the files, the available options are: name_asc, name_desc, date_asc, date_desc
--
2016-09-06 09:00:31 +03:00
`$icon_url = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAAyCAYAAADP7vEw....";`
2016-06-28 08:55:11 +03:00
2017-06-22 19:42:29 +03:00
A data sprite of evenly spaced out icons. You can create your own like the one found here: https://www.dropbox.com/s/lzxi5abx2gaj84q/flat.png?dl=0
2016-06-28 08:55:11 +03:00
--
`$toggle_sub_folders = true;`
If a folder is clicked on, it will slide down the sub folder. You can turn this off here.
2016-09-06 08:59:19 +03:00
--
`$force_download = true;`
This will add the html download attribute which forces the download in some browsers.
--
`$ignore_empty_folders = true;`
Ability to hide empty folders.