diff --git a/trunk/video.pl b/trunk/video.pl index 8d65d46..64a596f 100644 --- a/trunk/video.pl +++ b/trunk/video.pl @@ -139,6 +139,18 @@ if($query->param('title') or $query->param('id')) 'user' => $username }; } + + #get referers + $sth = $dbh->prepare(qq{select count, referer from referer where videoid=?}); + $sth->execute($id); + while (my ($count, $referer) = $sth->fetchrow_array()) + { + $referer or $referer = 'no referer (refreshed, manually entered url or bookmark)'; + push @{ $page->{'referers'}->{'referer'} }, { + 'count' => $count, + 'referer' => $referer + }; + } } else { diff --git a/trunk/xsl/xhtml.xsl b/trunk/xsl/xhtml.xsl index 9f76797..16f7d1c 100755 --- a/trunk/xsl/xhtml.xsl +++ b/trunk/xsl/xhtml.xsl @@ -487,6 +487,19 @@ +
+ |
+
+ |
+