#!/usr/bin/perl use HTML::Absolute; require "alig"; require "/home/mackers/cgi-lib.pl"; &ReadParse; system("/home/mackers/www/alig/count"); print "Content-type:text/html\n\n"; $_ = $in{'text'}; if (/^((http)|(www))/) { $in{'text'} =~ s/(\n|\r)//g; @html = &absolute($in{'text'}); @images = ; #print join (";;",@html); foreach $line (@html) { unless ($line=~/(<.*?>)/s) { $line = &translate($line); #$line = `echo \"$line\" | /home/mackers/www/alig/alig`; } else { if (($line=~/2)){ my $image = $images[rand($#images)]; $image =~ s/\/home\/mackers\/www\//http:\/\/mackers.com\//i; $line =~ s/(/g; $out =~ s/(
)$//g; } open (TOP, "/home/mackers/www/alig/top.shtml"); while (){print $_} close (TOP); print "
\n"; print "
\n"; print ""; print "$out\n

\n"; print "
\n
\n
\n
\n"; print "\t\t
\n"; print "\t\t\n"; print "\t\t\n
\n"; open (BOT, "/home/mackers/www/alig/bot.shtml"); while (){ if (//) { print `cat /home/mackers/www/alig/count.dat`; print " "; } else { print $_; } } close (BOT); } sub logthis { open (CMD, "nslookup $ENV{'REMOTE_ADDR'} |"); while () { $ns = $_ if (/Name/); } close (CMD); $ns =~ s/(Name:)|( )|(\t)//g; $ns =~ s/\n//g; open (OUT,">>/home/mackers/www/alig/log"); my $log = $_[0] . "\n\n"; $log =~ s/\r//g; $log =~ s/\n\n/\n/g; $time = gmtime; print OUT "--- $time $ns ".$ENV{'HTTP_REFERER'}." ---\n"; print OUT $log; close (OUT); }