freebsd-ports/german/webalizer/files/patch-af
Will Andrews f34d41e8a7 Fix how webalizer creates PNG images with .gif extension.
PR:		18890
Submitted by:	maintainer
2000-05-29 22:32:54 +00:00

41 lines
1.7 KiB
Plaintext

--- webalizer.c.orig Sun Jul 11 19:36:10 1999
+++ webalizer.c Mon May 29 21:42:53 2000
@@ -1981,8 +1981,8 @@
/* fill in filenames */
sprintf(html_fname,"usage_%04d%02d.%s",cur_year,cur_month,html_ext);
- sprintf(gif1_fname,"daily_usage_%04d%02d.gif",cur_year,cur_month);
- sprintf(gif2_fname,"hourly_usage_%04d%02d.gif",cur_year,cur_month);
+ sprintf(gif1_fname,"daily_usage_%04d%02d.png",cur_year,cur_month);
+ sprintf(gif2_fname,"hourly_usage_%04d%02d.png",cur_year,cur_month);
/* create GIF images for web page */
sprintf(dtitle,"%s %s %d",msg_hmth_du,l_month[cur_month-1],cur_year);
@@ -3125,7 +3125,7 @@
pie_legend[i]=top_ctrys[i]->desc;
}
sprintf(pie_title,"%s %s %d",msg_ctry_use,l_month[cur_month-1],cur_year);
- sprintf(pie_fname,"ctry_usage_%04d%02d.gif",cur_year,cur_month);
+ sprintf(pie_fname,"ctry_usage_%04d%02d.png",cur_year,cur_month);
pie_chart(pie_fname,pie_title,t_hit,pie_data,pie_legend); /* do it */
@@ -3213,7 +3213,7 @@
i=(s_mth==12)?1:s_mth+1;
- year_graph6x( "usage.gif", /* filename */
+ year_graph6x( "usage.png", /* filename */
buffer, /* graph title */
i, /* last month */
hist_hit, /* data set 1 */
@@ -3234,7 +3234,7 @@
}
write_html_head(msg_main_per);
/* year graph */
- fprintf(out_fp,"<IMG SRC=\"usage.gif\" ALT=\"%s\" " \
+ fprintf(out_fp,"<IMG SRC=\"usage.png\" ALT=\"%s\" " \
"HEIGHT=256 WIDTH=512><P>\n",buffer);
/* month table */
fprintf(out_fp,"<TABLE WIDTH=600 BORDER=2 CELLSPACING=1 CELLPADDING=1>\n");