/*********************************************************************/
/*                             fileNice                              */
/*                                                                   */
/*  Heirachical PHP file browser - http://filenice.com               */
/*  Written by Andy Beaumont - http://andybeaumont.com               */
/*                                                                   */
/*  Send bugs and suggestions to stuff[a]fileNice.com                */
/*                                                                   */
/*                                                                   */
/*********************************************************************/
/*********************************************************************/
/*                                                                   */
/*                     User editable preferences                     */
/*                                                                   */
/*********************************************************************/
// default skin 
$defaultSkin = "default";
// default time to show each image in a slideshow (in seconds)
$defaultSSSpeed = 4;
// Show "send to Flickr" links
$flickr = true;
// any files you don't want visible to the file browser add into this 
// array...
$ignoreFiles = array("file1.txt","file2.txt","index.php","fComments.txt");
$ignoreFolders = array("fileNice");
// file type handling, add file extensions to these array to have the 
// file types handled in certain ways
$imgTypes 	= array("gif","jpg","jpeg","bmp","png");
$embedTypes = array("mp3","mov","aif","aiff","wav","swf","mpg","avi","mpeg","mid");
$htmlTypes 	= array("html","htm","txt","css");
$phpTypes 	= array("php","php3","php4","asp","js");
$miscTypes 	= array("pdf","doc","zip","sit","rar","rm","ram");
// date format - see http://php.net/date for details
$dateFormat = "F d Y ";
/*********************************************************************/
/*                                                                   */
/*                 End of user editable preferences                  */
/*                                                                   */
/*  Best not to touch stuff below here unless you know what you're   */
/*  doing.                                                           */
/*                                                                   */
/*********************************************************************/
$version = "0.9.1 beta";
$server = $_SERVER['HTTP_HOST'];
$thisDir = dirname($_SERVER['PHP_SELF']);  
$pathToHere = "http://$server$thisDir/";
		
include "fileNice/fileNice.php";
// HANDLE THE PREFERENCES
$names = array("showImg","showEmbed","showHtml","showScript","showMisc");
if($_POST['action'] == "prefs"){
	// lets set the cookie values
	$varsArray = array();
	for($i=0; $i