- Added WebGUI community statistics question to the site setup wizard.

This commit is contained in:
JT Smith 2009-05-15 16:11:32 +00:00
parent d4a884c202
commit 802713092f
4 changed files with 20 additions and 0 deletions

View file

@ -91,6 +91,7 @@ Deletes the workflow schedule that sends WebGUI statistics to webgui.org.
sub www_disableSendWebguiStats {
my $session = shift;
return $session->privilege->adminOnly() unless canView($session);
my $task = WebGUI::Workflow::Cron->new($session, 'send_webgui_statistics');
$task->delete;
return www_viewStatistics($session);
@ -107,6 +108,7 @@ Creates the workflow schedule that sends WebGUI statistics to webgui.org.
sub www_enableSendWebguiStats {
my $session = shift;
return $session->privilege->adminOnly() unless canView($session);
# we set the current hour, minute, and day of week to send in the stats so we don't DOS webgui.org
# by having everybody sending it at the same time
my $dt = WebGUI::DateTime->new($session, time());