line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MyLibrary::Config; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $DATA_SOURCE = 'DBI:mysql:mylibrary'; |
4
|
|
|
|
|
|
|
our $USERNAME = 'nobody'; |
5
|
|
|
|
|
|
|
our $PASSWORD = 'nobody'; |
6
|
|
|
|
|
|
|
our $ML_KEY = ''; |
7
|
|
|
|
|
|
|
our $SESSION_DIR = ''; |
8
|
|
|
|
|
|
|
our $RELATIVE_PATH = ''; |
9
|
|
|
|
|
|
|
our $COOKIE_DOMAIN = ''; |
10
|
|
|
|
|
|
|
our $HOME_URL = ''; |
11
|
|
|
|
|
|
|
our $SCRIPTS_URL = ''; |
12
|
|
|
|
|
|
|
our $SECURE_SCRIPTS_URL = ''; |
13
|
|
|
|
|
|
|
our $NAME_OF_APPLICATION = ''; |
14
|
|
|
|
|
|
|
our $JAVASCRIPT_URL = ''; |
15
|
|
|
|
|
|
|
our $CSS_URL = ''; |
16
|
|
|
|
|
|
|
our $SSI_URL = ''; |
17
|
|
|
|
|
|
|
our $IMAGE_URL = ''; |
18
|
|
|
|
|
|
|
our %SSI_PAGES = (); |
19
|
|
|
|
|
|
|
our $INDEX_DIR = ''; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my %instances = (); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub instance { |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
27
|
0
|
|
|
|
|
|
my $instance = shift; |
28
|
|
|
|
|
|
|
|
29
|
0
|
0
|
0
|
|
|
|
if ($instance && $instance ne 'default') { |
30
|
0
|
|
|
|
|
|
my %instance_params = %{$instances{$instance}}; |
|
0
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
our $DATA_SOURCE = $instance_params{'DATA_SOURCE'}; |
32
|
0
|
|
|
|
|
|
our $USERNAME = $instance_params{'USERNAME'}; |
33
|
0
|
|
|
|
|
|
our $PASSWORD = $instance_params{'PASSWORD'}; |
34
|
0
|
|
|
|
|
|
our $ML_KEY = $instance_params{'ML_KEY'}; |
35
|
0
|
|
|
|
|
|
our $SESSION_DIR = $instance_params{'SESSION_DIR'}; |
36
|
0
|
|
|
|
|
|
our $RELATIVE_PATH = $instance_params{'RELATIVE_PATH'}; |
37
|
0
|
|
|
|
|
|
our $COOKIE_DOMAIN = $instance_params{'COOKIE_DOMAIN'}; |
38
|
0
|
|
|
|
|
|
our $HOME_URL = $instance_params{'HOME_URL'}; |
39
|
0
|
|
|
|
|
|
our $SCRIPTS_URL = $instance_params{'SCRIPTS_URL'}; |
40
|
0
|
|
|
|
|
|
our $SECURE_SCRIPTS_URL = $instance_params{'SECURE_SCRIPTS_URL'}; |
41
|
0
|
|
|
|
|
|
our $NAME_OF_APPLICATION = $instance_params{'NAME_OF_APPLICATION'}; |
42
|
0
|
|
|
|
|
|
our $JAVASCRIPT_URL = $instance_params{'JAVASCRIPT_URL'}; |
43
|
0
|
|
|
|
|
|
our $CSS_URL = $instance_params{'CSS_URL'}; |
44
|
0
|
|
|
|
|
|
our $SSI_URL = $instance_params{'SSI_URL'}; |
45
|
0
|
|
|
|
|
|
our $IMAGE_URL = $instance_params{'IMAGE_URL'}; |
46
|
0
|
|
|
|
|
|
our %SSI_PAGES = @{$instance_params{'SSI_PAGES'}}; |
|
0
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
our $INDEX_DIR = $instance_params{'INDEX_DIR'}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |