tracker.pm

来自「一个论文管理系统」· PM 代码 · 共 50 行

PM
50
字号
# $Id: Tracker.pm,v 1.4 2005/09/08 02:01:44 martin Exp $## Copyright 2005 Nature Publishing Group# This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.## The Bibliotech::Component::Tracker class provides output to# track marketing ads.package Bibliotech::Component::Tracker;use strict;use base 'Bibliotech::Component';sub last_updated_basis {  'PID';}sub html_content {  my ($self, $class, $verbose, $main) = @_;  my $bibliotech = $self->bibliotech;  my $cgi = $bibliotech->cgi;  my $o = '';  unless (defined $bibliotech->user) {    (my $path = $bibliotech->canonical_path) =~ s|/|_|g;    my $options = $self->options;    unless ($options->{registered}) {      $o = "<!-- ***  CLICK TRACKING CODE 3.0 *** -->\n";      $o .= "<script language=\"JavaScript\" type=\"text/javascript\" defer=\"defer\" src=\"http://keywordmax.com/tracking/show.php?id=817652139&location=$path\"></script>\n";      $o .= "<noscript>\n";      $o .= "<img src=\"http://keywordmax.com/tracking/log.php?id=817652139&loc=$path\" border=\"0\" width=\"1\" height=\"1\">\n";      $o .= "</noscript>\n";      $o .= "<!-- ^^^ CLICK TRACKING CODE 3.0 ^^^ -->\n";    }    else {      $o .= "<!-- *** ACTION TRACKING CODE 3.0 *** -->\n";      $o .= "<img src=\"https://keywordmax.com/tracking/act.php?id=817652139&amount=0&transid=0&name=REGISTRATION&trackall=1&domain=connotea.org\" border=\"0\" width=\"1\" height=\"1\">\n";      $o .= "<!-- ^^^ ACTION TRACKING CODE 3.0 ^^^ -->\n";    }  }  return Bibliotech::Page::HTML_Content->simple($o);}1;__END__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?