Updated logevent()

Fixed 2 Stored XSS vulnerabilities in logevent(). Replaced wpdb->escape() with esc_attr, which will properly entity encode the REQUEST_URI and HTTP_REFERER.