|
AutoIndex PHP Script (version 1.5.4) - Help File
https://github.com/BeitDina/AutoIndex
To install and run the script, simply upload the contents of this directory to a server with PHP support (Works with all versions of PHP4 and PHP5).
base_dir is the folder that will be the root of the directory listing.
If you're using an absolute path, you'll need to set force_download to TRUE (this is not recommended, though. It is better to use a path relative to the php script).
icon_path is the path to the icons. Don't put a slash at the end.
stylesheet is the path and filename of your css stylesheet.
Optional Variables :
If allow_uploads is set to TRUE, people will be able to upload files to your website. (Default: FALSE)
username: admin
user_list contains the path to the text file where the usernames and encrypted passwords are stored.
If allow_file_overwrites is set to TRUE, when uploading a file that already exists, the file will be replaced. (Default: FALSE)
If must_login_to_download is set to TRUE, users must login before they will see the list of files. (Default: FALSE)
banned_list contains the path to the text file where blocked IP addresses and/or hostnames are stored.
If sub_folder_access is set to FALSE, folders will not be shown. (Default: TRUE)
index: Leave this blank unless you use php includes on your webpage.
The include in your index file should look something like this: $valid = array('home', 'page1', 'page2');
if (isset($_REQUEST['id']) && in_array($_REQUEST['id'], $valid))
//if the id parameter in the URL is set, and it is in the 'valid' list
{
include($_REQUEST['id']); //include the file
}
hidden_files contains an array of strings.
show_only_these_files contains an array of strings.
force_download should be set to TRUE or FALSE. (Default: FALSE)
bandwidth_limit is set to the max download speed (per client) in KB/s. 0 will turn it off.
anti_leech should be set to TRUE or FALSE. (Default: FALSE)
enable_searching should be set to TRUE or FALSE. (Default: TRUE)
The log_file contains the full path to the file to write the access log.
dont_log_these_ips contains an array of strings (which are IP addresses).
download_count contains a string which is the filename of the file to keep track of how many times files have been downloaded.
links_file contains the path to a text file with the URL of files that you want to be listed as links.
http://autoindex.sourceforge.net|Main Site
If no link description is present, the link itself will be displayed.
description_file contains the path to a text file with descriptions for files.
show_dir_size should be set to TRUE or FALSE. (Default: TRUE)
folder_expansion should be set to TRUE or FALSE. (Default: FALSE)
show_folder_count should be set to TRUE or FALSE. (Default: FALSE)
header and footer are the paths to 2 files.
header_per_folder and footer_per_folder should be set to TRUE or FALSE. (Default: FALSE)
days_new contains the number of days old a file can be and still have [New] written next to it. (Default: 0)
md5_show is a feature that will let users get the md5sum of a specific file. (Default: 0)
thumbnail_height is a feature that will show thumbnails next to images. (NOTE: GDlib 2.0.1 or higher is required)
show_type_column, show_size_column, and show_date_column are set to TRUE or FALSE.
Language Settings:
lang is the default language to display the script in.
path_to_language_files is the path where the *.php language files are located.
If select_language is set to TRUE, there will be an option at the bottom of the script for
|
mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-03-12 11:10:12 +01:00