OMatic/editGroups.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
main
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ##############################################################################
2 # The Faq-O-Matic is Copyright 1997 by Jon Howell, all rights reserved. #
3 # #
4 # This program is free software; you can redistribute it and/or #
5 # modify it under the terms of the GNU General Public License #
6 # as published by the Free Software Foundation; either version 2 #
7 # of the License, or (at your option) any later version. #
8 # #
9 # This program is distributed in the hope that it will be useful, #
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 # GNU General Public License for more details. #
13 # #
14 # You should have received a copy of the GNU General Public License #
15 # along with this program; if not, write to the Free Software #
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.#
17 # #
18 # Jon Howell can be contacted at: #
19 # 6211 Sudikoff Lab, Dartmouth College #
20 # Hanover, NH 03755-3510 #
21 # jonh@cs.dartmouth.edu #
22 # #
23 # An electronic copy of the GPL is available at: #
24 # http://www.gnu.org/copyleft/gpl.html #
25 # #
26 ##############################################################################
27  
28 use strict;
29  
30 package FAQ::OMatic::editGroups;
31  
32 use CGI;
33 use FAQ::OMatic;
34 use FAQ::OMatic::Auth;
35 use FAQ::OMatic::Groups;
36  
37 sub main {
38 my $cgi = FAQ::OMatic::dispatch::cgi();
39 my $params = FAQ::OMatic::getParams($cgi);
40  
41 FAQ::OMatic::mirrorsCantEdit($cgi, $params);
42  
43 my $html = '';
44  
45 my $group = $params->{'group'};
46  
47 FAQ::OMatic::Auth::ensurePerm('-item'=>'',
48 '-operation'=>'PermEditGroups',
49 '-restart'=>FAQ::OMatic::commandName(),
50 '-cgi'=>$cgi,
51 '-failexit'=>1);
52  
53 $html.= FAQ::OMatic::pageHeader($params);
54
55 $html .= FAQ::OMatic::Groups::displayHTML($group);
56
57 $html.= FAQ::OMatic::pageFooter($params);
58  
59 print $html;
60 }
61  
62 1;