#!/usr/bin/perl &acj; sub acj{ my $aehe; if (&ad1) { $aehe = $ENV{'QUERY_STRING'}; } elsif (&ad4) { read(STDIN,$aehe,$ENV{'CONTENT_LENGTH'}); } @c057 = split(/[&;]/,$aehe); foreach $i4m8 (0 .. $#c057) { $c057[$i4m8] =~ s/\+/ /g; (my $k85c,my $h1e2) = split(/=/,$c057[$i4m8],2); $k85c =~ s/%(..)/pack("c",hex($1))/ge; $h1e2 =~ s/%(..)/pack("c",hex($1))/ge; $c057{$k85c} .= "\0" if (defined($c057{$k85c})); $c057{$k85c} .= $h1e2; } } sub ad1{ return ($ENV{'REQUEST_METHOD'} eq "GET"); } sub ad4{ return ($ENV{'REQUEST_METHOD'} eq "POST"); } $h1e2 =~ s///g; $fnl8 = "2.036.01E"; $bcnb = "Subscribe Me Pro - Enterprise Edition"; $dj6h = $ENV{'SCRIPT_NAME'}; if ($c057{'cgipath'}) { $cgipath = $c057{'cgipath'}; } elsif ($cgipath) { $cgipath = $cgipath; } elsif ($ENV{'SCRIPT_FILENAME'} && $ENV{'SCRIPT_FILENAME'} !~ /cgiwrap/) { $cgipath = $ENV{'SCRIPT_FILENAME'}; } elsif ($ENV{'PATH_TRANSLATED'}) { $cgipath = $ENV{'PATH_TRANSLATED'}; $cgipath =~ s/\\/\//g; } $cgipath =~ s/\/setup\.cgi$//; $cgipath =~ s/\/setup\.pl$//; unless ($c057{'configs'}) { $information = "$ENV{'DOCUMENT_ROOT'}/path-to-your-account/s"; } &adj; &ada; sub adj{ if (-e "$cgipath/config.cgi") { require "$cgipath/config.cgi"; } elsif (-e "$cgipath/config.pl") { require "$cgipath/config.pl"; } } sub ada{ if (-e "$cgipath/unix_mail.cgi") { require "$cgipath/unix_mail.cgi"; } elsif (-e "$cgipath/unix_mail.pl") { require "$cgipath/unix_mail.pl"; } elsif (-e "$cgipath/nt_mail.cgi") { require "$cgipath/nt_mail.cgi"; } elsif (-e "$cgipath/nt_mail.pl") { require "$cgipath/nt_mail.pl"; } } sub aec{ if (-e "$cgipath/s.cgi") { require "$cgipath/s.cgi"; } elsif (-e "$cgipath/s.pl") { require "$cgipath/s.pl"; } } if ($c057{'RUNINSTALLATION'}) { &adf; } elsif ($c057{'passcheck'}) {&aci; } elsif ($c057{'graphic'}) {&abk; } elsif ($c057{'setpwd'}) { &ae0; } elsif ($c057{'enterpass'}) {&aci; } else {&ae1; } exit; sub ae1{ $igb8 = `which sendmail`; unless ($igb8) { $igb8 = `whereis sendmail`; } $j3a9 = "$^X"; if ((!($j3a9)) || (lc $j3a9 eq 'perl')) { $j3a9 = `which perl`; } if ((!($j3a9)) || (lc $j3a9 eq 'perl')) { $j3a9 = `which perl5`; } if ((!($j3a9)) || (lc $j3a9 eq 'perl')) { $j3a9 = "/usr/bin/perl"; } $j3a9 =~ s/\\/\//g; if (!($igb8)) { $igb8 = "/usr/bin/sendmail"; } unless ($ready == "1") { print "Content-type: text/html\n\n"; &ad0; &ac0; print qq—\n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n\n\n\n\n\n\n \n \n \n \n
INSTALLER:\n Subscribe Me Professional
$fnl8 - Enterprise Edition

\n
\n
?\n 1.\n PATH\n TO PERL:
?\n 2.\n PATH\n TO CGI DIRECTORY:
?\n 3.\n YOUR\n ROOT DIRECTORY:
?\n 4.\n MAIL\n PROGRAM:
?\n 5.\n FILE\n LOCKING:
?\n 6.\n WEBSITE\n URL:
?\n 7.\n UNIX\n OR NT SERVER:
?\n 8.\n MAIL\n USING:
?\n 9.\n \n \n \n \n \n
SMTP MAIL\n SERVER:
\n Only needed if you\n chose Sockets mail above
?\n 10.\n CGI\n EXTENSION:
?\n 11.\n ADMIN\n SIGN-UP
\n NOTIFICATION:
?\n 12.\n \n SESSION TIME:
?\n 13.\n SCRIPT\n PERMISSIONS :
?\n 14.\n \n BOUNCE\n REMOVAL\n USERNAME:
?\n 15.\n \n ADMIN ACCESS:
?\n 16.\n \n ADMIN HEADERS: Edit\n below optional
\n ADMIN FOOTERS: Edit\n below optional
\n \n


\n
\n
\n

\n—;&ab9; &aap; exit; } &adg; sub adg{ if ($cbop) { $c057{'session_id'} = $cbop; } &ac5; print "Content-type: text/html\n\n"; &ach; &ad0; &ac0; print qq—\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n\n \n \n \n\n\n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n\n\n
? 1.\n PATH\n TO PERL:
?\n 2.\n PATH\n TO CGI DIRECTORY:
?\n 3.\n YOUR\n ROOT DIRECTORY:
?\n 4.\n MAIL\n PROGRAM:
?\n 5.\n FILE\n LOCKING:
?\n 6.\n WEBSITE\n URL:
?\n 7.\n UNIX\n OR NT SERVER:
?\n 8.\n MAIL\n USING: \n
?\n 9.\n \n \n \n \n \n
SMTP MAIL\n SERVER:
\n Only needed if you\n chose Sockets mail above
?\n 10.\n CGI\n EXTENSION:
?\n 11.\n ADMIN\n SIGN-UP
\n NOTIFICATION:
?\n 12.\n SESSION TIME:
?\n 13.\n SCRIPT PERMISSIONS:
?\n 14.\n \n BOUNCE\n REMOVAL\n USERNAME:
?\n 15.\n \n ADMIN ACCESS: \n—;if ($admin_access) { print qq—\n—;} else { print qq—\n—;} print qq—
?\n 16.\n \n ADMIN HEADERS: Edit\n below optional
\n
\n ADMIN FOOTERS: Edit\n below optional
\n \n

\n—;&ab9; &aap; exit; } } sub adf{ if ($ready) { $d7p9; } if ($c057{'information'}) { $information = "$c057{'information'}"; } else { &adn; exit; } $bo35 = $c057{'information'}; if ($bo35) { @dhjl =split(/\//,$bo35); $d9gd = push(@dhjl); $d9gd = $d9gd -1; $bo35 = $dhjl[$d9gd]; } $information =~ s/\/$bo35//; print "Content-type: text/html\n\n"; sub adn{ &ae6; &ade; &ae7; print qq—Path Not Found or Not Writeable.\n—;&ae8; print qq—

\nCan't set permissions on $b847 to $c057{'permissions'} via this program. Your server responded: $!.\n—;if ($fg15) { print qq—

\nIt appears that you either didn't set the proper permissions on the directory, or you didn't upload the $bpfa to the directory specified above. \nSubscribe Me Professional will not function without it!\n—;} print qq—

\nA server response of "Permission denied" or anything similiar usually means that you are not able to write to this directory. This may be because your permissions are set too low (use 777 if unsure), or you are not the "owner" of the directory (as far as Subscribe Me is concerned). If you have tried changing the permissions to no avail, create another directory using FTP and set the permissions of that directory at 777. Be sure to give the path to the new directory in LINE 2 of your configuration panel.

\n\nA server response of "No such file or directory" usually means that the path you specified\nin LINE 2 of the configuration panel does not exist. Double-check your path and correct\nthe path in LINE 2 of your configuration settings.

\n—;&aeb; unlink("$information/config.$c057{'extension'}"); $fg15 = ""; exit; } $permissions = oct($c057{'permissions'}); $information = "$c057{'information'}"; unless ($c057{'os'}) { if ($os) { $c057{'os'} = $os; } } unless ($c057{'extension'}) { if ($extension) { $c057{'extension'} = $extension; } } unless ($c057{'mailusing'}) { if ($mailusing) { $c057{'mailusing'} = $mailusing; } } if ($c057{'os'} eq 'unix') { unless (-e "$cgipath/unixmail_eng.$c057{'extension'}") { $b847 = "$cgipath/unixmail_eng.$c057{'extension'}"; $fg15 = "1"; $bpfa = "unixmail_eng.$c057{'extension'}"; &adn; exit; } } elsif ($c057{'os'} eq 'nt') { unless (-e "$cgipath/ntmail_eng.$c057{'extension'}") { $b847 = "$cgipath/ntmail_eng.$c057{'extension'}"; $fg15 = "1"; $bpfa = "ntmail_eng.$c057{'extension'}"; &adn; exit; } unless (-e "$cgipath/blatmail_eng.$c057{'extension'}") { $b847 = "$cgipath/blatmail_eng.$c057{'extension'}"; $fg15 = "1"; $bpfa = "blatmail_eng.$c057{'extension'}"; &adn; exit; } } if (lc $c057{'os'} eq 'nt') { chmod ($permissions,"$cgipath/blatmail_eng.$c057{'extension'}"); open (MAIL3,"<$cgipath/blatmail_eng.$c057{'extension'}") || die print "Can't find blatmail_eng.$c057{'extension'}"; @dbj5 = ; close(MAIL3); open (MAIL4, ">$cgipath/blat_mail.$c057{'extension'}") || die print "unable to create $cgipath/blat_mail.$c057{'extension'}. Check/increase your directory permission settings on your $cgipath directory"; chmod ($permissions,"$cgipath/blat_mail.$c057{'extension'}"); if ($LOCK_EX){ flock(MAIL4, $LOCK_EX); } print MAIL4 "#!$c057{'perlpath'}\n\n"; print MAIL4 "require \"$cgipath/config.$c057{'extension'}\";\n\n"; foreach $kh10(@dbj5) { chomp($ed48); print MAIL4 "$kh10"; } close(MAIL4); } if ($c057{'os'} eq 'unix') { chmod ($permissions,"$cgipath/unixmail_eng.$c057{'extension'}"); open (MAIL,"<$cgipath/unixmail_eng.$c057{'extension'}") || die print "Can't find unixmail_eng.$c057{'extension'}"; @eh3d = ; close(MAIL); open (MAIL2, ">$cgipath/unix_mail.$c057{'extension'}") or die &adh; sub adh{ $b847 = "$cgipath/unix_mail.$c057{'extension'}"; $fg15 = "1"; $bpfa = "unixmail_eng.$c057{'extension'}"; &adn; } chmod ($permissions,"$cgipath/unix_mail.$c057{'extension'}") || die print "Can't chmod unix_mail.$c057{'extension'} to $permissions : $!"; if ($LOCK_EX){ flock(MAIL2, $LOCK_EX); } print MAIL2 "#!$c057{'perlpath'}\n\n"; foreach $ed48(@eh3d) { chomp($ed48); print MAIL2 "$ed48\n"; } close (MAIL2); } elsif ($c057{'os'} eq 'nt') { chmod ($permissions,"$cgipath/ntmail_eng.$c057{'extension'}"); open (MAIL,"<$cgipath/ntmail_eng.$c057{'extension'}") || die print "Can't find ntmail_eng.$c057{'extension'}"; @eh3d = ; close(MAIL); open (MAIL2, ">$cgipath/nt_mail.$c057{'extension'}") or die print "unable to create cgipath/nt_mail.$c057{'extension'}. Check/increase your directory permission settings on your $cgipath directory"; chmod ($permissions,"cgipath/nt_mail.$c057{'extension'}"); if ($LOCK_EX){ flock(MAIL2, $LOCK_EX); } print MAIL2 "#!$c057{'perlpath'}\n\n"; foreach $ed48(@eh3d) { chomp($ed48); print MAIL2 "$ed48\n"; } close (MAIL2); } open(TEMP2, ">$cgipath/config.$c057{'extension'}") or die print "unable to create $cgipath/config.$c057{'extension'}. Check/increase your directory permission settings on your $cgipath directory"; chmod ($permissions,"$cgipath/config.$c057{'extension'}"); if ($LOCK_EX){ flock(TEMP2, $LOCK_EX); } unless (-e "$c057{'perlpath'}") { &ae6; &ade; &ae7; print qq—Path to Perl Does Not Exist.\n—;&ae8; print qq—

\nThe path/file $c057{'perlpath'} does not exist. Please verify that you have uploaded this file and that it is in the directory that you specified.

\n—;&ae9; print TEMP2 "1\;"; exit; } else { print TEMP2 "#!$c057{'perlpath'}\n\n"; print TEMP2 "\$perlpath = \"$c057{'perlpath'}\"\;\n"; } print TEMP2 "\$passfile = \"$information/pass\";\n"; print TEMP2 "\$memberinfo = \"$information/info\";\n"; print TEMP2 "\$trackdir = \"$information/trackdir\";\n"; print TEMP2 "\$tempdir = \"$information/tempdir\";\n"; print TEMP2 "\$maildir = \"$information/maildir\";\n"; print TEMP2 "\$lists = \"$information/lists\";\n"; print TEMP2 "\$bounces = \"$information/bounces\";\n"; print TEMP2 "\$removes = \"$information/removes\";\n"; print TEMP2 "\$graphics = \"$information/graphics\";\n"; unless ($c057{'mailusing'} eq 'sockets') { unless ($c057{'mailprog'}) { &ae6; &ade; &ae7; print qq—Variable #5
\nEnter a Mail Program Directory Path.\n\n—;&ae8; print qq—

\nWhen using either Sendmail or BLAT mailing, you must specify a directory\npath to the mail program. Contact your server administrator if you are unsure\nof that path.

\n\n—;&ae9; exit; } if (!(-e "$c057{'mailprog'}")) { &ae6; &ade; &ae7; print qq—Variable #5
\nInvalid Mail Program Directory.\n—;&ae8; print qq—

\nThe Mail Program path you gave in variable #5: $c057{'mailprog'} does not exist. Contact your server administrator if you are unsure of the path to your Mail Program (like Sendmail) path.

\n—;&ae9; exit; } else { print TEMP2 "\$mailprog = \"$c057{'mailprog'}\"\;\n"; } } if ($c057{'LOCK_EX'} == 2) { print TEMP2 "\$LOCK_EX = \"$c057{'LOCK_EX'}\"\;\n"; } else { print TEMP2 "\$LOCK_EX = \"\"\;\n"; } $i2hc = (length($c057{'websiteurl'})); if ($i2hc > 7) { print TEMP2 "\$websiteurl = \"$c057{'websiteurl'}\"\;\n"; } else { &ae6; &ade; &ae7; print qq—Variable #6
\nNo Website URL Given.\n—;&ae8; print qq—

\nPlease place your website URL path in variable #6. Your URL path should appear similar to: http://www.yourserver.com.

\n—;&ae9; exit; } print TEMP2 "\$os = \"$c057{'os'}\"\;\n"; print TEMP2 "\$mailusing = \"$c057{'mailusing'}\"\;\n"; print TEMP2 "\$smtp_addr = \"$c057{'smtp_addr'}\"\;\n"; print TEMP2 "\$cgipath = \"$c057{'cgipath'}\"\;\n"; print TEMP2 "\$extension = \"$c057{'extension'}\"\;\n"; print TEMP2 "\$information = \"$c057{'information'}\"\;\n"; print TEMP2 "\$notification = \"$c057{'notification'}\"\;\n"; print TEMP2 "\$username = \"$c057{'br_username'}\"\;\n"; print TEMP2 "\$config_session = \"$c057{'session'}\"\;\n"; print TEMP2 "\$admin_access = \"$c057{'admin_access'}\"\;\n"; print TEMP2 "\$permissions = \"$c057{'permissions'}\"\;\n\n"; if (!(-e "$information")) { mkdir("$information",$permissions) || die &adi; chmod ($permissions,"$information") || die &adi; sub adi{ $b847 = "$information"; &adn; } } else { } if (!(-e "$information/info")) { mkdir("$information/info",$permissions) || die &adk; chmod ($permissions,"$information/info") || die &adk; sub adk{ $b847 = "$information/info"; &adn; } } else { chmod ($permissions,"$information/info") || die &adk; } if (!(-e "$information/trackdir")) { mkdir("$information/trackdir",$permissions) || die &adm; chmod ($permissions,"$information/trackdir")|| die &adm; sub adm{ $b847 = "$information/trackdir"; &adn; } } else { chmod ($permissions,"$information/trackdir")|| die &adm; } if (!(-e "$information/maildir")) { mkdir("$information/maildir",$permissions) || die &ado; chmod ($permissions,"$information/maildir")|| die &ado; sub ado{ $b847 = "$information/maildir"; &adn; } } else { chmod ($permissions,"$information/maildir")|| die &ado; } if (!(-e "$information/graphics")) { mkdir("$information/graphics",$permissions) || die &adp; chmod ($permissions,"$information/graphics")|| die &adp; sub adp{ $b847 = "$information/graphics"; &adn; } } else { chmod ($permissions,"$information/graphics")|| die &adp; } if (!(-e "$information/lists")) { mkdir("$information/lists",$permissions) || die &ae2; chmod ($permissions,"$information/lists")|| die &ae2; sub ae2{ $b847 = "$information/lists"; &adn; } } else { chmod ($permissions,"$information/lists")|| die &ae2; } if (!(-e "$information/lists/.htaccess")) { open(HTACCESS,">$information/lists/.htaccess"); print HTACCESS qq—\ndeny from all\n \n—;} if (!(-e "$information/pass")) { mkdir("$information/pass",$permissions) || die &ae3; chmod ($permissions,"$information/pass")|| die &ae3; sub ae3{ $b847 = "$information/pass"; &adn; } } else { chmod ($permissions,"$information/pass")|| die &ae3; } if (!(-e "$information/pass/.htaccess")) { open(HTACCESS,">$information/pass/.htaccess"); print HTACCESS qq—\ndeny from all\n \n—;} if (!(-e "$information/tempdir")) { mkdir("$information/tempdir",$permissions) || die &ae5; chmod ($permissions,"$information/tempdir")|| die &ae5; sub ae5{ $b847 = "$information/tempdir"; &adn; } } else { chmod ($permissions,"$information/tempdir")|| die &ae5; } if (!(-e "$information/tempdir/.htaccess")) { open(HTACCESS,">$information/tempdir/.htaccess"); print HTACCESS qq—\ndeny from all\n \n—;} if (!(-e "$information/bounces")) { mkdir("$information/bounces",0777) || die &adb; chmod (0777,"$information/bounces")|| die &adb; sub adb{ $b847 = "$information/bounces"; &adn; } } else { chmod (0777,"$information/bounces")|| die &adb; } if (!(-e "$information/bounces/.htaccess")) { open(HTACCESS,">$information/bounces/.htaccess"); print HTACCESS qq—\ndeny from all\n \n—;} if (!(-e "$information/removes")) { mkdir("$information/removes",$permissions) || die &adc; chmod ($permissions,"$information/removes")|| die &adc; sub adc{ $b847 = "$information/removes"; &adn; } } else { chmod ($permissions,"$information/removes")|| die &adc; } if (!(-e "$information/removes/.htaccess")) { open(HTACCESS,">$information/removes/.htaccess"); print HTACCESS qq—\ndeny from all\n \n—;} sub ad9{ print qq—$k8n7 Upload Directorys already exist. Subscribe Me will not overwrite your\nexisting directories for the security of your files. Please FTP into your web account\nand delete these directories manually.\n

\n—;if (-e "$information/info") { print "$information/info
"; } if (-e "$information/pass") { print "$information/pass
"; } } print TEMP2 "\$ready = \"1\"\;\n\n"; print TEMP2 "1\;"; close (TEMP2); opendir (DIR, "$cgipath"); @e5gn = grep { /.gif/} readdir(DIR); close (DIR); foreach $k2l4(@e5gn) { open (GRAPHICS,"<$cgipath/$k2l4") || print "Error: $!"; @akof = ; close(GRAPHICS); open (GRAPHICS2, ">$information/graphics/$k2l4") || print "Error $!"; if ($os eq 'nt') { binmode(IMAGE); binmode(STDOUT); } if ($LOCK_EX){ flock(MAIL2, $LOCK_EX); } foreach $ed48(@akof) { chomp($ed48); print GRAPHICS2 "$ed48\n"; } close (GRAPHICS2); } open (SIGNUP,">$information/info/default.signup"); if ($LOCK_EX){ flock(SIGNUP, $LOCK_EX); } print SIGNUP qq—This message is to confirm the addition of your\nemail address: to the \nSubscribe Me mailing list.\n\nIf you feel you have received this notice in error,\nplease visit the Subscribe Me mailing list\nat our website: \nto remove yourself automatically, or click the link below:\n\nhttp://?r=1&l=&e=\n\nThank you,\n\n\n\n—;close(SIGNUP); open (SIGNUP,">$information/info/default.removal"); if ($LOCK_EX){ flock(SIGNUP, $LOCK_EX); } print SIGNUP qq—This message is to confirm the removal of your\nemail address: from the \nSubscribe Me mailing list.\n\nWe're sorry to see you go!\n\nIf you feel you have received this notice in error,\nplease visit the Subscribe Me mailing list\nat our website: \nto add yourself automatically, or click on the link\nbelow to automatically re-subscribe yourself:\n\nhttp://?a=1&l=&e=\n\nThank you,\n\n\n\n—;close(SIGNUP); open (HEADER,">$information/lists/default.header"); if ($LOCK_EX){ flock(HEADER, $LOCK_EX); } print HEADER "$c057{'headerinfo'}"; close(HEADER); open (FOOTER,">$information/lists/default.footer"); if ($LOCK_EX){ flock(FOOTER, $LOCK_EX); } print FOOTER "$c057{'footerinfo'}"; close(FOOTER); sub ade{ if (-e "$graphics/sub3.gif") { print qq—
Version $fnl8\n—;} } sub ae6{ print qq—
\n
\n\n—;} sub ae7{ print qq—
\n\n

$bcnb Status:
\n—;} sub ae8{ print qq—

\n—;} sub ae9{ print qq—

Press your "BACK" button to return to the installation form or use this button if your browser supports Javascript
\n
\n
\n—;} sub aeb{ print qq—\n
Once you have changed the permission on this directory to 777, press the CONTINUE BUTTON below.\n
\n\n—;} &ae4; unless (-e "$information/pass/password.txt") { &ad0; &ac1; print qq—
\n

\n \n \n \n \n \n
\n \n

Subscribe\n Me Status: Set Password!

\n \n

You have not yet\n set your administration password! Please enter your password below,\n once to set the password and the second time to confirm it.

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
password
confirmation

\n

\n
\n—;&abb; &aap; exit; } &ad0; &ac0; print qq—
\n

Subscribe Me\n $fnl8 - Enterprise Edition Update Successful!

\n \n \n \n \n \n
\n
\n \n \n \n
\n—;$g5cg = $ENV{'SCRIPT_NAME'}; $g5cg =~ s/setup\.cgi$/s\.cgi/; $g5cg =~ s/setup\.pl$/s\.pl/; print qq—
\n—;&abb; &aap; exit; } sub ae4{ opendir (DIR, "$cgipath"); @g6j6 = grep { /_eng.$c057{'extension'}/} readdir(DIR); close (DIR); foreach $ed48(@g6j6) { unless (($ed48 =~ /ntmail/) || ($ed48 =~ /unixmail/) || ($ed48 =~ /socketsmmail/) || ($ed48 =~ /blatmail/)) { $ed48 =~ s/.pl//g; $ed48 =~ s/.cgi//g; $j715 = $ed48; $j715 =~ s/_eng//g; open (ENGINE,"<$cgipath/$ed48.$c057{'extension'}") || die print "Can't find $ed48.$c057{'extension'}"; @bg5c = ; close(ENGINE); if ($j715 eq 'subscribe') { $j715 = 's'; } open (TEMP3, ">$cgipath/$j715.$c057{'extension'}") or die print "unable to create $cgipath/$j715.$c057{'extension'}. Check/increase your directory permission settings on your $cgipath directory"; chmod ($permissions,"$cgipath/$j715.$c057{'extension'}"); if ($LOCK_EX){ flock(TEMP3, $LOCK_EX); } print TEMP3 "#!$c057{'perlpath'}\n\n"; print TEMP3 "require \"$cgipath/config.$c057{'extension'}\";\n\n"; print TEMP3 "require \"$cgipath/$c057{'os'}_mail.$c057{'extension'}\";\n\n"; foreach $ed48(@bg5c) { chomp($ed48); print TEMP3 "$ed48\n"; } close (TEMP3); } } sub aea{ print "Content-type: text/html\n\n"; &ad0; &ac1; print qq—\n
\n

\n \n \n \n \n \n
\n \n

Subscribe\n Me Status: Set Password!

\n \n

You have not yet\n set your administration password! Please enter your password below,\n once to set the password and the second time to confirm it.

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
password
confirmation

\n

\n
\n—;&abb; &aap; exit; } sub ae0{ $kf8a = ""; if (-e "$passfile/password.txt") { print "Content-type: text/html\n\n"; print "Password already exists. Please delete your password file manually if you want to reset your password
"; exit; } unless ($c057{'pwd'} && $c057{'pwd2'}) { unless ($kf8a) { print "Content-type: text/html\n\n"; } $kf8a = 1; &ad0; &ac1; print qq—\n
\n

\n \n \n \n \n \n
\n \n

Subscribe\n Me Status: Password Error!

\n \n

Please enter your\n password twice. Once to set it, and once to confirm it.

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
password
confirmation

\n

\n
\n—;&abb; &aap; exit; } unless ($kf8a) { print "Content-type: text/html\n\n"; } $kf8a = 1; if ($c057{'pwd'} && $c057{'pwd2'}) { if ($c057{'pwd'} ne $c057{'pwd2'}) { &ad0; &ac1; print qq—\n\n
\n

\n \n \n \n \n \n
\n \n

Subscribe\n Me Status: Password Mismatch!

\n \n

The confirmation\n password you entered did not match the orginal password. Please try\n again.

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
password
confirmation

\n

\n
\n\n—;&abb; &aap; exit; } } chop ($gbjh) if ($gbjh =~ /\n$/); $h4pj = crypt($c057{'pwd'}, aa); open (PASSWORD, ">$passfile/password.txt")|| die print "Unable to create $passfile/password.txt file. Check your directory permissions"; if ($LOCK_EX){ flock(PASSWORD, $LOCK_EX); } print PASSWORD "$h4pj"; close (PASSWORD); unless ($kf8a) { print "Content-type: text/html\n\n"; } $kf8a = 1; &ad0; &ac1; print qq—
\n \n

Subscribe Me\n $fnl8 - Enterprise Edition Update Successful!

\n \n \n \n \n \n
\n
\n \n \n \n
\n—;$g5cg = $ENV{'SCRIPT_NAME'}; $g5cg =~ s/setup\.cgi$/s\.cgi/; $g5cg =~ s/setup\.pl$/s\.pl/; print qq—
\n—;&abb; &aap; exit; } } sub adl{ unless (-e "$passfile/password.txt") { &aea; } print "Content-type: text/html\n\n"; print "Congratulations, your installation is successful"; exit; } sub ac9{ open (PASSWORD, "$passfile/password.txt"); if ($LOCK_EX){ flock(PASSWORD, $LOCK_EX); } $agdf = ; close (PASSWORD); chop ($agdf) if ($agdf =~ /\n$/); if ($c057{'pwd'}) { $h4pj = crypt($c057{'pwd'}, 'aa'); } else { print "Content-type: text/html\n\n"; &ad0; print qq—

\n

Subscribe Me Professional Status: Password Error!

\n

Please enter your password!

\n

\nMaintained with Subscribe Me Professional $fnl8 - Enterprise Edition
\n—;&aap; exit; } unless ($h4pj eq $agdf) { print "Content-type: text/html\n\n"; &ad0; print qq—

Subscribe Me $fnl8 - Enterprise Edition Update Successful!

\n\n\n
Subscribe Me!
Version $fnl8
CGI Script Center Install-a-Script

PROGRAM: Subscribe Me! $fnl8 - Enterprise Edition

Your update was successful!

\n\n\n

\n—;$g5cg = $ENV{'SCRIPT_NAME'}; $g5cg =~ s/setup\.cgi$/s\.cgi/; $g5cg =~ s/setup\.pl$/s\.pl/; print qq—
\n\n
\n—;&abb; &aap; exit; } } sub ac3{ if (-e "$passfile/password.txt") { print "Content-type: text/html\n\n"; &ad0; &ac1; print qq—\n \n
\n \n
\n \n \n \n \n \n \n \n \n
\n \n

Subscribe\n Me Status:
\n Administration Password

\n \n

The Administration\n section is restricted to authorized individuals only. Please enter the\n Administration password below.

\n
\n \n \n \n \n \n \n \n \n
Password
\n

\n

\n Enable Javascript\n on your web browser to see script update information below.
\n
\n \n \n \n \n \n \n \n
Version Information
\n \n \n \n \n \n\n\n \n
Your\n Version:$fnl8
\n\n

\n \n \n \n \n \n \n \n
News Updates
\n \n\n \n

\n—;&abb; &aap; exit; } else { print "Content-type: text/html\n\n"; &ad0; &ac1; print qq—\n
\n \n

\n \n \n \n \n \n
\n \n

Subscribe\n Me Status: Set Password!

\n \n

You have not yet\n set your administration password! Please enter your password below,\n once to set the password and the second time to confirm it.

\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
password
confirmation

\n

\n
\n—;&abb; &aap; exit; } } sub ac9{ open (PASSWORD, "$passfile/password.txt"); if ($LOCK_EX){ flock(PASSWORD, $LOCK_EX); } $agdf = ; close (PASSWORD); chop ($agdf) if ($agdf =~ /\n$/); if ($c057{'pwd'}) { $h4pj = crypt($c057{'pwd'}, 'aa'); } else { print "Content-type: text/html\n\n"; &ad0; print qq—

\n

Subscribe Me Professional Status: Password Error!

\n

Please enter your password!

\n

$e09k\nmaintained with Subscribe Me Professional $fnl8 - Enterprise Edition
\n—;&aap; exit; } unless ($h4pj eq $agdf) { print "Content-type: text/html\n\n"; &ad0; print qq—

\n

Subscribe Me Professional Status: Password Error!

\n

Incorrect password! Please enter the correct password.

\n

\nMaintained with Subscribe Me Professional $fnl8 - Enterprise Edition
\n—;exit; } } sub aci{ open (PASSWORD, "$passfile/password.txt"); if ($LOCK_EX){ flock(PASSWORD, $LOCK_EX); } $agdf = ; close (PASSWORD); chop ($agdf) if ($agdf =~ /\n$/); if ($c057{'pwd'}) { $h4pj = crypt($c057{'pwd'}, 'aa'); } else { print "Content-type: text/html\n\n"; print "Subscribe Me: Password Error!

Please enter your password!


Maintained with Subscribe Me $fnl8 - Enterprise Edition
"; exit; } unless ($h4pj eq $agdf) { print "Content-type: text/html\n\n"; print "Subscribe Me: Password Error!

Incorrect password! Please enter the correct password.


Maintained with Subscribe Me $fnl8 - Enterprise Edition
"; exit; } &ab0; &ae1; } sub ab0{ &ac9; $i4ae = time(); srand($i4ae); $ka0h =""; @bjn9 = ('a'..'z', 'A'..'Z', '1'..'9'); for ($i4m8 = 0; $i4m8 < 15; $i4m8++) { $com8 = int(rand($#bjn9 + 1)); $ka0h .= @bjn9[$com8]; } open(SESSIONID, ">$memberinfo/session.id"); if ($LOCK_EX){ flock(SESSIONID, $LOCK_EX); } print SESSIONID "$ka0h"; close(SESSIONID); $cbop = "$ka0h"; open(SESSIONTIME, ">$memberinfo/session.time"); if ($LOCK_EX){ flock(SESSIONTIME, $LOCK_EX); } print SESSIONTIME "$i4ae"; close(SESSIONTIME); } sub ac5{ $i4ae = time(); open(SESSIONTIME, "<$memberinfo/session.time"); if ($LOCK_EX){ flock(SESSIONTIME, $LOCK_EX); } $h9ae = ; close(SESSIONTIME); $hbdc = $i4ae - $h9ae; open(SESSIONID, "<$memberinfo/session.id"); if ($LOCK_EX){ flock(SESSIONID, $LOCK_EX); } $fhh7 = ; close(SESSIONID); unless (($c057{'session_id'} eq "$fhh7") && ("$hbdc" < "$config_session") && ($fhh7)) { &ac3; exit; } open(SESSIONTIME, ">$memberinfo/session.time"); if ($LOCK_EX){ flock(SESSIONTIME, $LOCK_EX); } print SESSIONTIME "$i4ae"; close(SESSIONTIME); } sub add{ print "Content-type: image/gif\n"; print "\n"; $g6j6 = "$information/graphics/sub3.gif"; open (IMAGE, "<$g6j6") || die "Can't open $g6j6: $!"; if (($c057{'os'} eq 'nt') || ($os eq 'nt')) { binmode(IMAGE); binmode(STDOUT); } while () { print ""; } close(IMAGE); } sub ad0{ if (-e "$lists/default.header") { open (FILE,"<$lists/default.header"); if ($LOCK_EX){ flock(FILE, $LOCK_EX); } @hgee = ; close(FILE); print ""; foreach $hpo6(@hgee) { $hpo6 =~ s/<\/HEAD>/