<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Access Stats Modifications"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Access Stats Modifications"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Access Stats Modifications</title>
				<description><![CDATA[ To show a more detailed evaluation of OS's and Browsers, change the code in stat.pl from:<br /> <br /> [code]$total_agent = @USER_AGENT;<br /> if &#40;$top_os eq &quot;yes&quot;&#41; &#123;<br />   foreach $user_agent &#40;@USER_AGENT&#41; &#123;<br /> 	if &#40;$user_agent =~ /MSIE/i&#41; &#123;<br />    		if &#40;$user_agent =~ /Windows 98/i&#41; &#123;<br />    			$os&#123;'Windows 98'&#125;++;<br />    			next;<br />    		&#125;<br />    		elsif &#40;$user_agent =~ /Windows NT/i&#41; &#123;<br />    			$os&#123;'Windows NT'&#125;++;<br />    			next;<br />    		&#125;<br />    		elsif &#40;$user_agent =~ /Windows 95/i&#41; &#123;<br />    			$os&#123;'Windows 95'&#125;++;<br />    			next;<br />    		&#125;<br />    		elsif &#40;$user_agent =~ /Mac_PowerPC/i || $user_agent =~ /Macintosh/i&#41; &#123;<br />    			$os&#123;'Macintosh'&#125;++;<br />    			next;<br />    		&#125;<br />    	&#125;<br />    	elsif  &#40;$user_agent =~ /Win98/i || $user_agent =~ /Windows 98/i&#41; &#123;<br />    		$os&#123;'Windows 98'&#125;++;<br />    		next;<br />    	&#125;<br />    	elsif  &#40;$user_agent =~ /WinNT/i || $user_agent =~ /Windows NT/i&#41; &#123;<br />    		$os&#123;'Windows NT'&#125;++;<br />    		next;<br />    	&#125;<br />    	elsif  &#40;$user_agent =~ /Win95/i || $user_agent =~ /Windows 95/i&#41; &#123;<br />    		$os&#123;'Windows 95'&#125;++;<br />    		next;<br />    	&#125;<br />    	elsif &#40;$user_agent =~ /Mac_PowerPC/i || $user_agent =~ /Macintosh/i&#41; &#123;<br />    		$os&#123;'Macintosh'&#125;++;<br />    		next;<br />    	&#125;<br />    	elsif  &#40;$user_agent =~ /X11/i&#41; &#123;<br />    		if  &#40;$user_agent =~ /Linux/i&#41; &#123;<br />    			$os&#123;'Linux'&#125;++;<br />    			next;<br />    		&#125;<br />  	  	elsif  &#40;$user_agent =~ /SunOS/i&#41; &#123;<br />  	  		$os&#123;'SunOS'&#125;++;<br />  	  		next;<br /> 	   	&#125;<br />  	  	elsif  &#40;$user_agent =~ /FreeBSD/i&#41; &#123;<br /> 	   		$os&#123;'FreeBSD'&#125;++;<br /> 	   		next;<br /> 	   	&#125;<br /> 	   	elsif  &#40;$user_agent =~ /BSD/i&#41; &#123;<br /> 	   		$os&#123;'BSD'&#125;++;<br /> 	   		next;<br />    		&#125;<br /> 	   	else &#123;<br /> 	   		$os&#123;'UNIX Clone'&#125;++;<br /> 	   		next;<br /> 	   	&#125;<br /> 	&#125;<br />    	elsif  &#40;$user_agent =~ /Win16/i || $user_agent =~ /Windows 3\.1/i&#41; &#123;<br />    		$os&#123;'Windows 3.1'&#125;++;<br />    		next;<br />    	&#125;<br />    	elsif  &#40;$user_agent =~ /OS\/2/i&#41; &#123;<br />    		$os&#123;'OS/2'&#125;++;<br />    		next;<br />    	&#125;<br />    	elsif  &#40;$user_agent =~ /Amiga/i&#41; &#123;<br />    		$os&#123;'Amiga'&#125;++;<br />    		next;<br />    	&#125;<br />    	else &#123;<br />    		$os&#123;'Unbekanntes System'&#125;++;<br />    		next;<br />    	&#125;<br />   &#125;<br /> &#125;<br /> if &#40;$top_browsers eq &quot;yes&quot;&#41; &#123;<br />  foreach $agent &#40;@USER_AGENT&#41; &#123;<br />    if &#40;$agent =~ /Opera/i&#41; &#123;<br />    	$browser&#123;'Opera'&#125;++;<br /> 	next;<br />    &#125;<br />    elsif &#40;$agent =~ /MSIE/i&#41; &#123;<br />    	if &#40;$agent =~ /AltaVista/i&#41; &#123;<br />    		$browser&#123;'AltaVista'&#125;++;<br /> 		next;<br /> 	&#125;<br /> 	elsif &#40;$agent =~ /Lycos/i&#41; &#123;<br />    		$browser&#123;'Lycos'&#125;++;<br /> 		next;<br /> 	&#125;<br /> 	elsif &#40;$agent =~ /MSIE &#40;\d&#41;/i&#41; &#123;<br /> 		$browser&#123;&quot;Internet Explorer $1&quot;&#125;++;<br /> 		next;<br /> 	&#125;<br /> 	else &#123;<br /> 		$browser&#123;$agent&#125;++;<br /> 		next;<br /> 	&#125;<br />     &#125;<br />     elsif &#40;$agent =~ /Mozilla/i&#41; &#123;<br /> 	if &#40;$agent =~ /Mozilla\/5/i || $agent =~ /Mozilla 5/i&#41; &#123;<br /> 		$browser&#123;'Netscape Navigator 6'&#125;++;<br /> 		next;<br /> 	&#125;<br /> 	elsif &#40;$agent =~ /Mozilla\/&#40;\d&#41;/i || $agent =~ /Mozilla &#40;\d&#41;/i&#41; &#123;<br /> 		$browser&#123;&quot;Netscape Navigator $1&quot;&#125;++;<br /> 		next;<br /> 	&#125;<br /> 	else &#123;<br /> 		$browser&#123;$agent&#125;++;<br /> 		next;<br /> 	&#125;<br />      &#125;<br />      elsif &#40;$agent ne &quot;&quot;&#41; &#123;<br />      	$browser&#123;$agent&#125;++;<br />      	next;<br />      &#125;<br />      else &#123;<br />      	$browser&#123;'NO USER AGENT'&#125;++;[/code]<br /> to:<br /> [code]$total_agent = @USER_AGENT;<br /> if &#40;$top_os eq &quot;yes&quot;&#41; &#123;<br />   foreach $user_agent &#40;@USER_AGENT&#41; &#123;<br /> if &#40;$user_agent =~ /Win 9x 4\.9/i || $user_agent =~ /Windows Millenium/i || $user_agent =~ /Windows me/i&#41; &#123;<br /> $os&#123;'Windows ME'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /Win95/i || $user_agent =~ /Windows 95/i&#41; &#123;<br /> $os&#123;'Windows 95'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /Win98/i || $user_agent =~ /Windows 98/i&#41; &#123;<br /> $os&#123;'Windows 98'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /Windows NT 5\.1/i || $user_agent =~ /Windows XP/i&#41; &#123; <br /> $os&#123;'Windows XP'&#125;++; <br /> next; <br /> &#125;<br /> elsif &#40;$user_agent =~ /Windows NT 5\.0/i || $user_agent =~ /Windows NT 5/i || $user_agent =~ /Windows 2000/i&#41; &#123; <br /> $os&#123;'Windows 2000'&#125;++; <br /> next; <br /> &#125; <br /> elsif &#40;$user_agent =~ /Windows NT/i || $user_agent =~ /Winnt/i&#41; &#123; <br /> $os&#123;'Windows NT'&#125;++; <br /> next; <br /> &#125;<br /> elsif &#40;$user_agent =~ /win16/i&#41; &#123;<br /> $os&#123;'Windows 16-bit'&#125;++; <br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /win32/i&#41; &#123;<br /> $os&#123;'Windows 32-bit'&#125;++; <br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /windows 3\.1/i&#41; &#123;<br /> $os&#123;'Windows 3.1'&#125;++; <br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /Mac_PowerPC/i || $user_agent =~ /Macintosh/i&#41; &#123;<br /> $os&#123;'Macintosh'&#125;++;<br /> next;<br /> &#125;<br /> elsif  &#40;$user_agent =~ /Linux/i&#41; &#123;<br /> $os&#123;'Linux'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /SunOS/i&#41; &#123;<br /> $os&#123;'SunOS'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /FreeBSD/i&#41; &#123;<br /> $os&#123;'FreeBSD'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /BSD/i&#41; &#123;<br /> $os&#123;'BSD'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /Unix/i&#41; &#123;<br /> $os&#123;'Unix'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$user_agent =~ /webtv/i&#41; &#123;<br /> $os&#123;'WebTV'&#125;++; <br /> next;<br /> &#125;<br /> elsif  &#40;$user_agent =~ /OS\/2/i&#41; &#123;<br /> $os&#123;'OS/2'&#125;++;<br /> next;<br /> &#125;<br /> elsif  &#40;$user_agent =~ /Amiga/i&#41; &#123;<br /> $os&#123;'Amiga'&#125;++;<br /> next;<br /> &#125;<br /> else &#123;<br /> $os&#123;'Unknown Platform'&#125;++;<br /> next;<br />     &#125;<br />   &#125;<br /> &#125;<br /> if &#40;$top_browsers eq &quot;yes&quot;&#41; &#123;<br />  foreach $agent &#40;@USER_AGENT&#41; &#123;<br /> if &#40;$agent =~ /Opera\/&#40;\d&#41;/i || $agent =~ /Opera &#40;\d&#41;/i&#41; &#123;<br /> $browser&#123;&quot;Opera $1&quot;&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$agent =~ /MSIE/i&#41; &#123;<br /> if &#40;$agent =~ /AltaVista/i&#41; &#123;<br /> $browser&#123;'AltaVista'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$agent =~ /Lycos/i&#41; &#123;<br /> $browser&#123;'Lycos'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$agent =~ /AOL &#40;\d&#41;/i&#41; &#123;<br /> $browser&#123;&quot;AOL $1&quot;&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$agent =~ /Netcaptor &#40;\d&#41;/i&#41; &#123;<br /> $browser&#123;&quot;Netcaptor  $1&quot;&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$agent =~ /MSIE &#40;\d&#41;/i&#41; &#123;<br /> $browser&#123;&quot;Internet Explorer $1&quot;&#125;++;<br /> next;<br /> &#125;<br /> else &#123;<br /> $browser&#123;$agent&#125;++;<br /> next;<br /> &#125;<br /> &#125;<br /> elsif &#40;$agent =~ /Mozilla/i&#41; &#123;<br /> if &#40;$agent =~ /Mozilla\/5/i || $agent =~ /Mozilla 5/i&#41; &#123;<br /> $browser&#123;'Netscape Navigator 6'&#125;++;<br /> next;<br /> &#125;<br /> elsif &#40;$agent =~ /Mozilla\/&#40;\d&#41;/i || $agent =~ /Mozilla &#40;\d&#41;/i&#41; &#123;<br /> $browser&#123;&quot;Netscape Navigator $1&quot;&#125;++;<br /> next;<br /> &#125;<br /> else &#123;<br /> $browser&#123;$agent&#125;++;<br /> next;<br /> &#125;<br /> &#125;<br /> elsif &#40;$agent ne &quot;&quot;&#41; &#123;<br /> $browser&#123;$agent&#125;++;<br /> next;<br /> &#125;<br /> else &#123;<br /> $browser&#123;'NO USER AGENT'&#125;++;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3210.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3210.php</link>
				<pubDate><![CDATA[Sun, 8 Dec 2002 16:42:43]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thank you for the Windows ME code. I've been wanting that for a while. I have been trying to work with the Mozilla 5.0 browser issue but can't seem to figure it out.  Is there a way to separate the different Moz 5 browsers (Phoenix, Netscape 6 or 7, Chimera, different releases of Mozilla, etc..)?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3235.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3235.php</link>
				<pubDate><![CDATA[Tue, 10 Dec 2002 15:30:08]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Anonymous"]Is there a way to separate the different Moz 5 browsers (Phoenix, Netscape 6 or 7, Chimera, different releases of Mozilla, etc..)?[/quote]<br /> Not sure yet, I'll post back when I work it out]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3239.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3239.php</link>
				<pubDate><![CDATA[Tue, 10 Dec 2002 19:30:47]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ For Netscape 7 add between the code:<br /> [code]elsif &#40;$agent =~ /Netcaptor &#40;\d&#41;/i&#41; &#123; <br /> $browser&#123;&quot;Netcaptor  $1&quot;&#125;++; <br /> next; <br /> &#125; <br /> elsif &#40;$agent =~ /MSIE &#40;\d&#41;/i&#41; &#123; <br /> $browser&#123;&quot;Internet Explorer $1&quot;&#125;++; <br /> next; <br /> &#125; <br /> else &#123; <br /> $browser&#123;$agent&#125;++; <br /> next; <br /> &#125; <br /> &#125; [/code]<br /> and:<br /> [code]elsif &#40;$agent =~ /Mozilla/i&#41; &#123; <br /> if &#40;$agent =~ /Mozilla\/5/i || $agent =~ /Mozilla 5/i&#41; &#123; <br /> $browser&#123;'Netscape Navigator 6'&#125;++; <br /> next; <br /> &#125; <br /> elsif &#40;$agent =~ /Mozilla\/&#40;\d&#41;/i || $agent =~ /Mozilla &#40;\d&#41;/i&#41; &#123; <br /> $browser&#123;&quot;Netscape Navigator $1&quot;&#125;++; <br /> next; <br /> &#125; [/code]<br /> add:<br /> [code]elsif&#40;$agent =~ /Netscape\/7/i&#41; &#123;<br /> $browser&#123;'Netscape Navigator 7'&#125;++;<br /> next;<br /> &#125;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3240.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3240.php</link>
				<pubDate><![CDATA[Tue, 10 Dec 2002 19:57:23]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thanks again.<br /> <br /> I was able to work with that a bit and add one for the Phoenix browser since it shows up in the logs the same (I don't have a Mac so I'm not sure how Chimera shows up). I would like to know how to get the decimal version number to show up instead of just the first digit. (IE 5.5 just shows up as 5, or Phoenix 0.4 just shows up as 0, etc.)]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3273.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3273.php</link>
				<pubDate><![CDATA[Fri, 13 Dec 2002 15:20:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Ok, I figured it out. To get full version numbers counted:<br /> <br /> For Netscape 7:<br /> Replace the above code for Netscape 7 with the following:<br /> [code]elsif&#40;$agent =~ /Netscape\/&#40;.*&#41;/i&#41; &#123;<br /> $browser&#123;&quot;Netscape $1&quot;&#125;++;<br /> next;<br /> &#125;[/code]<br /> <br /> For Internet Explorer:<br /> Replace the above code for IE with the following:<br /> [code]elsif &#40;$agent =~ /MSIE &#40;.*&#41;/i&#41; &#123;<br /> &#40;$iever, $x&#41; = split&#40;/;/, $1&#41;;<br /> $browser&#123;&quot;Internet Explorer $iever&quot;&#125;++;<br /> next;<br /> &#125;[/code]<br /> <br /> For Mozilla:<br /> Replace the above code for Mozilla 5 with the following:<br /> [code]elsif &#40;$agent =~ /Mozilla/i&#41; &#123;<br /> if &#40;$agent =~ /rv&#58;&#40;.*&#41;/i&#41; &#123;<br /> &#40;$mzver, $z&#41; = split&#40;/\&#41;/, $1&#41;;<br /> $browser&#123;&quot;Mozilla $mzver&quot;&#125;++;<br /> next;<br /> &#125;[/code]<br /> <br /> For previous releases of Netscape Navigator:<br /> Replace the above code for Netscape Navigator with the following:<br /> [code]elsif &#40;$agent =~ /Mozilla\/&#40;.*&#41;/i || $agent =~ /Mozilla &#40;.*&#41;/i&#41; &#123;<br /> &#40;$nsver, $y&#41; = split&#40;/ /, $1&#41;;<br /> $browser&#123;&quot;Netscape Navigator $nsver&quot;&#125;++;<br /> next;<br /> &#125;[/code]<br /> <br /> To add the Phoenix browser:<br /> [code]Add the following under the Netscape 7 code&#58;<br /> elsif&#40;$agent =~ /Phoenix\/&#40;.*&#41;/i&#41; &#123;<br /> $browser&#123;&quot;Phoenix $1&quot;&#125;++;<br /> next;<br /> &#125;[/code]<br /> <br /> That should do it.<br /> <br /> Next: How can I add screen resolution and screen depth to the stats? I got only as far as the log.pl being able to write the info into the logs. Stats.pl crashes when trying to read the logs. I added the two extra parameters into the stats.pl file. That's as far as it will go. Any ideas?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3306.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3306.php</link>
				<pubDate><![CDATA[Mon, 16 Dec 2002 15:32:41]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote]How can I add screen resolution and screen depth to the stats?[/quote]<br /> I wish I knew - it'd be in there like a shot!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3308.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3308.php</link>
				<pubDate><![CDATA[Mon, 16 Dec 2002 17:53:44]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I'll have to post my mod for individual page counting. I have to figure out how I did it though. I've been using the mod for over a year.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3309.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3309.php</link>
				<pubDate><![CDATA[Mon, 16 Dec 2002 18:46:31]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Netscape 6 needs it's own code. Put the following under the Netscape 7 code above:<br /> [code]elsif&#40;$agent =~ /Netscape6\/&#40;.*&#41;/i&#41; &#123; <br /> $browser&#123;&quot;Netscape $1&quot;&#125;++; <br /> next; <br /> &#125;[/code]<br /> <br /> Still need help with screen resolution mod.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3336.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3336.php</link>
				<pubDate><![CDATA[Wed, 18 Dec 2002 19:26:54]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Here's my mod for individual page counting.<br /> <br /> Add a variable for each domain name pointing to your site. In my case I have two so I had to add two variables somewhere near the top of stat.pl. Preferably before the $cgiurl variable. Like so:<br /> [code]$homesite = &quot;domain.com&quot;;<br /> $homesite2 = &quot;domain2.com&quot;;[/code]<br /> <br /> Under Misc Configurations add the following after $top_host:<br /> [code]$top_page =        &quot;yes&quot;;[/code]<br /> <br /> After the country list and before sub parse_form a list of subroutines appears. After &amp;http_ref and before &amp;html_footer add the following line:<br /> [code]&amp;html_page if &#40;$top_page eq &quot;yes&quot;&#41;;[/code]<br /> <br /> Next you need to have the logfile parser be made aware of its existence. Replace your sub parse_log with the following (stop just before $total_agent):<br /> [code]sub parse_log &#123;<br /> chdir &#40;$base_dir&#41;;<br /> $log_file = &quot;$base_dir/$_&#91;0&#93;&quot;;<br /> open&#40;DATA,&quot;$log_file&quot;&#41; || &amp;message&#40;'Cannot Open Log File!'&#41;;<br /> @lines = &lt;DATA&gt;;<br /> close&#40;DATA&#41;;<br /> $total = @lines;<br /> foreach $line &#40;@lines&#41; &#123;<br /> if &#40;$line =~ /&#40;.*&#41; - &#40;.*&#41; - &#40;.*&#41; - \&quot;&#40;.*&#41;\&quot; - \&quot;&#40;.*&#41;\&quot; - \&quot;&#40;.*&#41;\&quot;/&#41; &#123;<br /> $date = $1;<br /> &#40;$weekday,$day,$time&#41; = split&#40;/ /,$date&#41;;<br /> &#40;$hour,$minute&#41; = split&#40;/&#58;/,$time&#41;;<br /> &#40;$temp,$month,$year&#41; = split &#40;/-/,$day&#41;;<br /> $ip_addr = $2;<br /> $host_name = $3;<br /> $user_agent = $4;<br /> $referer = $5;<br /> $page = $6;<br /> $day = &quot;$day &quot;.&quot;$weekday&quot;;<br /> if &#40;$top_referer eq &quot;yes&quot;&#41; &#123;<br /> &#40;$x,$ref1&#41; = split&#40;/http&#58;\/\//,$referer&#41;;<br /> &#40;$ref2,$y&#41; = split&#40;/\//,$ref1&#41; ;<br /> if &#40;$ref2 =~ $homesite || $ref2 =~ $homesite2&#41; &#123;<br /> $referer&#123;'-'&#125;++;<br /> &#125;<br /> else &#123;<br /> $referer&#123;$referer&#125;++;<br /> &#125;<br /> &#125;<br /> $page&#123;$page&#125;++;<br /> $day&#123;$day&#125;++;<br /> $week_days&#123;$weekday&#125;++;<br /> $hour&#123;$hour&#125;++;<br /> if &#40;$top_countries eq &quot;yes&quot; || $top_host eq &quot;yes&quot;&#41; &#123;<br /> if &#40;$host_name =~ /\.&#40;&#91;_a-z0-9-&#93;*\.&#91;a-z&#93;&#123;2,4&#125;$&#41;/i&#41; &#123;<br /> $remote&#123;$1&#125;++;<br /> $host_name =~ s/&#40;.*&#41;\.// ;<br /> $host_name =~ tr/&#91;A-Z&#93;/&#91;a-z&#93;/;<br /> $domain&#123;$host_name&#125;++;<br /> $total_doms += 1;<br /> &#125;<br /> else &#123;<br /> $remote&#123;'&lt;b&gt;IP only&lt;/b&gt;'&#125;++;<br /> &#125;<br /> &#125;<br /> push&#40;@USER_AGENT, $user_agent&#41;;<br /> &#125;<br /> &#125;[/code]<br /> <br /> Find sub sort_ref further down. Add the following after it:<br /> [code]sub sort_page &#123;<br /> if &#40;$page&#123;$a&#125; &gt; $page&#123;$b&#125;&#41; &#123;<br /> $retval = -1;<br /> &#125;<br /> elsif &#40;$page&#123;$a&#125; == $page&#123;$b&#125;&#41; &#123;<br /> $retval = uc&#40;$a&#41; cmp uc&#40;$b&#41;;<br /> &#125;<br /> else &#123;<br /> $retval = 1;<br /> &#125;<br /> $retval;<br /> &#125;[/code]<br /> <br /> Next find sub http_ref. This prints the HTML for you to see your referrals. You need to add the following to see your sorted page list (change the HTML to whatever you desire):<br /> [code]sub html_page &#123;<br /> print &lt;&lt;Header ;<br /> &lt;b&gt;&lt;font size=&quot;2&quot;&gt;Pages&lt;br&gt;<br /> &lt;/font&gt;&lt;/b&gt; <br /> &lt;table width=&quot;$table_width&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; bgcolor=&quot;#FAFAF5&quot;&gt;<br /> &lt;tr bgcolor=&quot;#DDDDE8&quot;&gt; <br /> &lt;td width=&quot;10%&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;Hits&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;<br /> &lt;td width=&quot;10%&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;Percent&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;<br /> &lt;td width=&quot;80%&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;Page&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;<br /> &lt;/tr&gt;<br /> Header<br /> my $percent;<br /> foreach $pag &#40;sort sort_page keys %page&#41; &#123;<br /> if &#40;$page&#123;$pag&#125; &gt;= $page_min&#41; &#123;<br /> $percent = sprintf &#40;&quot;%.2f&quot;,&#40;$page&#123;$pag&#125;/$total*100&#41;&#41;;<br /> print &quot;    &lt;tr&gt;\n      &lt;td width=\&quot;10%\&quot;&gt;&lt;font size=\&quot;2\&quot;&gt;$page&#123;$pag&#125; &lt;/font&gt;&lt;/td&gt;\n      &lt;td width=\&quot;10%\&quot;&gt;&lt;font size=\&quot;2\&quot;&gt;$percent\% &lt;/font&gt;&lt;/td&gt;\n&quot;;<br /> if &#40;$pag eq &quot;-&quot;&#41; &#123;<br /> print &quot;      &lt;td width=\&quot;80%\&quot;&gt;&lt;font size=\&quot;2\&quot;&gt;NO PAGE&lt;/font&gt;&lt;/td&gt;\n    &lt;/tr&gt;\n&quot;;<br /> &#125;<br /> else &#123;<br /> print &quot;      &lt;td width=\&quot;80%\&quot;&gt;&lt;a href=\&quot;$pag\&quot; target=_blank&gt;$pag&lt;/a&gt;&lt;/td&gt;\n    &lt;/tr&gt;\n&quot;;<br /> &#125;	<br /> &#125;<br /> else &#123;<br /> last;<br /> &#125;<br /> &#125;<br /> print &quot;  &lt;/table&gt;\n  &lt;hr&gt;\n&quot;;<br /> &#125;[/code]<br /> <br /> We're done with stat.pl. Now the log.pl file needs to write the page into the logfiles. Inside log.pl find sub write_log and find open(DATA,"&gt;&gt;$logdat"). Under that change the line print DATA to the following:<br /> [code]print DATA &#40;&quot;$this_day - $ENV&#123;'REMOTE_ADDR'&#125; - $host - \&quot;$ENV&#123;'HTTP_USER_AGENT'&#125;\&quot; - \&quot;$referer\&quot; - \&quot;$ENV&#123;'HTTP_REFERER'&#125;\&quot;\n&quot;&#41;;[/code]<br /> <br /> That's it for log.pl. The javascript on each page needs to be changed as well. Here it is (put it on every page you want to keep track of):<br /> [code]&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;&gt;&lt;!--<br /> document.write&#40;&quot;&lt;img src=\&quot;http&#58;//domain.com/cgi-bin/log.pl?ref=&quot;+top.document.referrer+&quot;\&quot; width=1 height=1 border=0&gt;&quot;&#41;;<br /> // --&gt;<br /> 	&lt;/script&gt;<br />   &lt;noscript&gt;<br /> &lt;img src=&quot;http&#58;//domain.com/cgi-bin/log.pl?ref=noscript&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt; <br /> &lt;/noscript&gt;[/code]<br /> <br /> That should do it. I'm not a programmer so if it can be done more efficiently, please correct me.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3340.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3340.php</link>
				<pubDate><![CDATA[Thu, 19 Dec 2002 15:01:43]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Try EZSTATPG - Easy Access Stats Page Maker<br /> [url]http://mannyjuan.com/ezstatpg.htm[/url]<br /> and do all the code mods to ezstatvu.pl]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1300/3358.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1300/3358.php</link>
				<pubDate><![CDATA[Sat, 21 Dec 2002 22:21:02]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>