diff options
author | ache <ache@FreeBSD.org> | 2000-09-24 18:36:14 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-09-24 18:36:14 +0800 |
commit | dc7b36cd4abef91d8722be17393df056d282dece (patch) | |
tree | 84f1c25a97c5570922112217465d33ff89cd6684 | |
parent | 2169a6f2c582a264258581a3ff30436e1337fc3c (diff) | |
download | freebsd-ports-graphics-dc7b36cd4abef91d8722be17393df056d282dece.tar.gz freebsd-ports-graphics-dc7b36cd4abef91d8722be17393df056d282dece.tar.zst freebsd-ports-graphics-dc7b36cd4abef91d8722be17393df056d282dece.zip |
Make AllReferers page links clickable
-rw-r--r-- | www/webalizer-2/files/patch-ad | 24 | ||||
-rw-r--r-- | www/webalizer/files/patch-ad | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/www/webalizer-2/files/patch-ad b/www/webalizer-2/files/patch-ad new file mode 100644 index 00000000000..dd9de33a0a0 --- /dev/null +++ b/www/webalizer-2/files/patch-ad @@ -0,0 +1,24 @@ +--- output.c.orig Sun Mar 19 02:37:06 2000 ++++ output.c Sun Sep 24 14:28:15 2000 +@@ -1447,10 +1447,17 @@ + rptr=*pointer++; + if (rptr->flag == OBJ_REG) + { +- fprintf(out_fp,"%-8lu %6.02f%% %s\n", +- rptr->count, +- (t_hit==0)?0:((float)rptr->count/t_hit)*100.0, +- rptr->string); ++ if (strstr(rptr->string,"://")!=NULL) ++ fprintf(out_fp,"%-8lu %6.02f%% <A HREF=\"%s\">%s</A>\n", ++ rptr->count, ++ (t_hit==0)?0:((float)rptr->count/t_hit)*100.0, ++ rptr->string, ++ rptr->string); ++ else ++ fprintf(out_fp,"%-8lu %6.02f%% %s\n", ++ rptr->count, ++ (t_hit==0)?0:((float)rptr->count/t_hit)*100.0, ++ rptr->string); + r_reg--; + } + } diff --git a/www/webalizer/files/patch-ad b/www/webalizer/files/patch-ad new file mode 100644 index 00000000000..dd9de33a0a0 --- /dev/null +++ b/www/webalizer/files/patch-ad @@ -0,0 +1,24 @@ +--- output.c.orig Sun Mar 19 02:37:06 2000 ++++ output.c Sun Sep 24 14:28:15 2000 +@@ -1447,10 +1447,17 @@ + rptr=*pointer++; + if (rptr->flag == OBJ_REG) + { +- fprintf(out_fp,"%-8lu %6.02f%% %s\n", +- rptr->count, +- (t_hit==0)?0:((float)rptr->count/t_hit)*100.0, +- rptr->string); ++ if (strstr(rptr->string,"://")!=NULL) ++ fprintf(out_fp,"%-8lu %6.02f%% <A HREF=\"%s\">%s</A>\n", ++ rptr->count, ++ (t_hit==0)?0:((float)rptr->count/t_hit)*100.0, ++ rptr->string, ++ rptr->string); ++ else ++ fprintf(out_fp,"%-8lu %6.02f%% %s\n", ++ rptr->count, ++ (t_hit==0)?0:((float)rptr->count/t_hit)*100.0, ++ rptr->string); + r_reg--; + } + } |