Ignore:
Timestamp:
Nov 22, 2009, 10:16:24 AM (14 years ago)
Author:
cljosse
Message:

[mail_supervisor] New tests 'anti spam' on the address e-mail.

File:
1 edited

Legend:

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

    r4224 r4337  
    312312                load_language('help/plugin.lang', MAIL_SUPERV_PATH);   
    313313            global $pays,$region,$ville ;       
     314                global $user_name,$mail_adresse,$ip ;
     315 
    314316                $aff_nb=false;
    315317 //------------------------------------------------------------------------------------
     
    338340  if (isset($_POST['ip_black']))   $ip_black = ($ip_black == "" ) ? $_POST['ip_black'] : $ip_black ;
    339341   
    340        
     342                        $istype="";
    341343                               
    342344        if ( isset($_POST['submit']) )
    343345                {
    344                
     346
     347        if (clj_is_ip($ip_black)) $istype='IP';
     348       
     349        elseif (clj_is_mail($ip_black))  $istype='MAIL';
     350       
     351 else   $istype='LOGIN';
     352       
    345353                        if (  $_POST['submit'] == l10n('Ajout') )
    346354                {
     
    369377        if (!empty($liste_bl))      $champs_bl=array_keys($liste_bl[0]);
    370378        $smile_bonjour=MAIL_SUPERV_PATH."smilies/mouche.gif" ;
     379          $img_logo=MAIL_SUPERV_PATH."smilies/logo.png" ;
    371380     $template->assign(
    372381                                        array(
    373382                                            'smile_bonjour' => $smile_bonjour ,
     383                                                'img_logo' => $img_logo ,
    374384                                'champs_ip' => $champs_ip ,                                     
    375385                                                'liste_ip' => $liste_ip,
     
    377387                                                'liste_bl' => $liste_bl ,
    378388                                'conf_admin_layout' => $conf['admin_layout'] ,
     389                                                'istype' => $istype ,
    379390                                                'ip_black' => $ip_black ,
    380391                                                'IS_SPAM' => test_spam(  $ip_black),
Note: See TracChangeset for help on using the changeset viewer.