« [norton.ipcn.org] i32 x86 说明更新 | Main | 受伤的季节 eth0 老出问题 »
May 5, 2004
AutoIndex PHP Script - A Website Directory Indexer
|
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2004/05/05/000261.html http://autoindex.sourceforge.net/ AutoIndex PHP Script by Justin Hagstrom |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Version | Date | Download | |
|---|---|---|---|
| Version 1.0 for PHP 4 | 1.4.4 | 2004-May-04 | Download |
| Version 2.0 for PHP 5 | 2.0.0 beta 1 | 2004-May-04 | Download |
| Package | Release & Notes | Filename | Date | |||
| Size | D/L | Arch. | Type | |||
AutoIndex PHP Script 1.x | ||||||
| | 2004-05-03 21:00 | |||||
| 80746 | 0 | Platform-Independent | .gz | |||
| 126806 | 0 | Platform-Independent | .zip | |||
index.php
config.php
index.php 首次访问 提示进行配置
配置之后生成 AutoIndex.conf.php
-----> AutoIndex.conf.php
<?php
/*
AutoIndex.conf.php generated by config.php
Part of AutoIndex PHP Script
http://autoindex.sourceforge.net
*/
/* Required settings: */
$base_dir = './';
$icon_path = 'index_icons/winxp';
$stylesheet = 'stylesheet.css';
/* Optional settings: */
$use_login_system = false;
$allow_uploads = false;
$must_login_to_download = false;
$user_list = '.htpasswd.autoindex';
$allow_file_overwrites = false;
$log_file = 'your_log_file.txt';
$dont_log_these_ips = array(
'127.0.0.*');
$banned_list = '';
$download_count = 'your_download_count.txt';
$links_file = '';
$description_file = '';
$sub_folder_access = true;
$index = '';
$hidden_files = array(
$log_file,
$links_file,
$description_file,
$banned_list,
$stylesheet,
$download_count,
'index_icons',
'languages',
'*.php',
'.ht*');
$show_only_these_files = array();
$force_download = false;
$bandwidth_limit = 0;
$anti_leech = false;
$enable_searching = true;
$show_dir_size = true;
$folder_expansion = false;
$show_folder_count = false;
$days_new = 0;
$md5_show = 0;
$thumbnail_height = 0;
$header = '';
$footer = '';
$header_per_folder = false;
$footer_per_folder = false;
$show_type_column = false;
$show_size_column = true;
$show_date_column = true;
$path_to_language_files = './languages/';
$lang = 'en';
$select_language = false;
?>
-----> readme.html
AutoIndex PHP Script (version 1.4.4) - Help File http://autoindex.sourceforge.net/ 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: if (isset($_REQUEST['id']) && strpos($_REQUEST['id'], '/') === false)//if the id parameter in the URL is set, and it doesn't contain any slashes{ 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 |
Posted by windtear at May 5, 2004 1:16 AM