From: Frédéric Marchal Date: Mon, 15 Feb 2010 13:46:24 +0000 (+0000) Subject: Properly adjust the links on the top users report page X-Git-Tag: v2.3-pre2~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a1b55b7e031bfa4ca0f860a65abe67cba7fe1d2;p=thirdparty%2Fsarg.git Properly adjust the links on the top users report page --- diff --git a/topuser.c b/topuser.c index 83c1f0c..b23cc79 100644 --- a/topuser.c +++ b/topuser.c @@ -112,18 +112,18 @@ void topuser(void) while((warea=longline_read(fp_in,&line))!=NULL) { getword_start(&gwarea,warea); if (getword(user,sizeof(user),&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken user in your %s file.\n",wger); + debuga(_("Maybe you have a broken user in your %s file"),wger); exit(1); } if(strcmp(user,"TOTAL") == 0) { continue; } if (getword_atoll(&nacc,&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken number of access in your %s file.\n",wger); + debuga(_("Maybe you have a broken number of access in your %s file"),wger); exit(1); } if (getword_atoll(&nbytes,&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken number of bytes in your %s file.\n",wger); + debuga(_("Maybe you have a broken number of bytes in your %s file"),wger); exit(1); } if (getword_ptr(NULL,NULL,&gwarea,'\t')<0) { @@ -131,27 +131,27 @@ void topuser(void) exit(1); } if (getword(ip,sizeof(ip),&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken user's IP in your %s file.\n",wger); + debuga(_("Maybe you have a broken user's IP in your %s file"),wger); exit(1); } if (getword(time,sizeof(time),&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken time in your %s file.\n",wger); + debuga(_("Maybe you have a broken time in your %s file"),wger); exit(1); } if (getword(date,sizeof(date),&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken date in your %s file.\n",wger); + debuga(_("Maybe you have a broken date in your %s file"),wger); exit(1); } if (getword_atoll(&elap,&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken download duration in your %s file.\n",wger); + debuga(_("Maybe you have a broken download duration in your %s file"),wger); exit(1); } if (getword_atoll(&incac,&gwarea,'\t')<0) { - printf("SARG: Maybe you have a broken in cache download in your %s file.\n",wger); + debuga(_("Maybe you have a broken in cache download in your %s file"),wger); exit(1); } if (getword_atoll(&oucac,&gwarea,'\n')<0) { - printf("SARG: Maybe you have a broken not in cache download in your %s file.\n",wger); + debuga(_("Maybe you have a broken not in cache download in your %s file"),wger); exit(1); } if(strcmp(olduser,user) != 0) { @@ -248,7 +248,7 @@ void topuser(void) if ((ReportType & REPORT_TYPE_AUTH_FAILURES) != 0 && authfail_count && !Privacy) fprintf(fp_top3,"%s\n",text[117]); if(smartfilter) fprintf(fp_top3,"%s\n",text[116]); if(UserAgentLog[0] != '\0' && useragent_count) fprintf(fp_top3,"%s\n",_("Useragent")); - fputs("\n",fp_top3); + fputs("\n\n",fp_top3); if ((ReportType & REPORT_TYPE_TOPUSERS) == 0) { fputs("\n\n",fp_top3); @@ -256,6 +256,7 @@ void topuser(void) return; } + fputs("
\n",fp_top3); fputs("",fp_top3); if((TopUserFields & TOPUSERFIELDS_NUM) != 0)