ToKeiChun

Email Filter PHP WebBased

Sep 19th, 2020 (edited)
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Email Filter x shutdown57</title>
  5.     <meta name="author" content="shutdown57">
  6. </head>
  7. <body>
  8. <style type="text/css">
  9.     body{background: #000;color:#df5;}textarea,input{color:#df5;border: 1px solid #fff;background: transparent;}input[type='text']{width:500px;}input[type='submit']{padding: 3px;margin:10px;width: 100px;}a{color: #fff;text-decoration: none;}a:hover{border-bottom:1px solid #df5;}
  10. </style>
  11. <center>
  12.     <h1>Email Filter</h1>
  13.     <?php
  14.     if(!file_exists("mailfilter_output/coded.shutdown57"))
  15.         {
  16.             $status_dir="<font color=red>NOT READY</font>";
  17.             @mkdir("mailfilter_output");
  18.             @touch("mailfilter_output/coded.shutdown57");
  19.             @file_put_contents("mailfilter_output/coded.shutdown57","mail filter code by shutdown57");
  20.             sleep(3);
  21.             echo "<meta http-equiv='refresh' content='2;url=?buat_directory_'>";
  22.         }else{
  23.             $status_dir="<font color=lime>READY</font>";
  24.         }
  25.         echo "<b> Status : ".$status_dir."</b><br>";
  26.         echo "<small> NB : Jika reload terus, atau status NOT READY pastikan directory <b><i>mailfilter_output</i></b> sudah di buat, dan di dalamnya harus ada file <i>coded.shutdown57</i></small><hr>";
  27.     function simpenkontl($tt,$oo)
  28.     {
  29.         $fp=fopen("mailfilter_output/".$tt, 'a');
  30.         fwrite($fp,$oo."\n");
  31.         fclose($fp);
  32.     }
  33.     if(isset($_POST['mph']))
  34.     {
  35.         $lele=array();
  36.         $lmail=explode("|",$_POST['lmail']); $c=count($lmail);
  37.         $list=explode("\r\n",$_POST['list']);
  38.         for($i=0;$i<=$c-1;$i++)
  39.         {$regex=$lmail[$i];
  40.             foreach($list as $mail)
  41.             {
  42.                 if(preg_match("/([aA-zZ]*.)(\@".$regex.")\.([aA-zZ]+)/",$mail,$lo)){
  43.                     simpenkontl($regex.".txt",$mail);
  44.                 }
  45.  
  46.             }
  47.             echo "<p style='text-align:left'>[ <a href='mailfilter_output/$regex.txt' target='_blank'>$regex.txt !</a> ] '3')/</p>";
  48.         }
  49.         echo "[ <a href='?'>back</a> ]";
  50.     }else{
  51.         ?>
  52.     <form method="POST">
  53.         <textarea style="width:500px;height:300px;" placeholder="listmu" name="list"></textarea><br>
  54.         <input type="text" name="lmail" autocomplete="off" value="yahoo|gmail|hotmail|aol|msn|outlook|gmx|orange|web|mail|*" placeholder="email yang mau di filter"><br>
  55.         <input type="submit" name="mph" value="Filter now!" >
  56.     </form>
  57.     <?php } ?>
  58. </center>
  59. </body>
  60. </html>
Add Comment
Please, Sign In to add comment