* Tue Sep 24 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-22.sme
- fix typos, and tidy tabs [SME: 12744]
This commit is contained in:
		@@ -57,12 +57,14 @@ sub do_display {
 | 
			
		||||
 | 
			
		||||
    $mai_datas{'trt'} = $trt;
 | 
			
		||||
 | 
			
		||||
        if ( $trt eq 'ACC' ) {
 | 
			
		||||
		if ( $trt eq 'ACC' ) 
 | 
			
		||||
    {
 | 
			
		||||
			$dest = 'emailaccess';
 | 
			
		||||
			$mai_datas{fetchmailmethod} = $cdb->get_prop('fetchmail', 'Method');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
        if ( $trt eq 'FIL' ) {
 | 
			
		||||
    if ( $trt eq 'FIL' ) 
 | 
			
		||||
    {
 | 
			
		||||
	    $dest = 'emailfilter';
 | 
			
		||||
	    $mai_datas{'virusstatus'} = $c->get_virus_status();
 | 
			
		||||
	    $mai_datas{'spamstatus'} = $cdb->get_prop('spamassassin', 'status');
 | 
			
		||||
@@ -74,7 +76,8 @@ sub do_display {
 | 
			
		||||
	    $mai_datas{spamsubject} = $cdb->get_prop('spamassassin', 'Subject');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
        if ( $trt eq 'REC' ) {
 | 
			
		||||
    if ( $trt eq 'REC' ) 
 | 
			
		||||
    {
 | 
			
		||||
	    $dest = 'emailreceive';
 | 
			
		||||
	    $mai_datas{fetchmailmethod} = $cdb->get_prop('fetchmail', 'Method');
 | 
			
		||||
	    $mai_datas{freqoffice} = $cdb->get_prop('fetchmail', 'FreqOffice');
 | 
			
		||||
@@ -88,7 +91,8 @@ sub do_display {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
        if ( $trt eq 'DEL' ) {
 | 
			
		||||
    if ( $trt eq 'DEL' ) 
 | 
			
		||||
    {
 | 
			
		||||
	    $dest = 'emaildeliver';
 | 
			
		||||
	    $mai_datas{emailunknownuser} = $cdb->get_value('EmailUnknownUser') || '"returntosender';
 | 
			
		||||
	    $mai_datas{delegatemailserver} = $cdb->get_value('DelegateMailServer');
 | 
			
		||||
@@ -120,64 +124,70 @@ sub do_update {
 | 
			
		||||
 | 
			
		||||
    my ($dest, $res, $result) = '';
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'ACC' ) {
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'ACC' ) 
 | 
			
		||||
    {
 | 
			
		||||
     	$dest = 'emailaccess';
 | 
			
		||||
#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			
 | 
			
		||||
			# controls
 | 
			
		||||
#	$res = xxxxxxx( $c );
 | 
			
		||||
#	$result .= $res unless $res eq 'OK';
 | 
			
		||||
			#	$res = xxxxxxx( $c );
 | 
			
		||||
			#	$result .= $res unless $res eq 'OK';
 | 
			
		||||
 | 
			
		||||
	if ( ! $result ) {
 | 
			
		||||
			if ( ! $result ) 
 | 
			
		||||
			{
 | 
			
		||||
	    	$res = $c->change_settings_access();
 | 
			
		||||
	    	$result .= $res unless $res eq 'OK';
 | 
			
		||||
	    if ( ! $result ) { 
 | 
			
		||||
	    	if ( ! $result ) 
 | 
			
		||||
				{ 
 | 
			
		||||
					$result = $c->l('mai_SUCCESS'); 
 | 
			
		||||
    		}
 | 
			
		||||
			}
 | 
			
		||||
   	}
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'FIL' ) {
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'FIL' ) 
 | 
			
		||||
			{
 | 
			
		||||
			$dest = 'emailfilter';
 | 
			
		||||
#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			
 | 
			
		||||
			# controls
 | 
			
		||||
#	$res = zzzzzz( $c );
 | 
			
		||||
#	$result .= $res unless $res eq 'OK';
 | 
			
		||||
			#	$res = zzzzzz( $c );
 | 
			
		||||
			#	$result .= $res unless $res eq 'OK';
 | 
			
		||||
 | 
			
		||||
	if ( ! $result ) {
 | 
			
		||||
			if ( ! $result ) 
 | 
			
		||||
			{
 | 
			
		||||
	    	$res = $c->change_settings_filtering();
 | 
			
		||||
	    	$result .= $res unless $res eq 'OK';
 | 
			
		||||
	    if ( ! $result ) { 
 | 
			
		||||
	    	if ( ! $result ) 
 | 
			
		||||
				{ 
 | 
			
		||||
					$result = $c->l('mai_SUCCESS'); 
 | 
			
		||||
    		}
 | 
			
		||||
			}
 | 
			
		||||
   	}
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'REC' ) {
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'REC' ) 
 | 
			
		||||
		{
 | 
			
		||||
			$dest = 'emailreceive';
 | 
			
		||||
#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			
 | 
			
		||||
			# controls
 | 
			
		||||
#	$res = yyyyyyyyy( $c );
 | 
			
		||||
#	$result .= $res unless $res eq 'OK';
 | 
			
		||||
			#	$res = yyyyyyyyy( $c );
 | 
			
		||||
			#	$result .= $res unless $res eq 'OK';
 | 
			
		||||
 | 
			
		||||
	if ( ! $result ) {
 | 
			
		||||
			if ( ! $result ) 
 | 
			
		||||
			{
 | 
			
		||||
	    	$res = $c->change_settings_reception();
 | 
			
		||||
	    	$result .= $res unless $res eq 'OK';
 | 
			
		||||
	    if ( ! $result ) { 
 | 
			
		||||
	    	if ( ! $result ) 
 | 
			
		||||
				{ 
 | 
			
		||||
					$result = $c->l('mai_SUCCESS'); 
 | 
			
		||||
    		}
 | 
			
		||||
			}
 | 
			
		||||
   	}
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'DEL' ) {
 | 
			
		||||
 | 
			
		||||
    if ( $trt eq 'DEL' ) 
 | 
			
		||||
		{
 | 
			
		||||
			$dest = 'emaildeliver';
 | 
			
		||||
#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			#	$mai_datas{xxx}	= $c->param('XXX');
 | 
			
		||||
			
 | 
			
		||||
			# controls
 | 
			
		||||
			$res = $c->ip_number_or_blank( $c->param('DelegateMailServer') );
 | 
			
		||||
@@ -195,10 +205,12 @@ sub do_update {
 | 
			
		||||
			$res = $c->nonblank_if_smtpauth( $c->param('SMTPAUTHPROXY_Passwd') );
 | 
			
		||||
			$result .= $res . ' PWD <br>' unless $res eq 'OK';
 | 
			
		||||
 | 
			
		||||
	if ( ! $result ) {
 | 
			
		||||
			if ( ! $result ) 
 | 
			
		||||
			{
 | 
			
		||||
				$res = $c->change_settings_delivery();
 | 
			
		||||
				$result .= $res unless $res eq 'OK';
 | 
			
		||||
	    if ( ! $result ) { 
 | 
			
		||||
				if ( ! $result ) 
 | 
			
		||||
				{ 
 | 
			
		||||
					$result = $c->l('mai_SUCCESS');
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
@@ -207,7 +219,8 @@ sub do_update {
 | 
			
		||||
 | 
			
		||||
    # common part
 | 
			
		||||
 | 
			
		||||
    if ($res ne 'OK') {
 | 
			
		||||
    if ($res ne 'OK') 
 | 
			
		||||
			{
 | 
			
		||||
			$c->stash( error => $result );
 | 
			
		||||
			$c->stash( title => $title, mai_datas => \%mai_datas );
 | 
			
		||||
			return $c->render( $dest );
 | 
			
		||||
@@ -399,7 +412,7 @@ sub get_current_webmail_status {
 | 
			
		||||
 | 
			
		||||
  my $MysqlStatus = $cdb->get_prop('mariadb', 'status') || 'disabled';
 | 
			
		||||
 | 
			
		||||
  my $PHPStatus = $cdb->get_prop('php81', 'status') || 'disabled';
 | 
			
		||||
  my $PHPStatus = $cdb->get_prop('php81-php-fpm', 'status') || 'disabled';
 | 
			
		||||
 | 
			
		||||
  my $Networkaccess = $cdb->get_prop('roundcube','access') || 'disabled';
 | 
			
		||||
 | 
			
		||||
@@ -515,7 +528,7 @@ sub get_webmail_options {
 | 
			
		||||
    my %options = ( 
 | 
			
		||||
		disabled   => 'DISABLED', 
 | 
			
		||||
		enabledSSL => 'mai_ENABLED_SECURE_ONLY',
 | 
			
		||||
		localnetworkSSL => 'mai_ONLY_LOCAL_NETWORK_SSL')
 | 
			
		||||
		localnetworkSSL => 'mai_ONLY_LOCAL_NETWORK_SSL');
 | 
			
		||||
 | 
			
		||||
    return \%options;
 | 
			
		||||
}
 | 
			
		||||
@@ -801,14 +814,14 @@ sub change_settings_access {
 | 
			
		||||
 | 
			
		||||
    my $webmail = ($c->param('WebMail') || 'disabled');
 | 
			
		||||
    if ( $webmail eq "enabledSSL" ) {
 | 
			
		||||
      $cdb->set_prop('php81',"status", "enabled" );
 | 
			
		||||
      $cdb->set_prop('php81-php-fpm',"status", "enabled" );
 | 
			
		||||
      $cdb->set_prop('mariadb',"status", "enabled" );
 | 
			
		||||
      $cdb->set_prop('roundcube',"status", 'enabled' );
 | 
			
		||||
      $cdb->set_prop('roundcube',"access", "public" );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    elsif ( $webmail eq "localnetworkSSL" ) {
 | 
			
		||||
      $cdb->set_prop('php81',"status", "enabled" );
 | 
			
		||||
      $cdb->set_prop('php81-php-fpm',"status", "enabled" );
 | 
			
		||||
      $cdb->set_prop('mariadb',"status", "enabled" );
 | 
			
		||||
      $cdb->set_prop('roundcube',"status", 'enabled' );
 | 
			
		||||
      $cdb->set_prop('roundcube',"access", "private" );
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ Summary: Sme server  navigation module : manager 2
 | 
			
		||||
%define name smeserver-manager
 | 
			
		||||
Name: %{name}
 | 
			
		||||
%define version 11.0.0
 | 
			
		||||
%define release 21
 | 
			
		||||
%define release 22
 | 
			
		||||
Version: %{version}
 | 
			
		||||
Release: %{release}%{?dist}
 | 
			
		||||
License: GPL
 | 
			
		||||
@@ -108,6 +108,9 @@ true
 | 
			
		||||
%defattr(-,root,root)
 | 
			
		||||
 | 
			
		||||
%changelog
 | 
			
		||||
* Tue Sep 24 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-22.sme
 | 
			
		||||
- fix typos, and tidy tabs [SME: 12744]
 | 
			
		||||
 | 
			
		||||
* Mon Sep 23 2024 Brian Read <brianr@koozali.org> 11.0.0-21.sme
 | 
			
		||||
- Remove both option for webmail [SME: 12744]
 | 
			
		||||
- Add in re-open DB for portforwarding and email settings.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user