@verb #330:"tell_www_body" this none this rxdo #789
@program #330:"tell_www_body" this none this
"Print a custom header message."
caller == this || raise(E_PERM)
player:tell("
")
player:tell("
The following players are currently online:
")
"args[3] is a list of options that were determined in tell_www_page."
options = args[$]
rank = "Rank" in options
location = "Location" in options
times = "Times" in options
network = "Network" in options && player.user:isa($guardian)
email = player.user.wizard && "Email" in options
line = {"Player"}
rank && (line = {@line, "Rank"})
location && (line = {@line, "Location"})
times && (line = {@line, "Connect Time", "Idle Time"})
network && (line = {@line, "Network"})
email && (line = {@line, "E-mail"})
info = {line}
for dude in (setremove(connected_players(), player))
$command_utils:suspend_if_needed()
if (dude:isa($player))
line = {tostr("", `dude:title() ! ANY => dude.name', " (", dude, ")")}
else
line = {tostr("", `dude:title() ! ANY => dude.name', " (", dude, ")")}
endif
rank && (line = {@line, $object_utils:rank(dude)})
if (location)
loc = dude.location
line = {@line, tostr("", loc:title(), "")}
endif
if (times)
line = {@line, $string_utils:from_seconds(dude:connected_seconds()), $string_utils:from_seconds(dude:idle_seconds())}
endif
if (network)
line = {@line, $string_utils:connection_hostname(connection_name(dude))}
endif
if (email)
address = `dude:isa($webber) ? dude.user.email_address | dude.email_address ! E_PROPNF'
line = {@line, address ? tostr("", address, "") | " "}
endif
info = {@info, line}
endfor
if (length(info))
player:tellColumns($list_utils:make(length(info[1])), @info)
else
player:tell("I don't see anyone online.")
endif
player:tell("")
if (!player.user_agent)
"The GET request may arrive before the User_Agent info."
suspend(1)
endif
if (index(player.user_agent, "Mozilla"))
player:tell("This page will automatically reload every ", $tcm ? "five minutes." | "minute.")
player:tell(this.addfunction)
player:tell("
Add the Moo who listing to your Mozilla/Netscape 6 sidebar.")
player:tell("
Add to IE Active Desktop.")
endif
"Last modified by Dax (#789) on Thu May 5 15:58:43 2005 MDT."
.