From edc276df91bfed4b32fd37a736ade5ca019c6deb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Thu, 27 Jan 2011 15:27:41 +0000 Subject: [PATCH] Don't create final files when index is set to only Some report files are unnecessary when indexonly is set. They are not generated any more. The temporary files that produces those files are still created. --- report.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/report.c b/report.c index effb23a..a659890 100644 --- a/report.c +++ b/report.c @@ -352,30 +352,32 @@ void gerarel(void) if (!indexonly) tmpsort(); if(email[0] == '\0') { - if((ReportType & REPORT_TYPE_DOWNLOADS) != 0) download_report(); + topuser(); - if(DansGuardianConf[0] != '\0') { - dansguardian_log(); - } + if (!indexonly) { + if((ReportType & REPORT_TYPE_DOWNLOADS) != 0) download_report(); - squidguard_log(); + if(DansGuardianConf[0] != '\0') { + dansguardian_log(); + } - topuser(); + squidguard_log(); - if((ReportType & REPORT_TYPE_TOPSITES) != 0) topsites(); + if((ReportType & REPORT_TYPE_TOPSITES) != 0) topsites(); - if((ReportType & REPORT_TYPE_SITES_USERS) != 0) siteuser(); - gen_denied_report(); + if((ReportType & REPORT_TYPE_SITES_USERS) != 0) siteuser(); + gen_denied_report(); - authfail_report(); + authfail_report(); - if(smartfilter) smartfilter_report(); + if(smartfilter) smartfilter_report(); - if(DansGuardianConf[0] != '\0') dansguardian_report(); + if(DansGuardianConf[0] != '\0') dansguardian_report(); - squidguard_report(); + squidguard_report(); - if(!indexonly && (ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel(); + if((ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel(); + } make_index(); -- 2.47.2