SourceView

Note: This script is very much alpha quality, and since it accesses your filesystem do not assume it is secure enough to be public-facing.

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

Download

You can get the source code from the Subversion repository:

svn co http://svn.codescape.net/svn/sourceview/trunk sourceview
sourceview.txt · Last modified: 2009/05/01 12:16 by alan
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki