diff options
author | Will Andrews <will@FreeBSD.org> | 2000-05-29 22:32:54 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2000-05-29 22:32:54 +0000 |
commit | f34d41e8a7aa63d25b72179506f710947433eccd (patch) | |
tree | f946898ee9f1178fd3708349d6894c0391667ca0 /german | |
parent | 7be2f16539bc078f2f959c7042116c90d6551e71 (diff) |
Fix how webalizer creates PNG images with .gif extension.
PR: 18890
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=28949
Diffstat (limited to 'german')
-rw-r--r-- | german/webalizer/files/patch-af | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/german/webalizer/files/patch-af b/german/webalizer/files/patch-af new file mode 100644 index 000000000000..816a0c386fc4 --- /dev/null +++ b/german/webalizer/files/patch-af @@ -0,0 +1,40 @@ +--- 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"); |