File: SmallPigVars.pm

package info (click to toggle)
sporum 1.8b1-3.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,108 kB
  • ctags: 676
  • sloc: perl: 14,300; makefile: 52
file content (164 lines) | stat: -rw-r--r-- 5,251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
package SmallPigVars;

require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(@EXPORT_OK &get_config);
@EXPORT_OK = qw($config);

use strict;
use vars qw($config);

$config = 
{  
  # --- spmail location: if you dont have spmail installed, 
  # --- comments out the variable below.
  #'spmail_cgi'          => "/usr/lib/cgi-bin/sporum/spmail",
    
  'version'             => "1.8b1",
  
  # --- --- url address
  # --- cgi url: the location where the cgi files are placed
  'cgidir'              => "http://localhost/cgi-bin/sporum",
  # --- site url: the url of your site
  'basewwwdir'          => "http://localhost",
  # --- html url
  'htmldir'             => "http://localhost/sporum",
  # --- themes path
  'themesdir'           => "/usr/lib/cgi-bin/sporum/Themes",
  # --- lang module path
  'langsdir'            => "/usr/lib/cgi-bin/sporum/Langs",
  
  # --- --- SQL database 
  # --- name of the remote host on which the DB is running
  'dbhost'              => "localhost",
  # --- port of the remote host
  'dbport'              => "3306",
  # --- name of the DBI driver
  'dbdriver'            => "mysql",
  # --- name of the DB name
  'dbname'              => "sporum",
  # --- name of the user who use this DB
  'dbuser'              => "smallpig",
  # --- password of the user
  'dbpass'              => "sporumpass",
  
  # --- --- contact information 
  # -- email address: your email address
  'adminaddr'           => "my_address\@hostname.net",
  # --- homepage url: your homepage link
  'adminhp'             => "http://localhost",
  
  # --- --- email function
  # --- two options to send mail: 
  # --- 1. using sendmail 
  # --- 2. using smtp server
  # --- make sure you uncomment the one you want to use.
  # --- DONT uncomment both...
  # --- sendmail location: the location of the sendmail program 
  # --- in your server
   'sendmail'            => "/usr/sbin/sendmail",
  # --- if you dont have sendmail in your server, set 'smtpserver'
  # --- you are going to use
#  'smtpserver'          => "uclink.berkeley.edu",

  # --- --- file attachment
  # --- allowed file size, 
  'file_size'           => 100000,
  # --- file path: the location the files will store
  'file_path'           => "/var/www/sporum/uploaded",
  # --- file url: url location of uploaded files
  'file_url'            => "http://localhost/sporum/uploaded",
  # --- maximum amount of files allowed attached
  'file_max'            => 2,
  
  # --- --- general information  
  # --- name of your forum
  'title'               => "Sporum Demo",
  # --- description of your forum
  'description'         => "Sporum Demo",
  
  # --- --- display operation
  # --- default display mode
  # --- * Threaded -- "threaded"
  # --- * Flat     -- "flat"
  # --- * Nested   -- "nested",
  # --- * Combined -- "combined"
  'display'             => "threaded",
  # --- defautl view mode
  # --- * Collapsed -- "collapsed"
  # --- * Expanded  -- "Expanded"
  'view'                => "collapsed",
  # --- default sort and order of messages
  # --- * descending subject -- "subject desc"
  # --- * ascending subject  -- "subject asc"
  # --- * descending date    -- "date desc"
  # --- * ascending date     -- "date asc"
  # --- * descending name    -- "name desc"
  # --- * ascending name     -- "name asc"
  'sort'                => "date desc",
  # --- maximum number of topics listed in one page
 'postsper'            => 10,
  
  # --- --- registration options
  # --- email duplicate check: check user email is unique or not
  'emaildup'            => "no",
  # --- notify all the admins after registration
  'notifyadmins'        => "yes",
  
  'cookieexpires'       => "+1M",
  'cookiesecret'        => "ynaffit ky 390",
  
  # --- --- others
  # --- subject with $sublen length that shown in topicslist
  'sublen'              => 36,

  # --- Fri Oct 29 23:51:06 PDT 1999
  # --- date format
  'date_format'         => "m/d/y h:i p",
  # --- confirmation option: need to confirm the email address
  # --- after registration
  'confirm_email'       => "no",
  
  # --- Mon Nov  8 00:57:42 PST 1999
  # --- display the message "no forums" if the category is empty
  'display_no_forums'   => "no",

  # --- Sat Nov 20 23:35:39 PST 1999
  # --- chararcter set
  # 'charset'             => "big5",

  # --- allow user to register with self-chose password
  'self_chose_passwd'   => "yes",

  # --- Thu Jan  6 23:15:14 PST 2000
  # --- skip the preview and send the message directly
  'skip_preview'        => "yes",

  # --- Wed Jan 12 20:31:53 PST 2000
  # --- only allow user to have one handler
  'one_hdlr'            => "no",

  # --- Sat Jan 15 10:46:11 PST 2000
  # --- default theme
  'theme'               => "default",

  # --- Sun Jan 23 13:24:11 PST 2000
  # --- default lang
  'lang'                => "default",

  # --- Fri Jan 28 12:01:22 PST 2000
  # --- Applying the following variables let you setup multiple
  # --- copies of sporum using the same database.  If you would 
  # --- like those copies share the same user related tables, 
  # --- simply comment out the 'user_tbl'
  #'user_tbl'             => "",
  'rest_tbl'             => "",

  # --- caution refresh
  'refresh'              => 5
  
};

sub get_config{
    return $config;
}