X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=licom.cgi;h=cd0269060ba760153c82b332078d8fd86fcdd44c;hb=6f7a495a4c988a7825b779c6572c3e8b203d7833;hp=70e1e723c5bfb08c3360c02a7034db13a0c7c027;hpb=3cb23a820a52afa74acedf88975edf7920ae66f9;p=licom.git diff --git a/licom.cgi b/licom.cgi index 70e1e72..cd02690 100755 --- a/licom.cgi +++ b/licom.cgi @@ -23,7 +23,7 @@ use lib (qw(lib)); use CGI (':cgi'); use CGI::Carp (qw(fatalsToBrowser)); use URI::Escape; -use Data::Dumper; +use HTML::Entities (qw(encode_entities)); use LiCoM::Config (qw(get_config set_config read_config)); use LiCoM::Connection (); @@ -63,7 +63,9 @@ our %Actions = verify => [\&html_start, \&action_verify, \&html_end], delete => [\&html_start, \&action_ask_del, \&html_end], expunge => [\&html_start, \&action_do_del, \&html_end], - vcard => \&action_vcard + vcard => \&action_vcard, + edit_group => [\&html_start, \&action_edit_group, \&html_end], + save_group => [\&html_start, \&action_save_group, \&html_end] ); read_config (); @@ -98,7 +100,7 @@ if (!$UserCN) if (!defined ($Actions{$Action})) { - die; + die ("No such action: $Action"); } if (ref ($Actions{$Action}) eq 'CODE') @@ -129,18 +131,21 @@ sub action_browse { my @groups = LiCoM::Group->all (); - print qq(\t\t

Contact Groups

\n\t\t