#!/usr/bin/perl # SCALING FACTOR $scale=0.25; $absent=0; $stelarc=0; $obsolete=0; $ampbod=0; $third=0; $count=0; open (LOGS, "/www/opt/apache/logs/stelarc.va.com.au-access_log"); while ($entry=) { if ($entry=~m|stelarc/absent/absent.html|) { $absent++; } if ($entry=~m|stelarc/obsolete/obsolete.html|) { $obsolete++; } if ($entry=~m|stelarc/ampbod/ampbod.html|) { $ampbod++; } if ($entry=~m|stelarc/third/third.html|) { $third++; } if ($entry=~m|stelarc|) { $stelarc++; } $count++; } close (LOGS); if ($stelarc>2000) { $stelarc=$stelarc=1500; } $absent=1+($absent*$scale); $obsolete=1+($obsolete*3*$scale); $ampbod=1+($ampbod*$scale); $third=1+($third*$scale); $colour=$stelarc/2000; $colour=substr($colour,0,4); $green=1-$colour; print "Content-Type: x-world/x-vrml\r\n"; print "\r\n"; print<