{"NUM",TOPUSERFIELDS_NUM,0},
{"DATE_TIME",TOPUSERFIELDS_DATE_TIME,0},
{"USERID",TOPUSERFIELDS_USERID,0},
+ {"USERIP",TOPUSERFIELDS_USERIP,0},
{"CONNECT",TOPUSERFIELDS_CONNECT,0},
{"BYTES",TOPUSERFIELDS_BYTES,0},
{"%BYTES",TOPUSERFIELDS_SETYB,0},
if (SortTableJs[0]) fputs(" sorttable_alpha",fp_top3);
fprintf(fp_top3,"\">%s</th>",_("USERID"));
}
+ if((TopUserFields & TOPUSERFIELDS_USERIP) != 0) {
+ fputs("<th class=\"header_l",fp_top3);
+ if (SortTableJs[0]) fputs(" sorttable_alpha",fp_top3);
+ fprintf(fp_top3,"\">%s</th>",_("USERIP"));
+ }
if((TopUserFields & TOPUSERFIELDS_CONNECT) != 0)
fprintf(fp_top3,"<th class=\"header_l\">%s</th>",_("CONNECT"));
if((TopUserFields & TOPUSERFIELDS_BYTES) != 0)
else
fprintf(fp_top3,"<td class=\"data2\"><a href=\"%s/%s.html\">%s</a></td>",uinfo->filename,uinfo->filename,uinfo->label);
}
+ if((TopUserFields & TOPUSERFIELDS_USERIP) != 0) {
+ fprintf(fp_top3,"<td class=\"data2\">%s</td>",uinfo->ip);
+ }
if((TopUserFields & TOPUSERFIELDS_CONNECT) != 0) {
fputs("<td class=\"data\"",fp_top3);
if (SortTableJs[0]) fprintf(fp_top3," sorttable_customkey=\"%"PRId64"\"",(int64_t)nacc);
fputs("<td></td>",fp_top3);
if((TopUserFields & TOPUSERFIELDS_DATE_TIME) !=0 && (ReportType & REPORT_TYPE_DATE_TIME) != 0 && !indexonly)
fputs("<td></td>",fp_top3);
- fprintf(fp_top3,"<th class=\"header_l\">%s</th>",_("TOTAL"));
+ if((TopUserFields & TOPUSERFIELDS_USERIP) != 0)
+ fprintf(fp_top3,"<th class=\"header_l\" colspan=\"2\">%s</th>",_("TOTAL"));
+ else
+ fprintf(fp_top3,"<th class=\"header_l\">%s</th>",_("TOTAL"));
if((TopUserFields & TOPUSERFIELDS_CONNECT) != 0)
fprintf(fp_top3,"<th class=\"header_r\">%s</th>",fixnum(ttnacc,1));
fputs("<td></td>",fp_top3);
if((TopUserFields & TOPUSERFIELDS_DATE_TIME) !=0 && (ReportType & REPORT_TYPE_DATE_TIME) != 0 && !indexonly)
fputs("<td></td>",fp_top3);
- fprintf(fp_top3,"<th class=\"header_l\">%s</th>",_("AVERAGE"));
+ if((TopUserFields & TOPUSERFIELDS_USERIP) != 0)
+ fprintf(fp_top3,"<th class=\"header_l\" colspan=\"2\">%s</th>",_("AVERAGE"));
+ else
+ fprintf(fp_top3,"<th class=\"header_l\">%s</th>",_("AVERAGE"));
if((TopUserFields & TOPUSERFIELDS_CONNECT) != 0)
fprintf(fp_top3,"<th class=\"header_r\">%s</th>",fixnum(ttnacc/totuser,1));