Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2004-01-02 (12 years ago) | 57% | Total: 4,030 | All time: 743 This week: 1,099 |
Version | License | Categories | ||||
filedisplay 1.0 | GNU Lesser Genera... | HTML, Files and Folders |
Description | Author | |||||||||||||
This class is meant to output listings of files and sub-directories of a given directory using HTML tables. Recommendations Find Large Files |
|
Documentation for FileDisplay class Created by Greg Lane, Nov 3rd, 2003 email: hamutaro@eudoramail.com License: ======== Lesser GPL. (See www.gnu.org for more details.) Description: ============ The FileDisplay class will show a directory listing of folders and files in a specified root directory. (actually only images and folders - if you alter the checkext method, you can display all or a limited selection of files) The class adds links to each subdirectory. When you click on a subdirectory, the page reloads and the contents of the subfolder (including any subdirectories) is displayed. You can display an endless number of subdirectories, but the filepath from the root directory is displayed at the top of the page, so the formatting might get a little messy if you explore too deep! Installation: ============= Upload the FileDisplay.inc.php file and the images to your web server. You will need to create at least two icon images (1 for files & the other for directories) and put them in the same directory as FileDisplayClass.inc.php. Apache has some good images in the 'icons' directory. Configuration: ============== See accompanying file - test_FileDisplay.php For explanations of each of the methods of the class, see the comments in FileDisplayClass.inc.php Security: ========= The target folder information is contained in the query string. So that users don't enter ../../ in the querystring and explore your entire file system, the code checks that the root directory (a directory of your choosing) is a sub string of the target dir. Last Comments: ============== This is the first class I've submitted. I know it doesn't do anything revolutionary, but it's simple, self-contained and meets the needs for which I designed it. If you have any fixes, suggestions, rewrites, additions, please let me know. |
Files |
File | Role | Description |
---|---|---|
FileDisplayClass.inc.php | Class | Contains the FileDisplay class. |
manual.txt | Doc. | User instructions and change log |
readme.txt | Doc. | Readme |
test_FileDisplay.php | Example | Demo |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.