All pastes #960304 Raw Edit

filter

public php v1 · immutable
#960304 ·published 2008-03-28 00:20 UTC
rendered paste body
<?if ($_POST["list"]) {  $list = explode("\n", $_POST["list"]);  $num = "0";  while ($list[$num]) {    $list[$num] = str_replace(chr(9), "", $list[$num]);    if (preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}[: ]\d{1,5})/", $list[$num], $match)) {      $match[0] = str_replace(chr(32), chr(58), $match[0]);      if (!stristr($newlist, $match[0])) {        $newlist = "$newlist\n$match[0]";      }    }    $num++;  }}?><html><head>Ideal for filtering useless text surrounding proxies</head><form action="<?=$_SERVER["PHP_SELF"];?>" method="post"/><textarea name="list" rows="25" cols="50"><?=$newlist;?></textarea><br /><input type="submit" value="Filter"/><input type="reset" value="Clear"/></html>