/*
- * AUTHOR: Pedro Lineu Orso orso@brturbo.com
- * 1998, 2004
- * SARG Squid Analysis Report Generator http://sarg-squid.org
+ * AUTHOR: Pedro Lineu Orso orso@penguintech.com.br
+ * 1998, 2005
+ * SARG Squid Analysis Report Generator http://sarg.sourceforge.net
+ *
+ * SARG donations:
+ * please look at http://sarg.sourceforge.net/donations.php
* ---------------------------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
sprintf(per,"%s/periodo",dirname);
sprintf(report,"%s/authfail.html",dirname);
- sprintf(csort,"sort -b -T %s -k 3,3 -k 5,5 -o %s %s", TempDir, authfail_in, tmp4);
+ sprintf(csort,"sort -b -T %s -k 3,3 -k 5,5 -o '%s' '%s'", TempDir, authfail_in, tmp4);
system(csort);
unlink(tmp4);
fputs(url,fp_ou);
if(strlen(LogoImage) > 0) {
- fputs("<center><table cellpadding=0 cellspacing=0>\n",fp_ou);
- sprintf(url,"<tr><th align=\"center\"><img src='%s' border=0 align=absmiddle width=%s height=%s><font color=%s>%s</font>\n",LogoImage,Width,Height,LogoTextColor,LogoText);
+ fputs("<center><table cellpadding=\"0\" cellspacing=\"0\">\n",fp_ou);
+ sprintf(url,"<tr><th class=\"logo\"><img src='%s' border=0 align=absmiddle width=%s height=%s> %s</th></tr>\n",LogoImage,Width,Height,LogoText);
fputs(url,fp_ou);
+ fputs("<tr><td height=\"5\"></td></tr>\n",fp_ou);
fputs("</table>\n",fp_ou);
}
} else strcpy(name,user);
} else strcpy(name,user);
+ if(dotinuser && strstr(name,"_")) {
+ str2=(char *)subs(name,"_",".");
+ strcpy(name,str2);
+ }
+
if(AuthfailReportLimit) {
if(strcmp(ouser2,name) == 0) {
count++;