<?
# What directory should the files be uploaded to ? ( Remeber to chmod 777 your_upload_dir )
$upload_directory = "/images";
# The Max Upload Size of a file when upload to server!
$max_upload_size = "2000000"; // Set to 20 MB (It's a private uploader, why not!)
# What type of files should be allowed to be uploaded ?
$allow_type = "*.jpg"; // This is the tag to only allow *.? files to be uploaded!
# Shall the script only allow 1 file type to be uploaded ?
$allow_file_type = "90"; // Only allows 1 file to be uploaded to server!
### Font ###
$font = "verdana";
$font_size = "2";
$font_color = "black";
### Error's###
# No file to upload
$no_file = "You have to choose a file to upload!";
# File is to big
$to_big_file = "That file is too large to upload!";
# Not the correct filetype
$not_correct_file = "That file is not permitted!";
# Error to write file to upload directory
$error_write_file = "Sorry, but there has been an error processing $file_name, Please try again later!";
# The file is already uploaded
$already_uploaded = "That file name already exists!";
### Thank You Message(s) ###
$thank_you = "$file_name has been uploaded to http://pancakez.(net|com)/images/$file_name?!"; //Be sure to change this Pancakes!
####### Code #######
if (!$file_name) die("$no_file");
if ($file_size > $max_upload_size) {
die("$to_big_file");
}
if (file_exists("$upload_directory/$file_name")) {
die("$already_uploaded");
}
@copy($file, "$upload_directory/$file_name") or die("$error_write_file");
# EOF!
echo "$thank_you";
?>