fprintf(fp_Download_Unsort,"%s\t%s\t%s\t%s\t%s\n",dia,hora,user,ip,download_url);
}
- if((ReportType & REPORT_TYPE_DENIED) != 0 || (ReportType & REPORT_TYPE_AUTH_FAILURES) != 0) {
+ if((ReportType & REPORT_TYPE_DENIED) != 0) {
if(fp_denied && strstr(code,"DENIED/403") != 0) {
fprintf(fp_denied, "%s\t%s\t%s\t%s\t%s\n",dia,hora,user,ip,urly);
denied_count++;
}
+ }
+ if((ReportType & REPORT_TYPE_AUTH_FAILURES) != 0) {
if(fp_authfail && (strstr(code,"DENIED/401") != 0 || strstr(code,"DENIED/407") != 0)) {
fprintf(fp_authfail, "%s\t%s\t%s\t%s\t%s\n",dia,hora,user,ip,urly);
authfail_count++;
if((ReportType & REPORT_TYPE_TOPSITES) != 0) topsites();
if((ReportType & REPORT_TYPE_SITES_USERS) != 0) siteuser();
- gen_denied_report();
+
+ if ((ReportType & REPORT_TYPE_DENIED) != 0)
+ gen_denied_report();
- authfail_report();
+ if ((ReportType & REPORT_TYPE_AUTH_FAILURES) != 0)
+ authfail_report();
if(smartfilter) smartfilter_report();