int cstatus;
struct getwordstruct gwarea;
- if(strcmp(Privacy,"yes") == 0)
+ if(Privacy)
return;
nsitesusers = 0;
fputs("<div align=\"center\"><table cellpadding=\"0\" cellspacing=\"2\">\n",fp_ou);
fputs("<tr><td></td></tr>\n",fp_ou);
- if(strncmp(strlow(BytesInSitesUsersReport),"yes",3) == 0)
+ if(BytesInSitesUsersReport)
fprintf(fp_ou,"<tr><th class=\"header\">%s</th><th class=\"header\">%s</th><th class=\"header\">%s</th><th class=\"header\">%s</th></tr>\n",text[100],text[91],text[93],text[103]);
else
fprintf(fp_ou,"<tr><th class=\"header\">%s</th><th class=\"header\">%s</th><th class=\"header\">%s</th></tr>\n",text[100],text[91],text[103]);
/*
In fact, even the first call is unecessary as the resolved user variable is never used.
- if(strcmp(Ip2Name,"yes") == 0)
+ if(Ip2Name)
ip2name(user,sizeof(user));
*/
if the first ip2name succeed because it will try to resolve a name which is not an IP but if
the first ip2name failed, the second attempt may find the expected address which was resolved
in the mean time by the DNS server.
- if(strcmp(Ip2Name,"yes") == 0)
+ if(Ip2Name)
ip2name(user,sizeof(user));
*/
else BlockImage[0]='\0';
if(strcmp(url,ourl) != 0 && nsitesusers) {
- if(strncmp(strlow(BytesInSitesUsersReport),"yes",3) == 0) {
+ if(BytesInSitesUsersReport) {
sprintf(wwork2,"%s",fixnum(obytes,1));
fprintf(fp_ou,"<tr><td class=\"data\">%d</td><td class=\"data2\">%s<a href=\"http://%s\">%s</a></td><td class=\"data\">%s</td><td class=\"data2\">%s</td></tr>\n",regs,BlockImage,ourl,ourl,wwork2,users);
} else