merging 6.2.8 changes and initial draft of TinyMCE as rich editor

This commit is contained in:
JT Smith 2004-10-30 15:49:59 +00:00
parent a189f52942
commit 6ddb7c49e6
38 changed files with 328 additions and 145 deletions

View file

@ -19,18 +19,20 @@ use WebGUI::SQL;
#-----------------------------------------
sub process {
my $verbose = shift;
my @date = WebGUI::DateTime::localtime(WebGUI::DateTime::time());
if ($date[4] == 1) { # only occurs at 1am on the day in question.
if ($date[3] == 1) { # only occurs at 1am on the day in question.
my $now = WebGUI::DateTime::time();
my $a = WebGUI::SQL->read("select groupId,expireNotifyOffset,expireNotifyMessage from groups
where expireNotify=1");
while (my $group = $a->hashRef) {
my $start = $now + (86400 * $group->{expireNotifyOffset});
my $start = $now + (86400 * ($group->{expireNotifyOffset}-1));
my $end = $start + 86400;
my $b = WebGUI::SQL->read("select userId from groupings where groupId=".quote($group->{groupId})." and
expireDate>=".$start." and expireDate<=".$end);
while (my ($userId) = $b->array) {
WebGUI::MessageLog::addEntry($userId,"",WebGUI::International::get(867),$group->{expireNotifyMessage});
print "\n\t\tNotified ".$userId." about ".$group->{groupId} if ($verbose);
}
$b->finish;
}