#!/usr/local/bin/perl # edit_mod.cgi # Edit one PAM authentication module for some service require './pam-lib.pl'; &ReadParse(); @pam = &get_pam_config(); $pam = $pam[$in{'idx'}]; if ($in{'midx'} ne '') { $mod = $pam->{'mods'}->[$in{'midx'}]; $module = $mod->{'module'}; $module =~ s/^.*\///; $type = $mod->{'type'}; &ui_print_header(undef, $text{'mod_edit'}, ""); } else { $module = $in{'module'}; $type = $in{'type'}; &ui_print_header(undef, $text{'mod_create'}, ""); } print "
\n"; &ui_print_footer("edit_pam.cgi?idx=$in{'idx'}", $text{'edit_return'}, "", $text{'index_return'});