Changeset 4879 for extensions/Mail_supervisor/include/fonctions.php
- Timestamp:
- Feb 12, 2010, 2:37:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/include/fonctions.php
r4861 r4879 130 130 $erreur_message = $ip . " " . $action_spam ; 131 131 pwg_set_session_var('action_spam', "true"); 132 $erreur_message .= "<BR />".l10n(' is_a_spam') ;132 $erreur_message .= "<BR />".l10n('Sv_is_a_spam') ; 133 133 if ($mails_options[no_connect] == 'on' ){ 134 134 //[status] => guest … … 262 262 $data = mysql_fetch_array($result,MYSQL_ASSOC); 263 263 //==================================================================================== 264 264 265 $next_day = Str_To_Time( $data['nb_mails_periode'], $data['date_mail'] );; 265 266 $data['rest_mail']= $next_day - time() ; 266 267 267 $next_day = +Str_To_Time( $data['nb_spams_periode'],$data['date_spam']);268 $next_day = Str_To_Time( $data['nb_spams_periode'],$data['date_spam']); 268 269 $data['rest_spam']= $next_day - time() ; 269 270 … … 334 335 if ($week > 0 ) 335 336 { 336 return $week. " " .l10n(' Week'). " " . $day . " " .l10n('Day'). "s ". $heures . " ". l10n('Hour'). "s " . $minutes. " " .l10n('minute'). "s ". $secondes." " .l10n('seconde')."s";337 } 338 return $day . " " .l10n(' Day'). "s ". $heures . " ". l10n('Hour'). "s " . $minutes. " " .l10n('Minute'). "s ". $secondes." " .l10n('Seconde')."s";337 return $week. " " .l10n('Sv_Week'). " " . $day . " " .l10n('Sv_Day'). "s ". $heures . " ". l10n('Sv_Hour'). "s " . $minutes. " " .l10n('Sv_minute'). "s ". $secondes." " .l10n('Sv_seconde')."s"; 338 } 339 return $day . " " .l10n('Sv_Day'). "s ". $heures . " ". l10n('Sv_Hour'). "s " . $minutes. " " .l10n('Sv_Minute'). "s ". $secondes." " .l10n('Sv_Seconde')."s"; 339 340 340 341 } … … 371 372 time(), 372 373 2000, 373 '"1 '.l10n(' Week').'"' ,374 '"1 '.l10n('Sv_Week').'"' , 374 375 0, 375 376 time(), 376 377 10, 377 '"2 '.l10n(' Day').'"',378 '"2 '.l10n('Sv_Day').'"', 378 379 '"false"', 379 380 time(), 380 '"2 '.l10n(' Day').'"',381 '"2 '.l10n('Sv_Day').'"', 381 382 382 383 '"Init"', 383 '"'.l10n(' supervisor').'"',384 '"'.l10n(' hello').'"',384 '"'.l10n('Sv_supervisor').'"', 385 '"'.l10n('Sv_hello').'"', 385 386 ) 386 387 ; … … 531 532 { 532 533 //======================================================== 533 global $erreur_message; 534 $a_ajouter=$ajout ; 535 536 $period_search=array("W","D","H","M","S"); 537 array_push($period_search,l10n('Week').'s',l10n('Day').'s',l10n('Hour').'s',l10n('Minute').'s',l10n('Seconde').'s'); 538 array_push($period_search,l10n('Week'),l10n('Day'),l10n('Hour'),l10n('Minute'),l10n('Seconde')); 539 540 541 542 $period_match = array(' week ',' day ',' hour ',' minute ',' seconde '); 543 array_push($period_match,' week ',' day ',' hour ',' minute ',' seconde '); 544 array_push($period_match,' week ',' day ',' hour ',' minute ',' seconde '); 534 global $erreur_message,$infos_message; 535 536 537 $a_ajouter = strtolower($ajout) ; 538 if (strlen($a_ajouter) <4) $a_ajouter=$a_ajouter." " ; 539 $period_search=array("s ","j ","h ","m ","s "); 540 array_push($period_search,"w ","d ","h ","m ","s "); 541 array_push($period_search,l10n('Sv_Week').'s',l10n('Sv_Day').'s',l10n('Sv_Hour').'s',l10n('Sv_Minute').'s',l10n('Sv_Seconde').'s'); 542 array_push($period_search,l10n('Sv_Week'),l10n('Sv_Day'),l10n('Sv_Hour'),l10n('Sv_Minute'),l10n('Sv_Seconde')); 543 544 $period_match = array(' week ',' day ',' hour ',' minute ',' seconde '); 545 array_push($period_match,' week ',' day ',' hour ',' minute ',' seconde '); 546 array_push($period_match,' week ',' day ',' hour ',' minute ',' seconde '); 547 array_push($period_match,' week ',' day ',' hour ',' minute ',' seconde '); 545 548 546 549 … … 551 554 $v1 = array('- ','+ ','week','day','hour','minute','seconde',' -',' +',' '); 552 555 $v2 = array('-','+', (7*24*60*60) , (24*60*60), (60*60), 60,1,'|-','|+',"*" ); 556 557 553 558 $new_valeur = str_replace($v1,$v2,$a_ajouter) ; 554 559 $new_valeur = str_replace('++','+',$new_valeur ) ; … … 556 561 $new_valeur = explode( "|",$new_valeur ); 557 562 $p = $init_date ; 558 563 $n0=0; 559 564 //$new_valeur = $a_ajouter + $init_date ; 560 565 foreach($new_valeur as $nv) … … 564 569 $p += $return ; 565 570 }else { 566 $erreur_message .= $return . " nv : " . $nv;571 $erreur_message .= "[" . $ajout . "] --> " . l10n('Sv_syntax_error') . " : " . $nv ."<br />"; 567 572 } 568 573 569 574 570 575 } 576 571 577 return $p ; 572 578 … … 686 692 pwg_query($query ); 687 693 } 688 $erreur_message .= $mails_options[ip] ." ".$user['username']." ".$user['email'] . ' -----> ' . l10n(' black_list') ;694 $erreur_message .= $mails_options[ip] ." ".$user['username']." ".$user['email'] . ' -----> ' . l10n('Sv_black_list') ; 689 695 // die($nb." ".$ip." ".$user['username']." ".$user['email']); 690 696 return true ; … … 787 793 788 794 $user_name=str_replace(" ","%20",trim($user_name)); 789 if ($user_name==l10n(' guest')) $user_name="";795 if ($user_name==l10n('Sv_guest')) $user_name=""; 790 796 $user_name=""; // ne plus tester sur le login. 791 797 $mail_adresse =str_replace(" ","%20",trim($mail_adresse));
Note: See TracChangeset
for help on using the changeset viewer.