Adding the IHP Kit.

This commit is contained in:
JT Smith 2002-10-13 03:30:55 +00:00
parent fc8808c5c0
commit 55108689b4
11 changed files with 1047 additions and 0 deletions

27
sbin/Hourly/DecayKarma.pm Normal file
View file

@ -0,0 +1,27 @@
package Hourly::DecayKarma;
my $minimumKarma = 0; # won't go below this number
my $decayFactor = 1; # amount to remove per hour
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2002 Plain Black LLC.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------
use strict;
use WebGUI::Session;
use WebGUI::SQL;
#-----------------------------------------
sub process {
WebGUI::SQL->write("update users set karma=karma-$decayFactor where karma>".$minimumKarma);
}
1;