
04.06.2009, 19:27
|
|
Познающий
Регистрация: 03.03.2009
Сообщений: 86
С нами:
9047791
Репутация:
258
|
|
Socks4/5 sorter and parser by erihtoney & mff
PHP код:
<?php
/*
Socks4/5 sorter and parser by erihtoney & mff
*/
if(isset($_POST[go_sort])){
$source=$_POST[source];
$id=chr(13);
$sort=explode("$id",$source);
foreach($sort as $value){
if(strpos($value,"SOCKS4") OR strpos($value,"socks4")){
$socks4[]=$value;
}
if(strpos($value,"SOCKS5") OR strpos($value,"socks5")){
$socks5[]=$value;
}
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<title>Socks4/5 sorter and parser by erihtoney & mff</title>
</head>
<body>
<center><h1>Parser and sorter Socks4/5 </h1></center>
<fieldset>
<legend>main</legend>
<form action="" style="display:inline;" method=POST>
<table align="center" width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td valign="top"><fieldset>
<legend>Source</legend>
<textarea id="source" rows="10" style="width:100%;" name="source"><?php
if(isset($_POST[go_sort]) AND isset($_POST[source])){
echo $_POST[source];
}
?>
</textarea>
</fieldset></td>
<td valign="top"><fieldset>
<legend>Socks4</legend>
<textarea id="socks4" rows="8" style="width:100%;" ><?php
if(isset($_POST[go_sort]) AND !empty($_POST[source]) AND $socks4){
foreach($socks4 as $v){
$vv=preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:[0-9]{1,4}/',$v,$array_socks4);
foreach($array_socks4 as $pure_socks4){
echo $pure_socks4."
";
}
}
}?></textarea>
</fieldset></td>
<td valign="top"><fieldset>
<legend>Socks5</legend>
<textarea id="socks5" rows="8" style="width:100%;"><?php
if(isset($_POST[go_sort]) AND !empty($_POST[source]) AND $socks5)
{
foreach($socks5 as $v){
$socks5_rw=preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:[0-9]{4}/',$v,$array_socks5);
foreach ($array_socks5 as $pure_socks5){
echo $pure_socks5."
";
}
}
}
?></textarea>
</fieldset></td>
</tr>
<tr>
<td align="right" colspan="3"><input type="submit" name="go_sort" value="Сортировать">
</td>
</tr>
</table>
</form>
</fieldset>
</body>
</html>
гавнокод
Последний раз редактировалось erihtoney; 07.06.2009 в 09:26..
|
|
|