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

system.verbs.builtins.webserver.util.directoryDisplay.add

<<Script: system.verbs.builtins.webserver.util.directoryDisplay.add; Version 2; Date: Fri, 08 May 1998 16:36:31 GMT; ID: RAB
	<<Modified so that the kind is already set to the MIME type.  Note special MIME type for text/table and text/directory
<<Script: system.verbs.builtins.webserver.util.directoryDisplay.add; Version 1; Date: Thu, 07 May 1998 21:25:28 GMT; ID: RAB
on add (kind, hrefName, itemName, itemSize, itemModDate) {
	local (icon, s);
	if defined (user.webserver.prefs.MIME2icon.[kind]) {
		icon = user.webserver.prefs.MIME2icon.[kind]}
	else {
		icon = "unknown"};
	if defined (user.webserver.prefs.MIME2name.[kind]) {
		kind = user.webserver.prefs.MIME2name.[kind]};
	s = "<TR> <TD><IMG SRC=\"/odb/icons/" + icon + "\"></TD>" + cr + "<TD><A HREF=\"" + hrefName + "\">" + itemName + "</A></TD>" + cr;
	s = s + "<TD>" + itemSize + "</TD>" + cr + "<TD>" + kind + "</TD> <TD>" + itemModDate + "</TD></TR>" + cr;
	return (s)}



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.