#!/usr/bin/perl #----------------------- # C R O O K E D B U S H . C O M - E D I T C O N T E N T # Designed by Intelliscript.net. Please don't remove this copyright notice. Thanks! #----------------------- # User Defined Variables #----------------------- $adminpass = "password"; $content_path = "../content/";#with ending slash @domain_possibilities = ("www.fightingarts.org.uk","fightingarts.org.uk"); $url_to_upload_script = "/cgi-bin/upload_pic.pl"; $upload_dir = "/fightingarts.org.uk/public_html/content/uploads/"; $upload_url = "/content/uploads/"; $max_upload = "500000"; #----------------------- # READ WEB ENVIRONMENT #----------------------- $url = $ENV{'SERVER_NAME'}; $script_url = $ENV{'SCRIPT_NAME'}; $referring = $ENV{'HTTP_REFERER'}; #_______________________ #----------------------- # Program #----------------------- $copyright_year = "2003"; $version = "30615.0951"; print "Content-type: text/html\n\n"; &parse_form; unless(!$FROMWEB{'file'}){$active_text_file = $FROMWEB{'file'}} else{ $active_text_file = $referring; $active_text_file =~ s/http:\/\///; $active_text_file =~ s/$url\///; foreach $domain (@domain_possibilities){ $active_text_file =~ s/$domain\///; } $active_text_file =~ s/.shtml|.html|.html//; } &check_password; exit; #----------------------- # Check for password #----------------------- sub check_password{ &password_good if ($FROMWEB{'password'} eq $adminpass); &password_bad; } #----------------------- # Invalid password, show password box #----------------------- sub password_bad{ print qq~