10 |
require 'users.pl'; |
require 'users.pl'; |
11 |
require 'texts.pl'; |
require 'texts.pl'; |
12 |
|
|
13 |
|
our $subject_prefix; |
14 |
|
|
15 |
require Message::CGI::HTTP; |
require Message::CGI::HTTP; |
16 |
require Encode; |
require Encode; |
17 |
my $cgi = Message::CGI::HTTP->new; |
my $cgi = Message::CGI::HTTP->new; |
345 |
} |
} |
346 |
|
|
347 |
set_user_prop ($user_id, $user_prop); |
set_user_prop ($user_id, $user_prop); |
348 |
|
send_mail ("$subject_prefix $group_id membership action", |
349 |
|
"Group: $group_id\nUser: $user_id\nAction: $action\nStatus: $status\n"); |
350 |
regenerate_htpasswd_and_htgroup (); |
regenerate_htpasswd_and_htgroup (); |
351 |
commit (); |
commit (); |
352 |
|
|
390 |
} |
} |
391 |
|
|
392 |
set_user_prop ($user_id, $user_prop); |
set_user_prop ($user_id, $user_prop); |
393 |
|
send_mail ("$subject_prefix $user_id disabledness action", |
394 |
|
"User: $user_id\nNew value: @{[$user_prop->{disabled} ? 'disabled' : 'enabled']}\n"); |
395 |
regenerate_htpasswd_and_htgroup (); |
regenerate_htpasswd_and_htgroup (); |
396 |
commit (); |
commit (); |
397 |
|
|
720 |
} |
} |
721 |
|
|
722 |
set_user_prop ($user_id, $user_prop); |
set_user_prop ($user_id, $user_prop); |
723 |
|
send_mail ("$subject_prefix $group_id membership action", |
724 |
|
"Group: $group_id\nUser: $user_id\nAction: $action\nStatus: $status\n"); |
725 |
regenerate_htpasswd_and_htgroup (); |
regenerate_htpasswd_and_htgroup (); |
726 |
commit (); |
commit (); |
727 |
|
|
755 |
my $group_prop = {id => $group_id}; |
my $group_prop = {id => $group_id}; |
756 |
set_group_prop ($group_id, $group_prop); |
set_group_prop ($group_id, $group_prop); |
757 |
|
|
758 |
|
send_mail ("$subject_prefix Group $group_id created", |
759 |
|
"Group: $group_id\nStatus: Group registered\n"); |
760 |
commit (); |
commit (); |
761 |
|
|
762 |
my $group_url = get_absolute_url ('groups/' . $group_id . '/'); |
my $group_url = get_absolute_url ('groups/' . $group_id . '/'); |