|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 25857528 于 2011-6-7 23:49 编辑
REQUIREMENTS
============
This script requires PHP and GD2 if you wish to use the
thumbnail functionality.
INSTRUCTIONS
============
1) Unzip all files
2) Edit this file, making sure everything is setup as required.
3) Upload to server
CONFIGURATION
=============
Edit the variables in this section to make the script work as
you require.
1.
Include URL - If you are including this script in another file,
please define the URL to the Directory Listing script (relative
from the host)
*/
2.
/*
Start Directory - To list the files contained within the current
directory enter '.', otherwise enter the path to the directory
you wish to list. The path must be relative to the current
directory and cannot be above the location of index.php within the
directory structure.
*/
3.
/*
Show Thumbnails? - Set to true if you wish to use the
scripts auto-thumbnail generation capabilities.
This requires that GD2 is installed.
*/
4.
/*
Memory Limit - The image processor that creates the thumbnails
may require more memory than defined in your PHP.INI file for
larger images. If a file is too large, the image processor will
fail and not generate thumbs. If you require more memory,
define the amount (in megabytes) below
*/
5.
/*
Show Directories - Do you want to make subdirectories available?
If not set this to false
*/
6.
/*
Force downloads - Do you want to force people to download the files
rather than viewing them in their browser?
*/
7.
/*
Hide Files - If you wish to hide certain files or directories
then enter their details here. The values entered are matched
against the file/directory names. If any part of the name
matches what is entered below then it is not shown.
*/
8.
/* Only Display Files With Extension... - if you only wish the user
to be able to view files with certain extensions, add those extensions
to the following array. If the array is commented out, all file
types will be displayed.
*/
9.
/*
Show index files - if an index file is found in a directory
to you want to display that rather than the listing output
from this script?
*/
10.
/*
Allow uploads? - If enabled users will be able to upload
files to any viewable directory. You should really only enable
this if the area this script is in is already password protected.
*/
11.
/* Upload Types - If you are allowing uploads but only want
users to be able to upload file with specific extensions,
you can specify these extensions below. All other file
types will be rejected. Comment out this array to allow
all file types to be uploaded.
*/
12.
/*
Overwrite files - If a user uploads a file with the same
name as an existing file do you want the existing file
to be overwritten?
*/
13.
/*
Index files - The follow array contains all the index files
that will be used if $displayindex (above) is set to true.
Feel free to add, delete or alter these
*/
14.
/*
File Icons - If you want to add your own special file icons use
this section below. Each entry relates to the extension of the
given file, in the form <extension> => <filename>.
These files must be located within the dlf directory.
*/
15.
/*
That's it! You are now ready to upload this script to the server.
Only edit what is below this line if you are sure that you know what you
are doing!
*/
|
|