View/Edit #330:tell_www_page

Switch to edit mode.

Name(s): tell_www_page
1:  "Find the arguments for this page (first from the GET parameters, then from the cookie, and finally the defaults)"
2:  if (!player:isa($webber) || caller != $www)
3:    raise(E_PERM)
4:  elseif (prepstr == "/sidebar")
5:    return this:tell_www_sidebar()
6:  elseif (dobjstr)
7:    options = $list_utils:slice(dobj)
8:  elseif (cookie = listassoc(player.cookies, "330"))
9:    options = $string_utils:explode(cookie[2], "_")
10: else
11:   options = {"Rank", "Location"}
12: endif
13: "Sent a cookie to the browser for the next time."
14: player:set_cookie($string_utils:from_list(options, "_"))
15: return pass(options)
16: "Last modified by Lao-Tzu (#8084) on Wed Apr 19 09:06:09 2000 EDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Dax (#789)

You are not logged in.

[home | help | who | search | setup | code]