root/trunk/openid2-server/plugins/openid2-server/lib/OpenID2Server/Tags.pm @ 529

Revision 529, 441 bytes (checked in by fumiakiy, 21 months ago)

Initial checkin of OpenID 2.0 Provider plugin for Movable Type 4.1.

Line 
1package OpenID2Server::Tags;
2use strict;
3
4sub openid_server_url {
5    my ($ctx, $args) = @_;
6    require MT::Template::Context;
7    my $path = MT::Template::Context::_hdlr_admin_cgi_path(@_);
8    $path .= $ctx->{config}->AdminScript . '?__mode=openid';
9    $path;
10}
11
12sub openid_header {
13    my $path = openid_server_url(@_);
14    my $header = qq{<link rel="openid2.provider openid.server" href="$path" />};
15    return $header;
16}
17
181;
19__END__
20
Note: See TracBrowser for help on using the browser.