#!/usr/bin/perl # #!/usr/local/bin/perl # ^~~ use this on top instead if script not working # Auto Fkey Saver version 2.1 Released 8-16-2000 # by NESGamepro http://www.wtv-zone.com/nesgamepro # This Auto Fkey is the Šopyright property of NESGamepro, # permission is granted for personal use only. It may not # be used for financial gain in any way shape or form. # Rename this file to anything .pl or anything.cgi and Change # Permissions (CHMOD) to 755 # START Optional Settings # Page URLs - Change these for increased security # ie. http://you.hypermart.net/fkey.pl?mode=fkey $main = "fkey"; $add = "add"; $notepad = "notes"; $admin = "admin"; $searchmode = "search"; $setup = "setup"; $help = "help"; # Custom Settings Saved here $setfile = "db/settings.txt"; # Category files -- Links Saved in files below # Box# -File- Box# -File- $b1dat ="db/b1.txt"; $b2dat= "db/b2.txt"; $b3dat= "db/b3.txt"; $b4dat= "db/b4.txt"; $b5dat= "db/b5.txt"; $b6dat= "db/b6.txt"; $b7dat= "db/b7.txt"; $b8dat= "db/b8.txt"; $b9dat= "db/b9.txt"; $b10dat= "db/b10.txt"; $b11dat= "db/b11.txt"; $b12dat= "db/b12.txt"; $b13dat= "db/b13.txt"; $b14dat= "db/b14.txt"; $b15dat= "db/b15.txt"; $b16dat= "db/b16.txt"; $b17dat= "db/b17.txt"; $b18dat= "db/b18.txt"; $b19dat= "db/b19.txt"; $b20dat= "db/b20.txt"; $b21dat= "db/b21.txt"; # END Optional Settings # WARNING: If you edit between the the warning # # signs, you do so at your own risk. # # Your links however, will still be safe # ## BEGIN - GET SETTINGS use CGI; $q = new CGI; open(VARS,"$setfile"); $varFiletxt=; close(VARS); if ($varFiletxt ne "") { @varData = split(/§/,$varFiletxt); foreach $i (@varData) { ($b1Name,$b2Name,$b3Name,$b4Name,$b5Name,$b6Name,$b7Name,$b8Name,$b9Name,$b10Name,$b11Name,$b12Name,$b13Name,$b14Name,$b15Name,$b16Name,$b17Name,$b18Name,$b19Name,$b20Name,$b21Name,$title,$logoURL,$addy,$header,$bgclr,$text,$link,$vlink,$btxt,$intxt,$txtbg,$linkpanel,$custOn,$custom,$cust2On,$custom2,$clock,$shownote,$grownote,$searchbox,$recents,$navpanel,$showDelAll,$border,$navpanel2,$clockclr,$nothing) = split(/\|/, $i); } } # Default Settings else { $b1Name="Button 1"; $b2Name="Button 2"; $b3Name="Button 3"; $b4Name="Button 4"; $b5Name="Button 5"; $b6Name="Button 6"; $b7Name="Button 7"; $b8Name="Button 8"; $b9Name="Button 9"; $b10Name="Button 10"; $b11Name="Button 11"; $b12Name="Button 12"; $b13Name="Button 13"; $b14Name="Button 14"; $b15Name="Button 15"; $b16Name="Button 16"; $b17Name="Button 17"; $b18Name="Button 18"; $b19Name="Button 19"; $b20Name="Button 20"; $b21Name="Button 21"; $title="Auto Fkey Saver"; $logoURL="http://www.wtv-zone.com/nesgamepro/pics/autofkeylogo.gif"; $addy="Auto Fkey Saver by NESGamepro"; $header="#315896"; $bgclr="#181818"; $text="#44EE66"; $link="gold"; $vlink="#29874A"; $btxt="blue"; $intxt="gold"; $txtbg="#181818"; $linkpanel="on"; $custOn=""; $custom="http://"; $cust2On="on"; $custom2="http://www.wtv-zone.com/nesgamepro/autofkey/helpv2.html"; $clock=""; $shownote="on"; $grownote=""; $searchbox="on"; $recents="0"; $navpanel="on"; $showDelAll=""; $border="on"; $navpanel2=""; $clockclr="#44EE66"; $nothing=""; } # HTML SHORTCUTS $h1clr = "font color=$header"; $hr ="hr invertborder"; $btn = "input type=button text=$btxt"; $submit = "input type=submit text=$btxt"; $textbox = "input type=text bgcolor=$txtbg text=$intxt cursor=$intxt"; $hide = "input type=hidden"; $OpV = "option value"; ## END GET SETTINGS -- BEGIN MAIN LINK PAGE print "Content-type: text/html\n\n"; $mode = $q->param("mode"); if ($mode eq "$main" || $mode eq "") { &head; &body; if ($custOn eq "on") { print ""; } if ($clock eq "top") { &Clock; } $col1 = '
"; print "$col2 text=$btxt>"; if ($recents == 2) { &recents; } if ($recents != 2) { print "