Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 159 lines (142 sloc) 6.241 kB
18f2698 @CaptTofu Initial revision
CaptTofu authored
1 ###############################################################################
2 # slashdotrc.pl
3 # This is the main global configuration file.
4 #
5 # Copyright (C) 1997 Rob "CmdrTaco" Malda
6 # malda@slashdot.org
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$
24 ###############################################################################
25 require URI;
26
27 # hardcoded variables to reduce the SQL. Normally use getvars()
28 # change this according to site specifics
29
30 my %my_conf = (
83ef866 @pudge Add in mailfrom variable, change yoursite.com to example.com.
pudge authored
31 adminmail => 'admin@example.com',
32 mailfrom => 'reply-to@example.com',
18f2698 @CaptTofu Initial revision
CaptTofu authored
33 siteowner => 'slash',
34 datadir => '/home/slash',
83ef866 @pudge Add in mailfrom variable, change yoursite.com to example.com.
pudge authored
35 basedomain => 'www.example.com', # add ":PORT" here if required
36 cookiedomain => '', # ".example.com', # off by default
18f2698 @CaptTofu Initial revision
CaptTofu authored
37 siteadmin => 'admin',
38 siteadmin_name => 'Slash Admin',
83ef866 @pudge Add in mailfrom variable, change yoursite.com to example.com.
pudge authored
39 smtp_server => 'smtp.example.com',
18f2698 @CaptTofu Initial revision
CaptTofu authored
40 sitename => 'Slash Site',
41 slogan => 'Slashdot Like Automated Storytelling Homepage',
42 breaking => 100,
43 shit => 0,
44 mainfontface => 'verdana,helvetica,arial',
45 fontbase => 0, # base font size, default 0
46 updatemin => 5, # do slashd updates, default 5
47 archive_delay => 60, # days to wait for story archiving, comments deleting
48 submiss_view => 1, # allow users to view submissions queue
49 submiss_ts => 1, # print timestamp in submissions view
50 articles_only => 0, # show only Articles in submission count in admin menu
51 admin_timeout => 30, # time in minutes before idle admin session ends
e94af4d @pudge v1.0.3. Merge with Slashdot merge. Yay!
pudge authored
52 allow_anonymous => 1, # allow anonymous posters
53 use_dept => 1, # use "dept." field
54 max_depth => 7, # max depth for nesting of comments
55 approvedtags => [qw(B I P A LI OL UL EM BR TT STRONG BLOCKQUOTE DIV)],
56 defaultsection => 'articles', # default section for articles
ed8a536 @pudge Add http_proxy
pudge authored
57 http_proxy => '', # 'http://proxy.example.com/'
18f2698 @CaptTofu Initial revision
CaptTofu authored
58
59 # this controls the life of %storyBank
60 story_expire => 600,
61 titlebar_width => '100%',
62 dsn => 'DBI:mysql:database=slash;host=localhost',
63 dbuser => 'slash',
64 dbpass => 'yourpassword',
65
66 # this is up to you to your own ad system. Sorry :-)
67 adfu_dsn => 'DBI:mysql:database=yourdb;host=youraddbhost',
68 adfu_dbuser => 'slash',
69 adfu_dbpass => 'adfudbpassword',
70 run_ads => 0, # whether we run ads or not
71
72 # if this is on, the mailinglist will go out. Do you want that?
73 send_mail => 0,
74
75 # The following variables can be used to tweak your Slash Moderation
a5f1083 @pudge Minor changes found during diff to slash-1.0.5
pudge authored
76 authors_unlimited => 1, # authors have unlimited moderation
77 m2_comments => 10, # Number of comments for meta-moderation.
78 m2_maxunfair => 0.5, # Minimum % of unfairs for M2 penalty.
79 m2_toomanyunfair => 0.3, # Minimum % of unfairs for which M2 is ignored.
80 m2_bonus => '+1', # Bonus for participating in meta-moderation.
81 m2_penalty => '-1', # Penalty for misuse of meta-moderation.
7cebd9d @Xliff Slash.pm
Xliff authored
82 m2_userpercentage => 0.9 # UID must be below this percentage of the total userbase to metamoderate.
a5f1083 @pudge Minor changes found during diff to slash-1.0.5
pudge authored
83 comment_minscore => -1, # Minimum score for a specific comment.
84 comment_maxscore => 5, # Maximum score for a specific comment.
85 goodkarma => 25, # Users get bonus points for posts if karma above this value
86 badkarma => -10, # Users get penalized for posts if karma is below this value
7cebd9d @Xliff Slash.pm
Xliff authored
87 maxkarma => 50, # Maximum karma a user can accumulate.
a5f1083 @pudge Minor changes found during diff to slash-1.0.5
pudge authored
88 metamod_sum => 3, # sum of moderations 1 for release (deprecated)
89 maxtokens => 40, # Token threshold that must be hit to get any points
90 tokensperpoint => 8, # Number of tokens per point
91 maxpoints => 5, # The maximum number of points any moderator can have
92 stir => 3, # Number of days before unused moderator points expire
93 tokenspercomment => 6, # Number of tokens to feed the system for each comment
94 down_moderations => -6, # number of how many comments you can post that get down moderated
18f2698 @CaptTofu Initial revision
CaptTofu authored
95
c4fafaf @CaptTofu took out speed limit (comment posting and story submissions) IPC obje…
CaptTofu authored
96 # comment posting and story submission abuse settings
a5f1083 @pudge Minor changes found during diff to slash-1.0.5
pudge authored
97 post_limit => 10, # seconds delay before repeat posting
98 max_posts_allowed => 30, # maximum number of posts per day allowed
99 max_submissions_allowed => 20, # maximum number of submissions per timeframe allowed
100 submission_speed_limit => 300, # how fast they can submit
101 formkey_timeframe => 14400, # the time frame that we check for a formkey
e94af4d @pudge v1.0.3. Merge with Slashdot merge. Yay!
pudge authored
102
103 # see Slash::fixHref()
104 fixhrefs => [
105 [
106 qr/^malda/,
107 sub {
108 $_[0] =~ s|malda|http://cmdrtaco.net|;
109 return(
110 $_[0],
111 "Everything that used to be in /malda is now located at http://cmdrtaco.net"
112 );
113 }
114 ],
115
116 [
117 qr/^linux/,
118 sub {
119 return(
120 "http://cmdrtaco.net/$_[0]",
121 "Everything that used to be in /linux is now located at http://cmdrtaco.net/linux"
122 );
123 }
124 ],
125
126 ],
d80f65f @pudge Bunches of changes for bunches of things. See the diff and CHANGES.
pudge authored
127
128 submit_categories => ['Back'],
18f2698 @CaptTofu Initial revision
CaptTofu authored
129 );
130
131 # these keys dependent on values set above
132 $my_conf{rootdir} = "http://$my_conf{basedomain}";
133 $my_conf{basedir} = $my_conf{datadir} . "/public_html";
134 $my_conf{imagedir} = "$my_conf{rootdir}/images";
135 $my_conf{rdfimg} = "$my_conf{imagedir}/topics/topicslash.gif";
136 $my_conf{cookiepath} = URI->new($my_conf{rootdir})->path . '/';
c8ecf7d @Xliff * More counts added for M2, now in addition to counting the number of
Xliff authored
137 $my_conf{m2_mincheck} = int $my_conf{m2_comments} / 3;
7cebd9d @Xliff Slash.pm
Xliff authored
138 $my_conf{m2_maxbonus} = int $my_conf{goodkarma} / 2;
18f2698 @CaptTofu Initial revision
CaptTofu authored
139
e94af4d @pudge v1.0.3. Merge with Slashdot merge. Yay!
pudge authored
140 # who to send daily stats reports to (email => subject)
141 $my_conf{stats_reports} = {
142 $my_conf{adminmail} => "$my_conf{sitename} Stats Report",
143 };
18f2698 @CaptTofu Initial revision
CaptTofu authored
144
145 # $$ for use by slashd, etc., for when there is no $ENV{SERVER_NAME}
146 $Slash::conf{lc $ENV{SERVER_NAME}} = \%my_conf;
147 $Slash::conf{$$} = \%my_conf;
148 $Slash::conf{DEFAULT} = \%my_conf;
149
150 # if you have more than one SERVER_NAME pointing to the same slash
151 # instance (such as www.slashdot.org and slashdot.org), then you
152 # can hardcode it in here, like so:
153 # $Slash::conf{$$} = \%my_conf;
154 # $Slash::conf{'www.foo.com'} = \%my_conf;
155 # $Slash::conf{'foo.com'} = \%my_conf;
156 # etc.
157
158 1;
Something went wrong with that request. Please try again.