| 1 | package Labyrinth::Plugin::CPAN::Admin; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use vars qw($VERSION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | $VERSION = '0.15'; | |
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Labyrinth::Plugin::CPAN::Admin - Content Plugin for CPAN Testers Admin website. | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | #---------------------------------------------------------------------------- | ||
| 16 | # Libraries | ||
| 17 | |||
| 18 | 2 | ▶ | use base qw(Labyrinth::Plugin::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 2 | ▶ | use Labyrinth::DTUtils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | ▶ | use Labyrinth::Variables; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | #---------------------------------------------------------------------------- | ||
| 24 | # Variables | ||
| 25 | |||
| 26 | #---------------------------------------------------------------------------- | ||
| 27 | # Public Interface Functions | ||
| 28 | |||
| 29 | #---------------------------------------------------------- | ||
| 30 | # Content Management Subroutines | ||
| 31 | |||
| 32 | =head1 CONTENT MANAGEMENT FUNCTIONS | ||
| 33 | |||
| 34 | =over 4 | ||
| 35 | |||
| 36 | =item GetVersion | ||
| 37 | |||
| 38 | Store the current application version in a template variable. | ||
| 39 | |||
| 40 | =item ServerTime | ||
| 41 | |||
| 42 | Retrieve the current date and time on the server. | ||
| 43 | |||
| 44 | =back | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | 0 | ▶ | sub GetVersion { $tvars{'version'} = $main::VERSION; $tvars{'labversion'} = $Labyrinth::VERSION; } |
|
Subroutine
GetVersion: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 49 | 0 | ▶ | sub ServerTime { $tvars{'server'}{'date'} = formatDate(3); $tvars{'server'}{'time'} = formatDate(17); } |
|
Subroutine
ServerTime: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | |||
| 51 | 2 | 1; | |
| 52 | |||
| 53 | __END__ | ||