Simply upload the 'listDirectory' folder and 'index.php' file in to the the directory you want it to list and the script will do the rest!
Just add the file/folder to the corresponding lists in the 'config.php' file,
seperate them using a
comma( , ). As of version 1.1 you must specify the path to the ignoreFiles, this
is so if you have "index.php" in a folder it only hides that one and not all of them in your files.
<?php $folderIgnore = array( // Folders to ignore 'listDirectory', 'myFolder' ); $fileIgnore = array( // Files to ignore (include path) 'index.php', 'favicon.ico', 'upFolder/file.txt' ); ?>
To add a file icon, add the extention of any file to the list in the 'config.php' file, although the list is categorised it doesn't matter where you add it.
The file Extention goes on the left and the CSS class on the right.
<?php $icons = array( // Image Files 'test' =>'custom', 'jpg' =>'image', 'jpeg' =>'image', 'bmp' =>'image', 'png' =>'image' ); ?>
If you want to make add a custom icon you need to add the class to the CSS file, which is in the assets folder.
.dir li.custom { background-image: url('../imgs/customIcon.png'); }
'custom' being the name you specified in the icons list in the 'config.php' file.
Note: ../ stands for the parent folder for the css file's folder.
If you have any problems or questions email me at: jaybuz1993@gmail.com