+ global pathfilter
+ global pathpattern
+ pathfilter = {"auth": config['logs']['auth'], "cron": config['logs']['cron'], "sys": config['logs']['sys'], "postfix": config['logs']['postfix'], "smb": config['logs']['smb'], "zfs": config['logs']['zfs'], "alloc": config['logs']['alloc'], "httpd": config['logs']['httpd'], "header": config['header']}
+ pathfilter = dict((re.escape(k), v) for k, v in pathfilter.iteritems())
+ pathpattern = re.compile("|".join(pathfilter.keys()))
+
+ global varfilter
+ global varpattern
+ varfilter = {"$title$": config['title'], "$date$": datenow, "$time$": timenow, "$hostname$": hostname(), "$version$": VERSION, "$css$": os.path.relpath(config['css'], os.path.dirname(config['output']))}
+ varfilter = dict((re.escape(k), v) for k, v in varfilter.iteritems())
+ varpattern = re.compile("|".join(varfilter.keys()))