X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=licom.cgi;h=68e3581208f9d3b12204193316885fe78b5b9c2e;hb=422cfd825089332848b3571d128a6ca3675e675c;hp=29dbec8cfc75d7bde2924614a24dbadf006ce390;hpb=c91ccdf851b05521441e9460d4605c1ca0eae277;p=licom.git diff --git a/licom.cgi b/licom.cgi index 29dbec8..68e3581 100755 --- a/licom.cgi +++ b/licom.cgi @@ -23,6 +23,7 @@ use lib (qw(lib)); use CGI (':cgi'); use CGI::Carp (qw(fatalsToBrowser)); use URI::Escape; +use HTML::Entities (qw(encode_entities)); use LiCoM::Config (qw(get_config set_config read_config)); use LiCoM::Connection (); @@ -62,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 (); @@ -97,7 +100,7 @@ if (!$UserCN) if (!defined ($Actions{$Action})) { - die; + die ("No such action: $Action"); } if (ref ($Actions{$Action}) eq 'CODE') @@ -128,18 +131,21 @@ sub action_browse { my @groups = LiCoM::Group->all (); - print qq(\t\t

Contact Groups

\n\t\t