line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Maypole::Constants; |
2
|
2
|
|
|
2
|
|
3196
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
89
|
|
3
|
2
|
|
|
2
|
|
10
|
use base 'Exporter'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
183
|
|
4
|
2
|
|
|
2
|
|
10
|
use constant OK => 0; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
154
|
|
5
|
2
|
|
|
2
|
|
11
|
use constant DECLINED => -1; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
99
|
|
6
|
2
|
|
|
2
|
|
10
|
use constant ERROR => 500; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
260
|
|
7
|
|
|
|
|
|
|
our @EXPORT = qw(OK DECLINED ERROR); |
8
|
|
|
|
|
|
|
our $VERSION = "1." . sprintf "%04d", q$Rev: 483 $ =~ /: (\d+)/; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Maypole::Constants - Maypole predefined constants |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use Maypole::Constants; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub authenticate { |
21
|
|
|
|
|
|
|
if (valid_user()) { |
22
|
|
|
|
|
|
|
return OK; |
23
|
|
|
|
|
|
|
} else { |
24
|
|
|
|
|
|
|
return DECLINED |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This class defines constants for use with Maypole |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 CONSTANTS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head3 OK |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head3 DECLINED |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head3 ERROR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SEE ALSO |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
L |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 MAINTAINER |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Aaron Trevena, c |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Simon Cozens, C |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
You may distribute this code under the same terms as Perl itself. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |