#!/usr/bin/perl #************************************************************************ # TD Keno 1.11 * # Scripted by T.David * # tdkeno.cgi * # Original Creation: 9/26/99 * # Last Modified: 1/12/2000 * # * # Available at http://www.tdscripts.com/ * # * # COPYRIGHT NOTICE * # Copyright 1999-2000 KMR Enterprises All Rights Reserved * # * # By using this script you agree to indemnify us from any liability * # that might arise from its use. This copyright notice MUST * # remain in tact in order to legally use this script. Removal and/or * # modification of the copyright notice voids registration. * # * # You do *NOT* have permission to redistribute or sell the code for * # this program. This script is *NOT* freeware. It can be purchased * # and legally registered by visiting http://www.tdscripts.com/ * # * # VERSION HISTORY # 1.11 - fixed security setting bug * # 1.1 - added ability to change text and background colors, some minor * # formatting for Netscape browsers plus a filewriting fix (12/11) * # 1.0 - orig release (9/26) * # * ########################################################################## ########## Don't modify anything below this line ################# ########################################################################## require "setup.lib"; $match = 0; &parse_form; print "Content-type: text/html\n\n"; if ($security_option eq "yes") { &security; } if ($formdata{'react'} eq "highscore") { &highscore; } if ($formdata{'react'} eq "play") { &play; } if ($formdata{'react'} eq "play2") { &play2; } if ($formdata{'react'} eq "fillform") { &testspots; } if ($formdata{'react'} eq "securitylogin") { &securityloginverify; } else { &securitylogin; } sub security { $comingfrom = $ENV{'HTTP_REFERER'}; unless ($comingfrom =~ m#$mydomain#) { print "
$version can't be run from "; if ($comingfrom eq "") { print "bookmarks or type ins, sorry"; } else { print "$comingfrom, sorry."; } exit; } } sub securitylogin { &header; &table; print "Please enter your valid email address and password to play keno
\n"; &table2; print ""; &tableclose; if ($linkback eq "yes") { &td; } exit; } sub default { &header; &identify; print "