Ignore:
Timestamp:
Feb 9, 2010, 10:52:34 AM (14 years ago)
Author:
cljosse
Message:

[mail_supervisor] Deletion of the test anti-spam on the user name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/admin/mail_superv_admin.php

    r4721 r4861  
    8989               
    9090$mails_options = explode("," , $conf['mail_superv']);
    91         if (!isset($mails_options[7])) $mails_options[7] = 'off' ; //set_id
    92                 if (!isset($mails_options[6])) $mails_options[6] = $ip   ;
    93                 if (!isset($mails_options[5])) $mails_options[5] = 'off' ;
    94                 if (!isset($mails_options[4])) $mails_options[4] = 'off' ;
    95                 if (!isset($mails_options[3])) $mails_options[3] = 'off' ;
     91        if (!isset($mails_options[set_id])) $mails_options[set_id] = 'off' ;  // 7
     92                if (!isset($mails_options[ip])) $mails_options[ip] = $ip   ;  //6
     93                if (!isset($mails_options[set_auto])) $mails_options[set_auto] = 'off' ;  //5
     94                if (!isset($mails_options[no_connect])) $mails_options[no_connect] = 'off' ;  //4
     95                if (!isset($mails_options[no_mail_list])) $mails_options[no_mail_list] = 'off' ;  //3
    9696               
    97                 if (!isset($mails_options[2])) $mails_options[2] = 'off' ;
    98                 if (!isset($mails_options[1])) $mails_options[1] = 'off' ;
    99                 if (!isset($mails_options[0])) $mails_options[0] = 'off' ;
     97                if (!isset($mails_options[check_header_text])) $mails_options[check_header_text] = 'off' ;  //2
     98                if (!isset($mails_options[check_header_carbon])) $mails_options[check_header_carbon] = 'off' ;  //1
     99                if (!isset($mails_options[check_mailto])) $mails_options[check_mailto] = 'off' ;  //0
    100100               
    101101$mails_données = Get_Datas();
     
    124124        }
    125125$version= $versions['version'];
     126                if (!isset($ip)) {
     127                       if (getenv("HTTP_CLIENT_IP"))
     128                                            {    $ip=getenv("HTTP_CLIENT_IP");  }
     129                                        else{   $ip=getenv("REMOTE_ADDR");      }
     130                           }
    126131//================================================================================
    127132switch ($page['tab'])
     
    175180{
    176181
    177   $mails_options[0] = isset($_POST['check_mailto']) ? $_POST['check_mailto'] : 'off' ;
    178   $mails_options[1] = isset($_POST['check_header_carbon']) ? $_POST['check_header_carbon'] : 'off' ;
    179   $mails_options[2] = isset($_POST['check_header_text']) ? $_POST['check_header_text'] : 'off' ;
     182  $mails_options[check_mailto] = isset($_POST['check_mailto']) ? $_POST['check_mailto'] : 'off' ;               
     183  $mails_options[check_header_carbon] = isset($_POST['check_header_carbon']) ? $_POST['check_header_carbon'] : 'off' ;
     184  $mails_options[check_header_text] = isset($_POST['check_header_text']) ? $_POST['check_header_text'] : 'off' ;     
    180185 
    181186//données 
     
    210215$template->assign(
    211216                                        array(
    212    'check_mailto' => ($mails_options[0] == 'on') ? 'checked="checked"' : '' ,
    213    'check_header_carbons' => ($mails_options[1] == 'on') ? 'checked="checked"' : '' ,
    214    'check_header_text' => ($mails_options[2] == 'on') ? 'checked="checked"' : '' ,
     217   'check_mailto' => ($mails_options[check_mailto] == 'on') ? 'checked="checked"' : '' ,
     218   'check_header_carbons' => ($mails_options[check_header_carbon] == 'on') ? 'checked="checked"' : '' ,
     219   'check_header_text' => ($mails_options[check_header_text] == 'on') ? 'checked="checked"' : '' ,
    215220
    216221   
     
    328333                $aff_nb=false;
    329334 //------------------------------------------------------------------------------------
    330 
    331         $mails_options[3] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : $mails_options[3] ;
    332         $mails_options[4] = isset($_POST['no_connect']) ? $_POST['no_connect'] : $mails_options[4] ;
    333             $mails_options[5] = isset($_POST['no_connect']) ? $_POST['no_connect'] : $mails_options[5] ;               
     335        $mails_options[no_mail_list] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : $mails_options[no_mail_list] ;
     336        $mails_options[no_connect] = isset($_POST['no_connect']) ? $_POST['no_connect'] : $mails_options[no_connect] ;
     337            $mails_options[set_auto] = isset($_POST['set_auto']) ? $_POST['set_auto'] : $mails_options[set_auto] ;             
    334338
    335339//=======================================================================================       
     
    363367                        if (  $_POST['submit'] == l10n('Valider') )
    364368                {
    365                                 $mails_options[3] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : "off" ;
    366                         $mails_options[4] = isset($_POST['no_connect']) ? $_POST['no_connect'] : "off" ;
    367                         $mails_options[5] = isset($_POST['set_auto']) ? $_POST['set_auto'] : "off" ;
    368                                 $mails_options[7] = isset($_POST['set_auto']) ? $_POST['set_id'] : "off" ;
     369                                $mails_options[no_mail_list] = isset($_POST['no_mail_list']) ? $_POST['no_mail_list'] : "off" ;
     370                        $mails_options[no_connect] = isset($_POST['no_connect']) ? $_POST['no_connect'] : "off" ;
     371                        $mails_options[set_auto] = isset($_POST['set_auto']) ? $_POST['set_auto'] : "off" ;
     372                                $mails_options[set_id] = isset($_POST['set_id']) ? $_POST['set_id'] : "off" ;
    369373                                sauve_options();
    370374                            $infos_message .=  l10n('save_config') . '<br />';   
     
    400404                                                'F_ACTION' => $f_action ,
    401405                                               
    402                                                 'no_mail_list' => ($mails_options[3] == 'on') ? 'checked="checked"' : '' ,
    403                         'no_connect' => ($mails_options[4] == 'on') ? 'checked="checked"' : '' ,
    404                                                 'set_auto' => ($mails_options[5] == 'on') ? 'checked="checked"' : '' ,
    405                                                 'set_id' => ($mails_options[7] == 'on') ? 'checked="checked"' : '' ,
     406                                                'no_mail_list' => ($mails_options[no_mail_list] == 'on') ? 'checked="checked"' : '' ,
     407                        'no_connect' => ($mails_options[no_connect] == 'on') ? 'checked="checked"' : '' ,
     408                                                'set_auto' => ($mails_options[set_auto] == 'on') ? 'checked="checked"' : '' ,
     409                                                'set_id' => ($mails_options[set_id] == 'on') ? 'checked="checked"' : '' ,
    406410                                                'IP' =>  $ip ,                                         
    407411                                                'PAYS' =>  $pays  ,
Note: See TracChangeset for help on using the changeset viewer.