Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (16 sloc) 497 Bytes
#!/usr/bin/python
from webserver_utils import verify_id, print_redirect
import cgi
import cgitb
cgitb.enable()
q = cgi.FieldStorage()
playerName = q.getfirst("playerName", "")
avatarURL = q.getfirst("avatarURL", "")
langPref = q.getfirst("langPref", "")
player = verify_id()
if (playerName != "" and avatarURL != "" and player != None):
player.name = playerName
player.avatarURL = avatarURL
if langPref != "":
player.langPref = langPref
print_redirect("listlevels.py")