Gossamer Forum
Home : Products : Links 2.0 : Discussions :

jump.cgi?id=random

Quote Reply
jump.cgi?id=random
When a user clicks on the random link feature within links 2, does the resulting hit count towards the hits count for the destination site?
Quote Reply
Re: [clickforchoice] jump.cgi?id=random In reply to
Yup, it should do....

In jump.cgi, we have;

Code:
# Bump the counter one.
if (open (HIT, "<$db_hits_path/$id")) {
my ($count, $old_time, @IP, $ip, $visited);
chomp ($count = <HIT>);
chomp ($old_time = <HIT>);
chomp (@IP = <HIT>);
(($time - $old_time) > 21600) and (@IP = ());
foreach $ip (@IP) {
$ip eq $ENV{'REMOTE_ADDR'} and ($visited++ and last);
}

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!