diff --git a/samba/edit_fmisc.cgi b/samba/edit_fmisc.cgi index e8b719605..b95b7ab7a 100755 --- a/samba/edit_fmisc.cgi +++ b/samba/edit_fmisc.cgi @@ -22,7 +22,7 @@ else { print &ui_form_start("save_fmisc.cgi", "post"); print &ui_hidden("old_name", $s); -print &ui_table_start($text{'misc_title'}, undef, 4); +print &ui_table_start($text{'misc_title'}, undef, 2); print &ui_table_row($text{'fmisc_lockfile'}, &yesno_input("locking")); diff --git a/samba/edit_fname.cgi b/samba/edit_fname.cgi index 93a4e037e..ac84e16af 100755 --- a/samba/edit_fname.cgi +++ b/samba/edit_fname.cgi @@ -22,7 +22,7 @@ else { print &ui_form_start("save_fname.cgi", "post"); print &ui_hidden("old_name", $s); -print &ui_table_start($text{'fname_option'}, undef, 4); +print &ui_table_start($text{'fname_option'}, undef, 2); print &ui_table_row($text{'fname_manglecase'}, &yesno_input("mangle case")); diff --git a/samba/edit_popts.cgi b/samba/edit_popts.cgi index 31c8fe938..a59dfc66a 100755 --- a/samba/edit_popts.cgi +++ b/samba/edit_popts.cgi @@ -19,79 +19,47 @@ else { } &get_share($s); -print "
\n"; +print &ui_table_end(); +if (&can('wO', \%access, $in{'share'})) { + print &ui_form_end([ [ undef, $text{'save'} ] ]); + } +else { + print &ui_form_end(); + } &ui_print_footer("edit_pshare.cgi?share=".&urlize($s), $text{'index_printershare'}, "", $text{'index_sharelist'}); diff --git a/samba/edit_pshare.cgi.bak b/samba/edit_pshare.cgi.bak deleted file mode 100755 index 53a2c3790..000000000 --- a/samba/edit_pshare.cgi.bak +++ /dev/null @@ -1,142 +0,0 @@ -#!/usr/local/bin/perl -# edit_pshare.cgi -# Display a form for editing or creating a new printer share - -require './samba-lib.pl'; -&ReadParse(); -$s = $in{'share'}; -# check acls -%access = &get_module_acl(); -&error_setup(""); -if(!$s) { - &error("$text{'eacl_np'} $text{'eacl_pcps'}") - unless $access{'c_ps'}; - } -else { - &error("$text{'eacl_np'} $text{'eacl_paps'}") - unless &can('r', \%access, $in{'share'}); - } -# display -if ($s) { - &header($s eq 'global' ? $text{'pshare_title1'} : $text{'pshare_title2'}, ""); - &get_share($s); - } -else { - &header($text{'pshare_title3'}, ""); - } -print "
\n"; - } -elsif ($s) { - print "
| \n" - if &can('rw', \%access, $s); - print " |
\n"; - } -else { - print "
\n"; - } - -if ($s) { - # Icons for other share options - $us = "share=".&urlize($s)."&printer=1"; - local (@url, @text, @icon, $disp); - if (&can('rs',\%access, $s)) { - push(@url, "edit_sec.cgi?$us"); - push(@text, $text{'share_security'}); - push(@icon, "images/icon_2.gif"); - $disp++; - } - if (&can('ro',\%access, $s)) { - push(@url, "edit_popts.cgi?$us"); - push(@text, $text{'print_option'}); - push(@icon, "images/icon_3.gif"); - $disp++; - } - if ($disp) { - print "