sprintf(geral2,"%s/geral2",dirname);
sprintf(geral3,"%s/geral3",dirname);
sprintf(per,"%s/periodo",dirname);
- sprintf(report,"%s/topsites.html",dirname);
+
+ if (strstr(ReportType,"topusers") == 0)
+ sprintf(report,"%s/index.html",dirname);
+ else
+ sprintf(report,"%s/topsites.html",dirname);
if ((fp_in = fopen(per, "r")) == 0) {
fprintf(stderr, "SARG: (topuser) %s: %s\n",text[45],per);
fputs("</table>\n",fp_ou);
}
- show_sarg(fp_ou,"..");
+ if(strcmp(IndexTree,"date") == 0)
+ show_sarg(fp_ou,"../../..");
+ else
+ show_sarg(fp_ou, "..");
+
fputs("<center><table cellpadding=\"0\" cellspacing=\"0\">\n",fp_ou);
sprintf(url,"<tr><th class=\"title\">%s</th></tr>\n",Title);
fputs(url,fp_ou);