eg/dot_lwrc

filter: Statementstmt 50.0% 1 / 2 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 50.0% 1 / 2 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/LibWeb/HTML/Error.pm ↑ Summary
1 # -*- perl -*-
2  
3 #=============================================================================
4 # dot_lwrc -- a sample rc (config) file for LibWeb
5 #
6 # Copyright (C) 2000 Colin Kong
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #=============================================================================
22  
23 # $Id: dot_lwrc,v 1.6 2000/07/18 06:33:30 ckyc Exp $
24  
25 # Configuration for LibWeb.
26 #
27 # Adjust these fields to suit your site's needs accordingly.
28 # New ones may be added.
29 #
30 # Note the trailing slash for all paths and urls.
31 #
32 return {#DO NOT REMOVE THIS CURLY BRACKET.
33  
34 #####################################################
35 # Security, encryption & digest variables. #
36 #####################################################
37 3 CLASSIC_EXPIRES => 'Thu, 01-Jan-1970 00:00:01 GMT', # DO NOT EDIT.
38 # PLEASE PLEASE change these variables periodically.
39 RAND_RANGE => 123456789,
40 MAC_KEY => '12345abcde',
41 CIPHER_KEY => '12345abcde',
42 DIGEST_KEY => '12345abcde',
43 CIPHER_ALGORITHM => 'Crypt::Blowfish',
44 DIGEST_ALGORITHM => 'Digest::SHA1',
45 CIPHER_FORMAT => 'HEX',
46 DIGEST_FORMAT => 'B64',
47  
48 #####################################################
49 # Debug/fatal messages mailing & logging variables. #
50 #####################################################
51 DEBUG => 0,
52 FATAL_LOG => '/home/foo/libweb.log',
53 IS_MAIL_DEBUG_TO_ADMIN => 1,
54 SMTP => ['localhost'],
55 MAIL_PROGRAM => '/usr/sbin/sendmail -t -oi',
56 ADMIN_EMAIL => 'foo@your_domain.org',
57
58 #####################################################
59 # User administration variables. #
60 #####################################################
61 IS_NOTIFY_ADMIN_WHEN_ADDED_NEW_USER => 1,
62 IS_ALLOW_MULTI_REGISTRATION => 0,
63 MAX_LOGIN_ATTEMPT_ALLOWED => 5, # This MUST be < LOGIN_INDICATOR
64 LOGIN_INDICATOR => 9,
65 LOGIN_DURATION_ALLOWED => 14400, # 4 hours (since there are 3600 sec/hr)
66
67 #####################################################
68 # SQL database variables. #
69 #####################################################
70 #DB_NAME => 'database_name', # Reserved constant.
71 IS_DB_ENABLED => 0,
72 DB_SOURCE => 'DBI:mysql:database_name',
73 DB_LOGIN => 'database_login',
74 DB_PASS => 'database_password',
75 DB_OPTIONS => {RaiseError => 1, AutoCommit => 1},
76 USER_PROFILE_TABLE => 'USER_PROFILE',
77 USER_PROFILE_TABLE_UID => 'UID',
78 USER_PROFILE_TABLE_NAME => 'NAME',
79 USER_PROFILE_TABLE_PASS => 'PASS',
80 USER_PROFILE_TABLE_EMAIL => 'EMAIL',
81 USER_LOG_TABLE => 'USER_LOG',
82 USER_LOG_TABLE_UID => 'UID',
83 USER_LOG_TABLE_IP => 'IP',
84 USER_LOG_TABLE_HOST => 'HOST',
85 USER_LOG_TABLE_LAST_LOGIN => 'LAST_LOGIN',
86 USER_LOG_TABLE_NUM_LOGIN_ATTEMPT => 'NUM_LOGIN_ATTEMPT',
87
88 ####################################################
89 # Site's colors, theme and pix location. #
90 ####################################################
91 SITE_1ST_COLOR => '#0099CC', # Light blue.
92 SITE_2ND_COLOR => '#006699', # Blue.
93 SITE_3RD_COLOR => '#003366', # Deep blue.
94 SITE_4TH_COLOR => '#FF9900', # Orange.
95 SITE_BG_COLOR => '#FFFFFF', # White.
96 SITE_TXT_COLOR => '#000000', # Black.
97 SITE_LIQUID_COLOR1 => '#E6E6E6', # Lighter Grey.
98 SITE_LIQUID_COLOR2 => '#C9C9C9', # Light Grey.
99 SITE_LIQUID_COLOR3 => '#9C9C9C', # Grey.
100 SITE_LIQUID_COLOR4 => '#6E6E6E', # Dark Grey.
101 SITE_LIQUID_COLOR5 => '#000000', # Black.
102 PIX_URL => '/img/',
103 SITE_LOGO => '/img/logo.png',
104
105 #####################################################
106 # Misc. site's variables. #
107 #####################################################
108 DOC_ROOT => "$ENV{DOCUMENT_ROOT}/", # DO NOT EDIT.
109 URL_ROOT => "http://$ENV{HTTP_HOST}/", # DO NOT EDIT.
110 PRIVACY_POLICY => '/my_privacy_policy.htm',
111 TOS => '/my_terms.htm',
112 CSS => '/my_styles.css',
113 SITE_NAME => 'Your site name',
114 SITE_DESCRIPTION => 'Your_domain.org is a site for you to foo bar... ',
115 SITE_KEYWORDS => 'foo, bar',
116 SITE_YEAR => '1999, 2000',
117  
118 #####################################################
119 # Site's common applications' url. #
120 #####################################################
121 LM_IN => '/cgi-bin/lm.cgi',
122 LM_OUT => '/cgi-bin/lm.cgi?.a=logout'
123 # DO NOT PUT A COMMA AFTER THE LAST ATTRIBUTE.
124  
125 };#DO NOT REMOVE THE CURLY BRACKET AND SEMI-COLON.
126  
127 0 1;
128 __END__
« blib/lib/LibWeb/HTML/Error.pm ↑ Summary