From 29defb3b1d58f09929dc49468da5424538379d04 Mon Sep 17 00:00:00 2001
From: "Andrey A. Chernov" <ache@FreeBSD.org>
Date: Sun, 24 Sep 2000 10:36:14 +0000
Subject: Make AllReferers page links clickable

---
 www/webalizer-2/files/patch-ad | 24 ++++++++++++++++++++++++
 www/webalizer/files/patch-ad   | 24 ++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 www/webalizer-2/files/patch-ad
 create mode 100644 www/webalizer/files/patch-ad

diff --git a/www/webalizer-2/files/patch-ad b/www/webalizer-2/files/patch-ad
new file mode 100644
index 000000000000..dd9de33a0a02
--- /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 000000000000..dd9de33a0a02
--- /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--;
+       }
+    }
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0