#!/usr/local/bin/perl
require "/home/easyhelp/public_html/cgi-bin/config.pl";
require "/home/easyhelp/public_html/cgi-bin/unix_mail.pl";
#!/usr/local/bin/perl
read(STDIN, $ce7i, $ENV{'CONTENT_LENGTH'}); @fm5i = split(/&/, $ce7i); foreach $h3fd (@fm5i) { ($flh8, $i1bo) = split(/=/, $h3fd); $i1bo =~ tr/+/ /; $i1bo =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; if ($k8ok{$flh8}) { $k8ok{$flh8} = $k8ok{$flh8}.",".$i1bo; } else { $k8ok{$flh8} = $i1bo; } } $aioc = "2.04.02"; $b4ff = $ENV{'SCRIPT_NAME'}; $hfd7 = $ENV{'QUERY_STRING'}; @ce53 = ('Sunday','Monday','Tuesday','Wednesday', 'Thursday','Friday','Saturday'); @i4jp = ('01','02','03','04','05','06','07', '08','09','10','11','12'); @b44b = ('January','February','March','April','May','June','July','August','September','October','November','December'); ($ef8e,$b7f1,$c29i,$jh10,$ak10,$feba,$ahdk) = (localtime(time))[0,1,2,3,4,5,6]; $glgh = sprintf("%02d:%02d:%02d",$c29i,$b7f1,$ef8e); $feba += 1900; $cj77 = "$i4jp[$ak10]/$jh10/$feba"; if ($k8ok{'parse'}) {&ahh; } elsif ($k8ok{'setpwd'}) {&agi; } elsif ($k8ok{'dowhat'}) {&ahe; } elsif ($k8ok{'editprofile'}) {&ae9; } elsif ($k8ok{'find'}) {&aei; } elsif ($hfd7 eq account_finder) {&ahg; } else {&adg; } sub adg{ print "Content-type: text/html\n\n"; unless (-e "$memaccess") { &aac; print qq—
\n—;&abc; exit; } &ah7; } sub ah7{ &aac; print qq—\n \n—;&abc; exit; } sub ae0{ open (PASSWORD, "$passfile/password.txt"); if ($LOCK_EX){ flock(PASSWORD, $LOCK_EX); } $d291 = ; close (PASSWORD); chop ($d291) if ($d291 =~ /\n$/); if ($k8ok{'pwd'}) { $bkk8 = crypt($k8ok{'pwd'}, aa); } else { print "Content-type: text/html\n\n"; &aac; print qq—\n—;&abc; exit; } unless ($bkk8 eq $d291) { print "Content-type: text/html\n\n"; &aac; print qq—\n—;exit; } &abl; } sub abl{ &acm; print "Content-type: text/html\n\n"; &aac; print qq—CGI Script Center's Commission Cart \n$aioc |
| Main Menu | Active\nUsers: $j2ei |
| Awaiting\nApproval: $k0gd |
\n\n—;&abc; exit; } sub ahh{ unless (-e "$passfile/password.txt") { &abj; } open (PASSWORD, "<$passfile/password.txt"); $d291 = ; close (PASSWORD); chop ($d291) if ($d291 =~ /\n$/); if ($k8ok{'password'}) { $bkk8 = crypt($k8ok{'password'}, aa); } else { print "Content-type: text/html\n\n"; print qq—Commission Cart: Password Error!\n—;exit; } unless ($bkk8 eq $d291) { print "Content-type: text/html\n\n"; print qq—Commission Cart: Password Error!\n—;exit; } } sub ahf{ open (FILE,"<$af6k/pageheader.txt"); @ia9g = ; close(FILE); print PAGEHTML "\n"; foreach $gcda(@ia9g) { print PAGEHTML "$gcda"; } } sub ahd{ open (FILE,"<$fi4k/pagefooter.txt"); @edh5 = ; close(FILE); foreach $gcda(@edh5) { print PAGEHTML "$gcda"; print PAGEHTML ""; } } sub abj{ print "Content-type: text/html\n\n"; print qq—Commission Cart: Set Password!\n—;exit; } sub agi{ print "Content-type: text/html\n\n"; unless ($k8ok{'pwd'} && $k8ok{'pwd2'}) { print qq—Commission Cart: Password Error!\n—;exit; } if ($k8ok{'pwd'} && $k8ok{'pwd2'}) { if ($k8ok{'pwd'} ne $k8ok{'pwd2'}) { print qq—Commission Cart: Password Mismatch!\n—;exit; } } chop ($kcnj) if ($kcnj =~ /\n$/); $bkk8 = crypt($k8ok{'pwd'}, aa); open (PASSWORD, ">$passfile/password.txt"); print PASSWORD "$bkk8"; close (PASSWORD); print qq—Commission Cart: Password Success!
\nCommission Cart Status: Password Success! \nYour Administration password has been set! You will not be able to send mail without your password, so please write it down. \nTo post your Commission Carts, use your built-in form. \n |
\n—;exit; } sub aac{ open (FILE,"<$header/header.txt"); if ($LOCK_EX){ flock(FILE, $LOCK_EX); } @b2oc = ; close(FILE); print "\n"; foreach $gcda(@b2oc) { print "$gcda"; } } sub abc{ open (FILE,"<$footer/footer.txt"); if ($LOCK_EX){ flock(FILE, $LOCK_EX); } @ja0g = ; close(FILE); foreach $gcda(@ja0g) { print "$gcda"; } if (lc $link eq "partial_credit") { print qq—
|
© 1998 - 2002 Diran Alemshah Commission Cart™ Professional $aioc\n
|
\n\n—;} elsif (lc $link eq "no_credit") { print qq—