Login   Register  
PHP Classes
elePHPant
Icontem

File: config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Er. Rochak Chauhan  >  PHP Fancy Directory Browsing  >  config.php  >  Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: Config File
Class: PHP Fancy Directory Browsing
List the contents of directories in a Web page
Author: By
Last change:
Date: 2008-11-12 06:25
Size: 1,035 bytes
 

Contents

Class file image Download
<?php
define
("DOCROOT_PATH",$_SERVER['DOCUMENT_ROOT']);
define("SERVER_NAME",$_SERVER['SERVER_NAME']);
define("SERVER_PATH","http://".SERVER_NAME);

define("UNSAFE_BROWSING_NOTICE","NOTICE: The input directory seems to be outside the webserver. Default rootpath is used.");
define("DEFAULT_THEME","ferrari");

// Define the image name and extentions of the various file types
define("IMAGE_ICON","image.png");
define("VIDEO_ICON","video.png");
define("AUDIO_ICON","audio.png");
define("HTML_ICON","html.png");
define("TEXT_ICON","text.png");

define("FOLDER_ICON","folder.png");
define("DEFAULT_ICON","default.png");

//Make sure all the extentions are seperated by the comma
define("IMAGE_EXTENSIONS","jpg,bmp,gif,jpeg,bmp,tif,png");
define("VIDEO_EXTENSIONS","mp4,avi,mpg,mpeg,wmv,rmvb,asx");
define("AUDIO_EXTENSIONS","mp3,wav");
define("HTML_EXTENSIONS","html,htm");
define("TEXT_EXTENSIONS","txt,nfo");

//parameters to display directry information
define("A_Z",1);
define("Z_A",2);
define("DIR_FIRST",3);
define("DIR_LAST",4);
?>