Time: Sat Feb 14 20:47:31 2026 CST Player:(#-11984) {{#1485, "get_content", #768, #1485, #-11984, 9}, {#648, "find_page", #101, #648, #-11984, 23}, {#648, "get", #101, #648, #-11984, 3}, {#650, "GET", #101, #650, #-11984, 64}} #1485:get_content(this none this) {path, headers, authorization} = args; if (length(path) != 1 || !valid(toobj(path[1]))) object = $player_start; else object = toobj(path[1]); endif page = {"
Blackwood Browser on " + object.name + " "}; page = {@page, "Back to the Blackwood Interactive Map
"}; desc = object.description ? object.description | "(not set)"; if (typeof(desc) == LIST) temp_desc = {}; for desc_line in (desc) temp_desc = {@temp_desc, desc_line + "
"}; endfor desc = temp_desc; else desc = {desc}; endif location = object.location; contents = object.contents; page = {@page, object.name + " (" + tostr(object) + ")
"}; if (valid(location)) locationstr = "Location: " + location.name + " (" + tostr(location) + ")"; else locationstr = ""; endif page = {@page, locationstr + "
"}; page = {@page, "Description:
", @desc, "
"}; counter = 1; maxcounter = length(contents); contentstr = ""; while (counter <= maxcounter) if (contents[counter] in players() && !(contents[counter] in connected_players())) else contentstr = contentstr + "" + contents[counter].name + " (" + tostr(tonum(contents[counter])) + ")
"; endif counter = counter + 1; endwhile if ($object_utils:has_property(object, "exits")) exitstr = "Exits:
"; counter = 1; while (counter <= length(object.exits)) if ($object_utils:isa(object.exits[counter], $g.gui_exit)) exitstr = exitstr + "" + object.exits[counter].name + "
"; endif counter = counter + 1; endwhile else exitstr = ""; endif page = {@page, exitstr}; page = {@page, "Contents:
" + contentstr + "
"}; page = {@page, ""}; return {"text/html", page};