+ getword_start(&gwarea1,data);
+ if (getword(day,sizeof(day),&gwarea1,'/')<0 || getword(month,sizeof(month),&gwarea1,'/')<0 ||
+ getword(year,sizeof(year),&gwarea1,':')<0) {
+ debuga(__FILE__,__LINE__,_("Invalid date in file \"%s\"\n"),FileName);
+ exit(EXIT_FAILURE);
+ }
+ if (dfrom!=0 || duntil!=0){
+ buildymd(day,month,year,wdate,sizeof(wdate));
+ ndate=atoi(wdate);
+ if (ndate<dfrom) continue;
+ if (ndate>duntil) break;
+ }
+ if(totregsl == 1)
+ strcpy(idate,data);
+ strcpy(fdate,data);
+ if (getword_skip(MAXLEN,&gwarea,'"')<0 || getword(agent,sizeof(agent),&gwarea,'"')<0) {
+ debuga(__FILE__,__LINE__,_("Invalid useragent in file \"%s\"\n"),FileName);
+ exit(EXIT_FAILURE);
+ }
+
+ if(gwarea.current[0]!='\0') {
+ if (getword_skip(MAXLEN,&gwarea,' ')<0 || getword(user,sizeof(user),&gwarea,'\n')<0) {
+ debuga(__FILE__,__LINE__,_("Invalid record in file \"%s\"\n"),FileName);
+ exit(EXIT_FAILURE);
+ }
+ if(user[0] == '-')
+ strcpy(user,ip);
+ if(user[0] == '\0')
+ strcpy(user,ip);
+ } else {