context: function logAccess() {	if (req.data.http_referer) {		var weblog = path["weblog"];		var referrer = req.data.http_referer;		// no logging at all if the referrer comes from the same weblog		// or the antville-frontpage		if (referrer.indexOf(weblog.href()) > -1 || referrer == root.href() || referrer == "-")		var storyID = path["story"] ? path["story"]._id : null;		var ip = req.data.http_remotehost;		var hopPath = path[path.length-1].href();		var action = req.action;		var browser = req.data.http_browser;		// we're doing this with direct db access here		// (there's no need to do it with prototypes):		var c = getDBConnection("antville");		var error = c.getLastError();		if (error) {			writeln("Error establishing DB connection: " + error);			return;		}		var query = "insert into ACCESS (WEBLOG_ID, STORY_ID, REFERRER, IP, URL, PATH, ACTION, BROWSER, DATE) values (" + weblog._id + ", " + storyID + ", \"" + referrer + "\", \"" + ip + "\", \"" + hopPath + action + "\", \"" + hopPath + "\", \"" + action + "\", \"" + browser + "\", now());";		c.executeCommand(query);		var error = c.getLastError();		if (error) {			writeln("Error executing SQL query: " + error);			return;		}		// No need to release database connection, since this is the connection managed by		// Helma and she'll release it when it's been idle long enough.		// c.release();		return;	}}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/a13b9048c3ada3e55dca0fc66d81f1b6d83ff6d4/objectFunctions.js/clean/code/Global/objectFunctions.js