Advertisement
bl4ck-dz

Simple Emails Filter

Feb 24th, 2015
8,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1. <?php
  2. /*
  3.             simple Script Emails Filter :D
  4.             By bl4ck-dz
  5.             yahoo//hotmail//outlook//mail//gmail//orange//live//aol
  6.             gr33tz : sec4ever :D
  7. */
  8. error_reporting(0);
  9. echo '<html>
  10. <title>Emails Filter </title>
  11. <body bgcolor=""><center>
  12. <form action="" method="POST">
  13. <h1 style="font-family: Georgia, Serif;color:8B8B8B">Emails Filter </h1>
  14. <img src="http://hermanoff.net/wp-content/uploads/2014/03/email.png" height="150" width="250" /><br>
  15. <textarea id=textarea name="emails" rows=15 cols=45></textarea><br><br>
  16. <input name="submit" type="submit" value="Start ..">
  17. <style>
  18. textarea {
  19.  border: 1px solid #765942;
  20.  border-radius: 10px;
  21.  border-color: blue;
  22.  border-style: solid;
  23.  height:250px;
  24. }
  25. </style>
  26. </form>';
  27. $emails = $_POST['emails'];
  28. $mails = array ("yahoo","hotmail","outlook","mail","gmail","orange","live","aol");
  29. if (isset ($emails) && !empty ($emails)) {
  30.     foreach (explode ("\n",$emails) as $email ) {
  31.         foreach ($mails as $mail) {
  32.             if (eregi('@'.$mail,$email)) {
  33.                 $save = fopen ($mail.'.txt','a+');
  34.                 fwrite ($save,"\n".$email);
  35.                 }else
  36.                     $sav = fopen ('other.txt','a+');
  37.                     fwrite($sav,"\n".$email);
  38.             }  
  39.         }
  40.         echo ' <br> Filtred :D ';
  41. }
  42.    
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement