#!/usr/bin/perl ############################### # Hot Links Pro 3 new.cgi # Created by Mike Ramirez # Nothing below here is configurable ############################### require './source/headerfooter.pl'; require './source/config.pl'; require './source/banner.pl'; require './source/linkbuild.pl'; require './lang/langset.pl'; ############################### use CGI; my $q = CGI->new; print $q->header; &header; print <<"HTML"; HTML ########## my $filetolock = $datafilepath; my $tempfile = $filetolock . ".lock"; open (LOCK, ">$tempfile"); if ($useflock == 1) {flock (LOCK, 2)} open (FILE, "$datafilepath"); @newlinks = ; close(FILE); close(LOCK); unlink ($tempfile); @newlinks = reverse @newlinks; foreach $line (@newlinks) { chomp($line); @linkinfo = split(/\|/, $line); my $udate = $linkinfo[13]; my $comparedate = time; my $endnew = ($newlength * 86400) + $udate; if ($endnew >= $comparedate) { $addedon = $linkinfo[8]; $addedon =~ s/_/ /g; $sendto = $linkinfo[3]; $sendto =~ s/([\W])/"%" . uc(sprintf("%2.2x",ord($1)))/eg; &dolinkbuild; } } if ($haslinks != 1) { print ""; } ############ print <<"HTML";
$shtext1 : $nwtext1
HTML if ($displayadverts == 1) {&showall} print <<"HTML";

$nwtext1 - $nwtext2 $newlength $nwtext3
$shtext5.
HTML &footer;