Changeset 193

Show
Ignore:
Timestamp:
09/13/07 21:04:27 (16 months ago)
Author:
jonas
Message:

polw/grey enable/disable per config.inc.php

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/includes/config.inc.default.php

    r191 r193  
    5454$config['company_title'] = "Some Company"; 
    5555 
     56// use the postfix per recipient classes with policyd-weight 
     57$config['recipient_classes_polw']=1; 
     58 
     59// use the postfix per recipient classes with greylisting 
     60$config['recipient_classes_grey']=0; 
     61 
    5662$ar_spam=array("cbl.abuseat.org","multi.surbl.org","sbl-xbl.spamhaus.org"); 
    5763 
  • trunk/includes/func.inc.php

    r192 r193  
    2424$smarty->assign('display_mb_size',$config['display_mb_size']); 
    2525$smarty->assign('cpves_version', $config['cpves_version']); 
     26$smarty->assign('config', $config); 
    2627/* 
    2728mailfilter prios: 
  • trunk/includes/sites/domain_view.php

    r192 r193  
    183183        } 
    184184        else { 
     185                if ($_GET['f'] == 'check_polw' && $config['recipient_classes_polw']==0) { 
     186                } 
     187                elseif($_GET['f'] == 'check_grey' && $config['recipient_classes_grey']==0) { 
     188                } 
     189                else { 
    185190                change_domain_feature($_GET['did'],$_GET['f'],$_GET['fstate']); 
     191                } 
    186192        } 
    187193 
  • trunk/includes/sites/email_view.php

    r192 r193  
    493493                                $autores_xheader=0; 
    494494                        } 
    495                         if (isset($_POST['check_polw']) && $_POST['check_polw'] == "enable" && check_domain_feature($_GET['did'], 'p_check_polw')) { 
     495                        if (isset($_POST['check_polw']) && $_POST['check_polw'] == "enable" && check_domain_feature($_GET['did'], 'p_check_polw') && $config['recipient_classes_polw']) { 
    496496                                $check_polw=1; 
    497497                        } 
     
    499499                                $check_polw=0; 
    500500                        } 
    501                         if (isset($_POST['check_grey']) && $_POST['check_grey'] == "enable" && check_domain_feature($_GET['did'], 'p_check_grey')) { 
     501                        if (isset($_POST['check_grey']) && $_POST['check_grey'] == "enable" && check_domain_feature($_GET['did'], 'p_check_grey') && $config['recipient_classes_grey']) { 
    502502                                $check_grey=1; 
    503503                        } 
  • trunk/templates/domain_view.tpl

    r192 r193  
    173173 {/if}</td> 
    174174</tr> 
     175{if $config.recipient_classes_polw == 1} 
    175176<tr> 
    176177 <td>{t}Policyd-Weight{/t}:</td> 
     
    185186 {/if}</td> 
    186187</tr> 
     188{/if} 
     189{if $config.recipient_classes_grey == 1} 
    187190<tr> 
    188191 <td>{t}Greylisting{/t}:</td> 
     
    197200 {/if}</td> 
    198201</tr> 
     202{/if} 
    199203<tr> 
    200204 <td>{t}access to CpVES webinterface{/t}:</td> 
  • trunk/templates/email_view.tpl

    r192 r193  
    5353</tr> 
    5454{/if} 
    55 {if $if_check_polw == 1 } 
     55{if $if_check_polw == 1 && $config.recipient_classes_polw == 1} 
    5656<tr> 
    5757 <td>{t}policyd-weight available{/t}:</td> 
     
    6666</tr> 
    6767{/if} 
    68 {if $if_check_grey == 1 } 
     68{if $if_check_grey == 1 && $config.recipient_classes_grey } 
    6969<tr> 
    7070 <td>{t}greylisting available{/t}:</td>