--- smeserver-subversion-1.4/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm.RemoveLeftoverReferencesToModAuthz 2008-02-06 23:07:00.000000000 +0100 +++ smeserver-subversion-1.4/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm 2008-02-07 20:56:05.000000000 +0100 @@ -115,7 +115,7 @@ =head2 subversion_status_print() Display the status of all services involved: modSSL (provides Secure Scoket Layer (SSL) better known as the https protocl for httpd), modDAV (procides Distributed Authoring and Versioning -(DAV) for httpd), modDAVSVN (provides SVN (Subversion) for DAV for the httpd), modAuthzSVN (provides authorization for Subversion over DAV for httpd) +(DAV) for httpd), modDAVSVN (provides SVN (Subversion) for DAV for the httpd) =cut @@ -333,16 +333,12 @@ || ($self->error('ERR_NO_MODDAV_RECORD') and return undef); my $modDAVSVN = $configdb->get('modDAVSVN') || ($self->error('ERR_NO_MODDAVSVN_RECORD') and return undef); - my $modAuthzSVN = $configdb->get('modAuthzSVN') - || ($self->error('ERR_NO_MODAUTHZSVN_RECORD') and return undef); if ( $current ) { $modDAV->set_prop("status", "disabled") ; $self->debug_msg("'mod_dav_status_change' : mod_dav disabled.") ; $modDAVSVN->set_prop("status", "disabled") ; $self->debug_msg("'mod_dav_svn_status_change' : mod_dav_svn disabled.") ; - $modAuthzSVN->set_prop("status", "disabled") ; - $self->debug_msg("'mod_authz_svn_status_change' : mod_authz_svn disabled.") ; } else { $modDAV->set_prop("status", "enabled") ; $self->debug_msg("'mod_dav_status_change' : mod_dav enabled.") ; @@ -374,60 +370,13 @@ || ($self->error('ERR_NO_MODDAV_RECORD') and return undef); my $modDAVSVN = $configdb->get('modDAVSVN') || ($self->error('ERR_NO_MODDAVSVN_RECORD') and return undef); - my $modAuthzSVN = $configdb->get('modAuthzSVN') - || ($self->error('ERR_NO_MODAUTHZSVN_RECORD') and return undef); if ( $current ) { $modDAVSVN->set_prop("status", "disabled") ; $self->debug_msg("'mod_dav_svn_status_change' : mod_dav_svn disabled.") ; - $modAuthzSVN->set_prop("status", "disabled") ; - $self->debug_msg("'mod_authz_svn_status_change' : mod_authz_svn disabled.") ; } else { $modDAV->set_prop("status", "enabled") ; $self->debug_msg("'mod_dav_status_change' : mod_dav enabled.") ; - $modDAVSVN->set_prop("status", "enabled") ; - $self->debug_msg("'mod_dav_svn_status_change' : mod_dav_svn enabled.") ; - } - - if (system ("/sbin/e-smith/signal-event", "subversion-modify") == 0) { - $self->debug_msg("'subversion-modify' : files update OK.") ; - $self->success("CONFIG_CHANGE_SUCCESS"); - } else { - $self->debug_msg("'subversion-modify' : files update fails.") ; - $self->error("CONFIG_CHANGE_ERROR"); - } - return undef ; -} - -=head2 mod_authz_svn_status_change() - -This method changes the status of the httpd mod_authz_svn module. - -=cut - -sub mod_authz_svn_status_change { - my $self = shift ; - $self->debug_msg("Start of sub 'mod_authz_svn_status_change'.") ; - my $current = $self->{cgi}->param('Current') ; - $self->debug_msg("'mod_authz_svn_status_change' : \$current = $current") ; - - my $modDAV = $configdb->get('modDAV') - || ($self->error('ERR_NO_MODDAV_RECORD') and return undef); - my $modDAVSVN = $configdb->get('modDAVSVN') - || ($self->error('ERR_NO_MODDAVSVN_RECORD') and return undef); - my $modAuthzSVN = $configdb->get('modAuthzSVN') - || ($self->error('ERR_NO_MODAUTHZSVN_RECORD') and return undef); - - if ( $current ) { - $modAuthzSVN->set_prop("status", "disabled") ; - $self->debug_msg("'mod_authz_svn_status_change' : mod_authz_svn disabled.") ; - } else { - $modDAV->set_prop("status", "enabled") ; - $self->debug_msg("'mod_dav_status_change' : mod_dav enabled.") ; - $modDAVSVN->set_prop("status", "enabled") ; - $self->debug_msg("'mod_dav_svn_status_change' : mod_dav_svn enabled.") ; - $modAuthzSVN->set_prop("status", "enabled") ; - $self->debug_msg("'mod_authz_svn_status_change' : mod_authz_svn enabled.") ; } if (system ("/sbin/e-smith/signal-event", "subversion-modify") == 0) {