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

View file

@ -0,0 +1,25 @@
package Hourly::DeleteExpiredGroupings;
my $offset = 0; # in seconds, time to wait before deleting
#-------------------------------------------------------------------
# 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("delete from groupings where expireDate<".(time()-(86400*$offset)));
}
1;