Advertisement
kefiex404

remove

Jun 25th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <center>
  2. <form action="" method="post">
  3. <textarea name="silit" style="margin: 0px; height: 232px; width: 476px"></textarea>
  4. <br><input type="submit" name="mencret" value="Kirim Url"><input type="submit" name="mencrets" value="Remove Clones">
  5. </form><br>
  6. <?php
  7. error_reporting(0);
  8. if(isset($_POST['mencret'])) {
  9. echo "<textarea  style='margin: 0px; height: 232px; width: 476px;'>";
  10. $re = "/:\\/\\/(.*?)\\//";
  11. preg_match_all($re, $_POST['silit'], $cuk);
  12. foreach ($cuk[1] as $key => $value) {
  13.   echo "http://".$value."\r\n";
  14.  
  15.  }
  16. }
  17. if(isset($_POST['mencrets'])) {
  18. echo "<textarea  style='margin: 0px; height: 232px; width: 476px;'>";
  19.  $fgt = explode("\r\n", $_POST['silit']);
  20.  $fgt = array_unique($fgt);
  21.  foreach ($fgt as $key => $value) {
  22.   echo $value."\r\n";
  23.  }
  24. }
  25. echo"</textarea>";
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement