Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: hasnain - helmikuu 25, 2008, 02:21:18 IP

Otsikko: mod request for listing files in a specified directory
Kirjoitti: hasnain - helmikuu 25, 2008, 02:21:18 IP
I need a mod  that will index all the files stored in the host and create download link of those files .... and i like to list the files in in a post or in a section or in a topic or using a tag that encloses the physical path of the directory.... and the files are shown
Otsikko: Re: mod request for listing files in a specified directory
Kirjoitti: Cccddd - helmikuu 25, 2008, 06:35:13 IP
This sounds wildly dangerous, security-wise (unless there's some detail I'm missing)
Otsikko: Re: mod request for listing files in a specified directory
Kirjoitti: hasnain - helmikuu 27, 2008, 12:02:59 IP
Its like suppose I want to give read-only access to a specific directory... for registered users .... containing public downloadable stuffs... the contents of that directory are updated regularly ... I want to  show the contents of the directory in "Admin created posts" with direct download links.
Otsikko: Re: mod request for listing files in a specified directory
Kirjoitti: Cccddd - helmikuu 28, 2008, 01:32:07 IP
Have you tried the built-in features of apache? I mean sure it won't be embedded in your post (unless you enable iframe html code) but it does the job a lot more securely than some file browsing php code could do.