Changeset 4715 for extensions/Mail_supervisor/main.inc.php
- Timestamp:
- Jan 21, 2010, 3:13:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/main.inc.php
r4452 r4715 2 2 /* 3 3 Plugin Name: Mail supervisor 4 Version: 1. 2.9.a4 Version: 1.3.1 5 5 Description: Mail supervisor surveille l'envoie des mails. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=315 … … 79 79 ); 80 80 81 81 global $conf ; 82 82 83 add_event_handler('send_mail', 'clj_mail',EVENT_HANDLER_PRIORITY_NEUTRAL - 1 , 6); 83 84 … … 347 348 } 348 349 350 $mails_options = explode("," , $conf['mail_superv']); 351 349 352 //========================================================================================== 353 if ($mails_options[7]=='on' ) { 350 354 add_event_handler('register_user_check', 'Test_spam_g', EVENT_HANDLER_PRIORITY_NEUTRAL +2 , 2); 351 355 } 352 356 function Test_spam_g ($err, $user) 353 357 { 358 359 if (count($err)!=0 ) return $err ; 354 360 if ( !isset($_POST['submit_add']) && !isset($_POST['submit']) ) return $err ; 355 if (count($err)!=0 ) return $err ;356 361 //Liableelard 357 362 include_once (MAIL_SUPERV_PATH.'include/fonctions.php'); … … 363 368 $user_name = $user['username']; 364 369 } 370 $user_name =""; 365 371 $ip='0'; 366 372 if (test_spam($ip,$user_name ,$mail )) … … 371 377 $err[] = $user_name . " : " .$mail . " ". l10n('is_a_spam') ; 372 378 } 379 373 380 return $err ; 374 381 }
Note: See TracChangeset
for help on using the changeset viewer.