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


on securityForRpc (client, username, password) {
		<<1/11/06; 4:25:12 AM by DW
			<<Moved the initialization code into xml.aggregator.init; otherwise you'd have to do an RPC call to initialize the security prefs, which makes it hard for the user. ;->
		<<11/3/02; 3:27:26 PM by JES
	if system.environment.isRadio {
		radio.weblog.bloggerApi.checkUser (client, true, username, password);
		return (true)}
	else { //Frontier or the OPML Editor, security prefs are in aggregatorData.root
		local (adrdata = xml.aggregator.init ());
		if adrdata^ {
			if string.lower (username) == string.lower (adrdata^ {
				if string (password) == string (adrdata^ {
					return (true)}}};
		scriptError ("Access Denied.")}}
<<bundle //test code
	<<securityForRpc ("",,

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.