If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Please take a look before I.....arrrngh  XML
Forum Index » Support Forum
Author Message
Anonymous



Here are the changes I made to the script....when I try to pull up the admin page....I get an error saying the file does not exist? Can anyone help?



#!/usr/local/bin/perl

# url to script
$cgiurl = "http://www.graycrosby.com/cgi-bin/download.pl";

# url to the image files without trailing "/"
$base_gif = "http://www.graycrosby.com/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.graycrosby.com');

# 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.graycrosby.com/downloads";

# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/www.graycrosby.com/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'

);

# End Setup

THanks
Anonymous



After messing around for hours....cannot get this thing to work. THis is the error message I get when I try to access the admin sceen:


Thu Apr 22 21:56:11 2004] [error] [client 68.20.2.130] File does not exist: /home/graycr2/public_html/500.shtml
[Thu Apr 22 21:56:11 2004] [error] [client 68.20.2.130] Premature end of script headers: /home/graycr2/public_html/cgi-bin/download.pl


This is how I have setup the script.

Does anything lookout of place? ANyhelp would be greatly appreciated.

#!/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.GrayCrosby.Com/cgi-bin/download.pl";

# url to the image files without trailing "/"
$base_gif = "http://www.GrayCrosby.com/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.graycrosby.com');

# 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.graycrosby.com/downloads";

# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/www/~graycr2/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'

);

# End Setup
Anonymous



this is for TOP DOWNLOAD BY THE WAY
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum