home *** CD-ROM | disk | FTP | other *** search
- global domainList, author, version, domainName, ezoneControl
-
- on initProtection
- repeat with i = 1 to 48
- puppetSprite(i, 0)
- set the visible of sprite i to 1
- end repeat
- domainList = ["ezone.com", "lennyinspace.com", "loosejocks.com", "pussuckers.com"]
- case the runMode of
- "plugin":
- if voidp(ezoneControl) then
- if the moviePath contains "http://" then
- urlOK = 0
- getDomainName()
- repeat with i in domainList
- if domainName = i then
- urlOK = 1
- exit repeat
- end if
- end repeat
- if not urlOK then
- jumpOut("Sorry, you can't play this game here, but you can play it at Ezone.com")
- end if
- else
- end if
- else
- init(ezoneControl)
- puppetSprite(2, 1)
- set the member of sprite 2 to member("sponsor")
- end if
- "author":
- if voidp(author) then
- jumpOut("Sorry, you can't play this game here, but you can play it at Ezone.com")
- end if
- "projector":
- if voidp(ezoneControl) then
- jumpOut("Sorry, you can't play this game here, but you can play it at Ezone.com")
- else
- init(ezoneControl)
- puppetSprite(2, 1)
- set the member of sprite 2 to member("sponsor")
- end if
- end case
- end
-
- on savedLocal
- if voidp(ezoneControl) then
- getNetText("http://www.ezone.com/cgi-bin/smlog.cgi?type=addlog&game=" & the movieName)
- alert("Be sure to check out http://www.ezone.com for more great games to download with your shockMachine!")
- else
- smlog(ezoneControl)
- end if
- end
-
- on getDomainName
- domainName = EMPTY
- fullPath = the moviePath
- delete char 1 to 7 of fullPath
- repeat with i = 1 to length(fullPath)
- if char i of fullPath = "/" then
- exit repeat
- next repeat
- end if
- domainName = domainName & char i of fullPath
- end repeat
- repeat with i = 1 to length(domainName)
- if char i of domainName = "." then
- cutOff = i
- exit repeat
- end if
- end repeat
- domainName = char cutOff + 1 to length(domainName) of domainName
- end
-
- on jumpOut whatMessage
- alert(whatMessage)
- gotoNetPage("http://www.ezone.com")
- go("theEnd")
- quit()
- end
-
- on goHighScores
- if voidp(ezoneControl) then
- go("credits")
- else
- goHighScores(ezoneControl)
- end if
- end
-