- Timestamp:
- 01/31/09 14:16:16 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit-plugin-ping/trunk/lib/Wiki/Toolkit/Plugin/Ping.pm
r360 r489 11 11 12 12 @ISA = qw( Wiki::Toolkit::Plugin ); 13 $VERSION = '0.0 1';13 $VERSION = '0.02'; 14 14 15 15 … … 37 37 } 38 38 $self->{node_to_url} = $args{node_to_url}; 39 $self->{agent} = $args{agent} || "Wiki::Toolkit::Plugin::Ping $VERSION"; 39 40 40 41 … … 98 99 # Get a LWP instance 99 100 my $ua = LWP::UserAgent->new; 100 $ua->agent( "Wiki::Toolkit::Plugin::Ping $version");101 $ua->agent($self->{agent}); 101 102 102 103 # Ping each service … … 141 142 services => { 142 143 "geourl" => 'http://geourl.org/ping?p=$url' 143 } 144 }, 145 agent => "My Wiki ping agent", 144 146 ); 145 147 $wiki->register_pugin( plugin => $ping ); … … 152 154 153 155 You need to tell it how to turn a node into a URL (node_to_url), and what 154 services to ping (services). 156 services to ping (services). You can optionally pass a custom user-agent 157 string 155 158 156 159 =head1 AUTHOR … … 160 163 =head1 COPYRIGHT 161 164 162 Copyright (C) 2003-2004 I. P. Williams (ivorw_openguides [at] xemaps {dot} com).163 Copyright (C) 2006the Wiki::Toolkit team (http://www.wiki-toolkit.org/)164 All Rights Reserved.165 Copyright (C) 2003-2004 I. P. Williams (ivorw_openguides [at] xemaps {dot} com). 166 Copyright (C) 2006-2009 the Wiki::Toolkit team (http://www.wiki-toolkit.org/) 167 All Rights Reserved. 165 168 166 169 This module is free software; you can redistribute it and/or modify it
