Monday, November 08, 2010 at 12:04 AM.

on default () {
		<<6/6/02; 12:05:18 PM by JES
	local (pta = html.getPageTableAddress ());
	pta^.title = "Sites on this server";
	local (htmltext = "", indentlevel = 0);
	on add (s) {
		htmltext = htmltext + (string.filledString ("\t", indentlevel) + s + "\r\n");};
	if defined (pta^ { //manage one site
		local (adrcache = mainResponder.adminSite.macros.initSiteListCache ());
		local (adrinfo = @adrcache^.sites.[pta^]);
		add (mainResponder.adminSite.macros.manageSite (adrinfo))}
	else { //list sites
		table.assign (@pta^.template, string (pta^.homeTemplate^));
		add (mainresponder.adminSite.macros.listSites ())};
	return (htmltext)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.