Ignore:
Timestamp:
May 9, 2011, 11:23:06 AM (13 years ago)
Author:
cljosse
Message:

[extensions] mail_supervisor add option debug_mail,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/mail_super.inc.php

    r10419 r10822  
    232232  function Get_Options($parametres,$str_index){
    233233    global $conf,$mails_options ;
    234   $mails_options=  $conf[$str_index];
    235 
    236  if(isset($mails_options))
    237    if ( preg_match("|s:(.*)|", $mails_options, $val) )
    238     $parametres =  unserialize($conf['mail_superv']);
    239    else{
    240      $parametres=explode(",",$mails_options);
    241 
    242     $def_para->check_mailto="on";
    243     $def_para->check_header_carbon="on";
    244     $def_para->check_header_text="on";
    245     $def_para->no_mail_list="on";
    246     $def_para->no_connect="on"; // empeche l'ip de se connecter au site.
    247     $def_para->set_auto="on";       // Test a l'ouverture et enregistrement
    248     $def_para->ip="127.0.0.1";      // dernièrre adresse IP
    249     $def_para->set_id="on";       // enregistrment nouvel
    250     $i=0;
    251     foreach ($def_para as $key => $value) {
    252         $value=$parametres[$i];
    253         unset( $parametres[$i]) ;
    254         $parametres[$key]= $value  ;
    255         $i++;
    256     }
    257      }
    258   return mail_supervisor::Set_Options($parametres,$str_index);
     234    $mails_options=  $conf[$str_index];
     235     if(isset($mails_options))
     236       if ( preg_match("|s:(.*)|", $mails_options, $val) )
     237        $parametres =  unserialize($conf['mail_superv']);
     238       else{
     239         $parametres=explode(",",$mails_options);
     240
     241        $def_para->check_mailto="on";
     242        $def_para->check_header_carbon="on";
     243        $def_para->check_header_text="on";
     244        $def_para->no_mail_list="on";
     245        $def_para->no_connect="on"; // empeche l'ip de se connecter au site.
     246        $def_para->set_auto="on";       // Test a l'ouverture et enregistrement
     247        $def_para->ip="127.0.0.1";      // dernièrre adresse IP
     248        $def_para->set_id="on";       // enregistrment nouvel
     249        $def_para->debug_mail="off";       // debogage
     250        $i=0;
     251        foreach ($def_para as $key => $value) {
     252            $value=$parametres[$i];
     253            unset( $parametres[$i]) ;
     254            $parametres[$key]= $value  ;
     255            $i++;
     256        }
     257      }
     258    return mail_supervisor::Set_Options($parametres,$str_index);
    259259  }
    260260  //==========================================================
     
    263263      foreach ($parametres as $key => $value) {
    264264       $parametres[$key]=(isset($_POST[$key]))? "on" : $value ;
    265      }
    266    $parametres['no_connect']= 'off' ;
     265      }
     266      $parametres['no_connect']= 'off' ;
    267267     return $parametres ;
    268268  }
Note: See TracChangeset for help on using the changeset viewer.