Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
22/04/2004 20:17:51
|
Anonymous
|
Im having trouble getting this to work. Im confused as to what I need to substitute with my webpage name (www.graycrosby.com). Can someone advise as to what I need to change?
Thanks
#!/usr/bin/perl
#########################################################################
# Top Downloads v2.0 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
# To count a download use: #
# <a href="download.pl?file=file_id">file</a> #
# #
# To show your top xx downloads: #
# http://www.host.com/cgi-bin/download.pl?job=show&top=xx #
# #
# Administration: #
# http://www.host.com/cgi-bin/download.pl?admin=enter #
# #
#########################################################################
# url to script
$cgiurl = "http://www.proxy2.de/cgi-bin/files/download.pl";
# url to the image files without trailing "/"
$base_gif = "http://www.proxy2.de/gif";
# administration password - should not contain '&','=' and "
$admin_pass = "pass123";
# file locking ($lock=0 for Win32!);
$lock = 1;
# check http referer 0=no 1=yes;
$check = 0;
@valid=('http://www.proxy2.de');
# log files
$basedat = "log.txt";
$daylog = "daylog.txt";
$stats = "download_stats.txt";
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.proxy2.de/downloads";
# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/www/you/public_html/downloads";
$back_img = "$base_gif/texture1.gif"; # url of background image
$bgcolor = "#FFFFFF"; # background color
$table_width = 560; # width of hole table
$table_text = 250; # width reserve for the file description
$table_bg = "#F7F7F7"; # table background color
$table_top = "#E1A8A8"; # top table background color
$font_size = "8pt"; # font size
$show_default = 15; # 10=TOP_10 20=TOP_20,etc.
$bar_image_height =10;
$max_day = 28;
$max_bar_height = 180;
%scan = (
zip => '*.zip',
gz => '*.gz',
exe => '*.exe',
mp3 => '*.mp3',
pdf => '*.pdf',
avi => '*.avi'
);
|
|
|
|
|
|
Based on the open source JForum
|