Skip to content

Commit

Permalink
Minor changes found during diff to slash-1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Jul 11, 2000
1 parent 686ca26 commit a5f1083
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 41 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Expand Up @@ -55,7 +55,7 @@ slash-1.0.6, 2000.07.10
fact that there are some situations where we may want to make
certain moderations that don't get applied still applicable to
M2 review. comments.pl and article.pl have been made aware of
this new field/
this new field

* Metamoderation results are now counted. The number of times a
user's moderation is voted fair or unfair is now counted in
Expand Down
1 change: 0 additions & 1 deletion plugins/Submit/submit.pl
Expand Up @@ -28,7 +28,6 @@
use lib '../';
use vars '%I';
use Slash;
use HTML::Entities;

#################################################################
sub main {
Expand Down
1 change: 0 additions & 1 deletion public_html/admin.pl
Expand Up @@ -28,7 +28,6 @@
use vars '%I';
use Image::Size;
use Slash;
use HTML::Entities;

sub main {
*I = getSlashConf();
Expand Down
4 changes: 2 additions & 2 deletions public_html/search.pl
Expand Up @@ -58,7 +58,7 @@ sub main {

searchForm();

if ($I{F}{op} eq "comments") { commentSearch() }
if ($I{F}{op} eq "comments") { commentSearch() }
elsif ($I{F}{op} eq "users") { userSearch() }
elsif ($I{F}{op} eq "stories") { storySearch() }
else {
Expand Down Expand Up @@ -412,7 +412,7 @@ sub storySearch {
# Counting has been removed (see comment at top).
# my $remaining = $I{F}{hitcount} - $I{F}{'last'};
print "<P>", linkSearch({
'link' => "<B>More Articles</B>",
'link' => "<B>More Articles...</B>",
min => $I{F}{'last'}
}) unless !$x || $x < $I{F}{max};
}
Expand Down
1 change: 0 additions & 1 deletion public_html/submit.pl
Expand Up @@ -28,7 +28,6 @@
use lib '../';
use vars '%I';
use Slash;
use HTML::Entities;

#################################################################
sub main {
Expand Down
2 changes: 1 addition & 1 deletion slashd
Expand Up @@ -341,7 +341,7 @@ sub newrdf {
);

my $x = sprintf <<EOT, @fs;
<?xml version="1.0"?><rdf:RDF
<?xml version="1.0" encoding="ISO-8859-1"?><rdf:RDF
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://my.netscape.com/rdf/simple/0.9/">
<rss>
Expand Down
52 changes: 22 additions & 30 deletions slashdotrc.pl
Expand Up @@ -73,30 +73,30 @@
send_mail => 0,

# The following variables can be used to tweak your Slash Moderation
authors_unlimited => 1, # authors have unlimited moderation
m2_comments => 10, # Number of comments for meta-moderation.
m2_maxunfair => 0.5, # Minimum % of unfairs for M2 penalty.
m2_toomanyunfair => 0.3, # Minimum % of unfairs for which M2 is ignored.
m2_bonus => '+1', # Bonus for participating in meta-moderation.
m2_penalty => '-1', # Penalty for misuse of meta-moderation.
comment_minscore => -1, # Minimum score for a specific comment.
comment_maxscore => 5, # Maximum score for a specific comment.
goodkarma => 25, # Users get bonus points for posts if karma above this value
badkarma => -10, # Users get penalized for posts if karma is below this value
metamod_sum => 3, # sum of moderations 1 for release (deprecated)
maxtokens => 40, # Token threshold that must be hit to get any points
tokensperpoint => 8, # Number of tokens per point
maxpoints => 5, # The maximum number of points any moderator can have
stir => 3, # Number of days before unused moderator points expire
tokenspercomment => 6, # Number of tokens to feed the system for each comment
down_moderations => -6, # number of how many comments you can post that get down moderated
authors_unlimited => 1, # authors have unlimited moderation
m2_comments => 10, # Number of comments for meta-moderation.
m2_maxunfair => 0.5, # Minimum % of unfairs for M2 penalty.
m2_toomanyunfair => 0.3, # Minimum % of unfairs for which M2 is ignored.
m2_bonus => '+1', # Bonus for participating in meta-moderation.
m2_penalty => '-1', # Penalty for misuse of meta-moderation.
comment_minscore => -1, # Minimum score for a specific comment.
comment_maxscore => 5, # Maximum score for a specific comment.
goodkarma => 25, # Users get bonus points for posts if karma above this value
badkarma => -10, # Users get penalized for posts if karma is below this value
metamod_sum => 3, # sum of moderations 1 for release (deprecated)
maxtokens => 40, # Token threshold that must be hit to get any points
tokensperpoint => 8, # Number of tokens per point
maxpoints => 5, # The maximum number of points any moderator can have
stir => 3, # Number of days before unused moderator points expire
tokenspercomment => 6, # Number of tokens to feed the system for each comment
down_moderations => -6, # number of how many comments you can post that get down moderated

# comment posting and story submission abuse settings
post_limit => 10, # seconds delay before repeat posting
max_posts_allowed => 30, # maximum number of posts per day allowed
max_submissions_allowed => 20, # maximum number of submissions per timeframe allowed
submission_speed_limit => 300, # how fast they can submit
formkey_timeframe => 14400, # the time frame that we check for a formkey
post_limit => 10, # seconds delay before repeat posting
max_posts_allowed => 30, # maximum number of posts per day allowed
max_submissions_allowed => 20, # maximum number of submissions per timeframe allowed
submission_speed_limit => 300, # how fast they can submit
formkey_timeframe => 14400, # the time frame that we check for a formkey

# see Slash::fixHref()
fixhrefs => [
Expand All @@ -111,14 +111,6 @@
}
],

[
qr/^pudge/,
sub {
$_[0] =~ s|pudge|http://pudge.net|;
return($_[0], 0);
}
],

[
qr/^linux/,
sub {
Expand Down
1 change: 0 additions & 1 deletion themes/slashcode/htdocs/admin.pl
Expand Up @@ -28,7 +28,6 @@
use vars '%I';
use Image::Size;
use Slash;
use HTML::Entities;

sub main {
*I = getSlashConf();
Expand Down
4 changes: 2 additions & 2 deletions themes/slashcode/htdocs/search.pl
Expand Up @@ -58,7 +58,7 @@ sub main {

searchForm();

if ($I{F}{op} eq "comments") { commentSearch() }
if ($I{F}{op} eq "comments") { commentSearch() }
elsif ($I{F}{op} eq "users") { userSearch() }
elsif ($I{F}{op} eq "stories") { storySearch() }
else {
Expand Down Expand Up @@ -412,7 +412,7 @@ sub storySearch {
# Counting has been removed (see comment at top).
# my $remaining = $I{F}{hitcount} - $I{F}{'last'};
print "<P>", linkSearch({
'link' => "<B>More Articles</B>",
'link' => "<B>More Articles...</B>",
min => $I{F}{'last'}
}) unless !$x || $x < $I{F}{max};
}
Expand Down
1 change: 0 additions & 1 deletion themes/slashcode/htdocs/submit.pl
Expand Up @@ -28,7 +28,6 @@
use lib '../';
use vars '%I';
use Slash;
use HTML::Entities;

#################################################################
sub main {
Expand Down

0 comments on commit a5f1083

Please sign in to comment.