home *** CD-ROM | disk | FTP | other *** search
- on Encrypt theText
- set c to "o76pURecB5xjQWN0;KPDbditFZufJVv319YE@I8rmMhqHA_wl-a!g,zsTyX:.nOSGC4kL2"
- set encrypted to EMPTY
- set asciiOff to 7
- repeat with x = 1 to length(theText)
- put EncryptChar(asciiOff, c, char x of theText) after encrypted
- set num to charToNum(char x of theText)
- set asciiOff to integer(char 1 of string(num))
- end repeat
- return encrypted
- end
-
- on myOffSet theChar, theText
- set textLen to length(theText)
- set ascii to charToNum(theChar)
- repeat with x = 1 to textLen
- if charToNum(char x of theText) = ascii then
- return x
- end if
- end repeat
- return 0
- end
-
- on Randomize
- set chars to "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789:;.,_!-@"
- set newChars to EMPTY
- repeat while length(chars) > 0
- set r to random(length(chars))
- put char r of chars after newChars
- delete char r of chars
- end repeat
- return newChars
- end
-
- on EncryptChar off, chars, theChar
- set charsLen to length(chars)
- set w to myOffSet(theChar, chars)
- if w > 0 then
- if (w + off) <= charsLen then
- set newChar to w + off
- else
- set newChar to w + off - charsLen
- end if
- return char newChar of chars
- else
- return theChar
- end if
- end
-
- on StripChar theText, badChar, goodChar
- set w to offset(badChar, theText)
- repeat while w > 0
- put goodChar into char w of theText
- set w to offset(badChar, theText)
- end repeat
- return theText
- end
-
- on send
- global name, email, city, state, country, score, level, today
- if level = 20 then
- set level to "10-Completed"
- end if
- set args to score & "," & level & "," & name & "," & email & "," & city & "," & state & "," & country & "," & today
- set myscore to Encrypt(args)
- if name = EMPTY then
- gotonetpage("http://www.bznet.com/cgi-bin/game-land/galactic/savegalactic1.pl")
- else
- gotonetpage("http://www.bznet.com/cgi-bin/game-land/galactic/savegalactic1.pl?" & myscore)
- end if
- end
-