From: John Graham-C. <jgr...@us...> - 2005-12-20 21:31:08
|
Update of /cvsroot/popfile/engine/UI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8930/UI Modified Files: HTML.pm Log Message: Move the selection of the single user mode to the Administration tab and the Users tab will appear or disappear depending on the mode Index: HTML.pm =================================================================== RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v retrieving revision 1.366 retrieving revision 1.367 diff -C2 -d -r1.366 -r1.367 *** HTML.pm 20 Dec 2005 20:34:43 -0000 1.366 --- HTML.pm 20 Dec 2005 21:30:59 -0000 1.367 *************** *** 1168,1171 **** --- 1168,1178 ---- my $port_error = ''; + # Handle single user mode + + if ( defined( $self->{form_}{usermode} ) ) { + $self->global_config_( 'single_user', $self->{form_}{singleuser} ); + } + $templ->param( 'Users_If_Single' => $self->global_config_( 'single_user' ) ); + $self->config_( 'local', $self->{form_}{localui}-1 ) if ( defined($self->{form_}{localui}) ); $self->user_config_( $self->{sessions__}{$session}{user}, 'update_check', $self->{form_}{update_check}-1 ) if ( defined($self->{form_}{update_check}) ); *************** *** 1399,1409 **** $page, $session ); - # Handle single user mode - - if ( defined( $self->{form_}{usermode} ) ) { - $self->global_config_( 'single_user', $self->{form_}{singleuser} ); - } - $templ->param( 'Users_If_Single' => $self->global_config_( 'single_user' ) ); - # Handle user creation --- 1406,1409 ---- |