1#!/usr/bin/perl 2 3# Mega Upload 4# PHP File Uploader with progress bar Version 1.42 5# Copyright (C) Raditha Dissanyake 2003 6# http://www.raditha.com 7 8# Licence: 9# The contents of this file are subject to the Mozilla Public 10# License Version 1.1 (the "License"); you may not use this file 11# except in compliance with the License. You may obtain a copy of 12# the License at http://www.mozilla.org/MPL/ 13# 14# Software distributed under the License is distributed on an "AS 15# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 16# implied. See the License for the specific language governing 17# rights and limitations under the License. 18# 19# The Initial Developer of the Original Code is Raditha Dissanayake. 20# Portions created by Raditha are Copyright (C) 2003 21# Raditha Dissanayake. All Rights Reserved. 22# 23 24$tmp_dir="/www/m/c/mcpuk.net/tmp"; 25 26$|=1; #unbuffers streams 27 28$interval=1; # how often to refresh the progress bar 29 30$max_upload = 500000000000; # set this to whatever you feel suitable for you. 31 32 33 34# don't change the next few lines unless you have a very good reason to. 35 36$post_data_file = "$tmp_dir/$sessionid"."_postdata"; 37$monitor_file = "$tmp_dir/$sessionid"."_flength"; 38$signal_file = "$tmp_dir/$sessionid"."_signal"; 39 40 411; 42