SourceView
Note: This script is very 'alpha' quality right now - please do not assume its secure at this moment in time!
SourceView is a simple standalone script which uses a combination of PHP and JavaScript to provide a filesystem browser, and uses highlight to provide syntax highlighting.
Setup is done with a simple configuration file (config.inc.php) and basically allows you to set the base directory it will use as its "root" and a set of path and file "blacklists" to exclude certain things from the listings.
AJAX-type methodology is used to load parts of the filesystem as it is browsed instead of incurring the overhead of parsing the entire tree in one go (which can take a long time if you are browsing the root directory !!!).
Requirements
- Linux or some other Unix-style OS (not tested on Windows)
- An HTTP server
- PHP 5 or higher (preferably 5.2, must have the JSON extension)
- A browser that supports JavaScript - more specifically, one that will handle the Mootools JavaScript framework
Demo
There is currently an example for people to use and abuse, browsing the source of the previous version of this site, with critical configuration files excluded using the "ignore" features I built into the script.