ph4x35ccb

separador por ocorrencias (email, nomes, senhas etc..)

Sep 6th, 2020 (edited)
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>separador mail</title>
  7.     <style>
  8.         *{
  9.             margin:0;
  10.             padding: 0;
  11.             box-sizing: border-box;
  12.         }
  13.         body{
  14.             display: grid;
  15.             justify-content: center;
  16.             background: #cecece;
  17.         }
  18.         h1{
  19.             color: #FF0000;
  20.             text-align: center;
  21.             text-shadow: 2px 2px 5px #ffff00;
  22.             font-weight: 1em;
  23.         }
  24.         #result{
  25.             max-width: 980px;
  26.             width: 100%;
  27.             display: flex;
  28.             justify-content: center;
  29.         }
  30.         .ocorencia{
  31.             width: 300px;
  32.             margin: 0 auto;
  33.             display: flex;
  34.             justify-content: center;
  35.         }
  36.         .btn{
  37.             display: flex;
  38.             justify-content: center;
  39.             margin-top: 10px;
  40.             margin-bottom: 5px;
  41.         }
  42.         input[type="text"]::placeholder{
  43.             color: red;
  44.             text-align: center;
  45.         }
  46.         input[type="submit"]{
  47.             background: #00FF00;
  48.             max-width: 200px;
  49.             width: 100%;
  50.             height: 40px;
  51.             font-weight: 900;
  52.             color: #fff;
  53.             background: green;
  54.             border: none;
  55.             cursor: pointer;
  56.         }
  57.         input[type="submit"]:hover{
  58.             background: #00FF00;
  59.             background: #00FF00;
  60.             max-width: 210px;
  61.             height: 43px;
  62.         }
  63.         .footer{
  64.             max-width: 550px;
  65.             width: 100%;
  66.             position: absolute;
  67.             bottom: 0px;
  68.             text-align: center;
  69.         }
  70.         @media screen and (max-width: 550px){
  71.             .text{
  72.                 max-width: 550px;
  73.                 width: 100%;
  74.             }
  75.             textarea{
  76.                 width: 90%;
  77.                 margin-left: 5%;
  78.                 margin-right: 5%;
  79.             }
  80.         }
  81.     </style>
  82. </head>
  83. <body>
  84.     <div>
  85.         <h1>Separador por ocorrências</h1>
  86.             </div>
  87.     <div>
  88.         <form action="" method="post">
  89.             <div class="text">
  90.                 <textarea name="list" id="" cols="60" rows="10"></textarea>
  91.             </div>
  92.             <div class="ocorencia">
  93.                 <input type="text" name="ocorencia" placeholder="Ocorrência">
  94.             </div>
  95.             <div class="btn">
  96.                 <input type="submit" name="btn">
  97.             </div>
  98.         </form>
  99.     </div>
  100.     <div id="result">
  101.         <?php
  102.             error_reporting(0);
  103.             set_time_limit(0);
  104.             if(isset($_POST['btn'])){
  105.                 $sec = $_POST['list'];
  106.                 if($sec !=""){
  107.                     extract($_POST);
  108.                     $lines = explode(PHP_EOL, $list);
  109.                     $oc=$_POST['ocorencia'];
  110.                     $c=count($lines);
  111.                     for($x=0;$x<$c;$x++){
  112.                         $_line=$lines[$x];
  113.                         $str = strstr($_line,$oc);
  114.                         if($str==true){
  115.                             echo $_line."<br>";        
  116.                             flush();
  117.                             ob_flush();
  118.                         }
  119.                     }
  120.                 }else{
  121.                     echo "LISTA VASIA!";
  122.                 }
  123.             }
  124.         ?>
  125.     </div>
  126.     <footer>
  127.         <div class="footer">
  128.             Para utilizar basta  colocar a string na caixa de ocorencia e sua lista(email, log etc..)
  129.             <p>Coder:Paulo Tk ph4x35 - irc.silverlords.org</a></p>
  130.  
  131.         </div>
  132.     </footer>
  133. </body>
  134. </html>
Add Comment
Please, Sign In to add comment