code2

<?

// php, filename "pass.php", использовать удаленно, с любого хоста с поддержкой php, заранее создав там файл, далее использовать просто заходя на него http://domain/pass.php


error_reporting(0);
srand ((double) microtime() * 1000000);
mt_srand ((double) microtime() * 1000000);

function bigloop_short ($length) {
srand ((double) microtime() * 1000000);
mt_srand ((double) microtime() * 1000000);
if (!$length) { $length = 50; }
$str = "";
$strarr = array("0","1","2","3","4","5","6","7","8","9","q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m","Q","A","Z","X","S","W","E","D","C","V","F","R","T","G","B","Y","H","N","U","J","M","I","O","P","K","L");
$strarr = array_merge($strarr, $strarr);
shuffle($strarr);
for ($i=1;$i<=$length;$i++) {
$str .= array_shift($strarr);
}
return $str;
}

?>
<pre>

Pass

<form name=”xxx”>
P4 <input type=”text” name=”textfield” value=”<? echo bigloop_short(“4″); ?>”>

P5 <input type=”text” name=”textfield” value=”<? echo bigloop_short(“5″); ?>”>

P6 <input type=”text” name=”textfield” value=”<? echo bigloop_short(“6″); ?>”>

P8 <input type=”text” name=”textfield” value=”<? echo bigloop_short(“8″); ?>”>

P10 <input type=”text” name=”textfield” value=”<? echo bigloop_short(“10″); ?>”>

P12 <input type=”text” name=”textfield” value=”<? echo bigloop_short(“12″); ?>”>
</form>

For reload data Please press F5 or
<form name=”rel” method=”Post” action=””>
<input name=”CLICK_HERE” value=”CLICK_HERE” type=”submit”>
</form>

</pre>

code1

<?

$access = "testpass"; // password generator: http://dzholytechsup.tumblr.com/post/46835283465

error_reporting(0);
set_time_limit(5*60);

srand ((double) microtime() * 1000000);
mt_srand ((double) microtime() * 1000000);

function NoDoubleSpaces ($t) { $t = ereg_replace("([ \r\t\n])+", "\\1", $t); return $t; }

function simplegetpage ($url) {
$ch = curl_init($url);
if (!$ch) { return "ERROR: ".curl_error($ch); }
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_USERAGENT, "Pony link checker, v-2");
$r = curl_exec($ch);
curl_close($ch);
return "$r";
}


if (isset($HTTP_POST_VARS["links"]) && strlen($HTTP_POST_VARS["links"]) > 7) { $links = $HTTP_POST_VARS["links"]; }
if (empty($links) && isset($_POST["links"]) && strlen($_POST["links"]) > 7) { $links = $_POST["links"]; }

if (isset($HTTP_POST_VARS["access_form"]) && strlen($HTTP_POST_VARS["access_form"]) > 7) { $access_form = $HTTP_POST_VARS["access_form"]; }
if (empty($access_form) && isset($_POST["access_form"]) && strlen($_POST["access_form"]) > 7) { $access_form = $_POST["access_form"]; }

?>

<h1>CHECK LINKS (!<40) :</h1> <br>
<form method=”post”>
access: <input type=”text” name=”access_form” value=”<? echo $access_form; ?>”>
<br><br>
<b>links to check</b> <br>
<textarea cols=”100″ rows=”10″ name=”links”><? echo $links; ?></textarea>

<br> <br> example: <br>
http://domain1.com,checkstring1 <br>
http://domain2.com,checkstring2 <br>
http://domain3.com,checkstring3 <br>

<br><br>     <input name=”submit” value=”submit” type=”submit”>
<br>
</form>

<?
if ($access != $access_form) { echo "password incorrect"; exit(); }
if (empty($links)) { echo "links not set"; exit(); }

$links_a = explode("\n", $links);
foreach ($links_a as $tmp) {
$tmp = NoDoubleSpaces($tmp);
list ($link, $checkstring) = explode(",", $tmp);
$link = trim($link); $checkstring = trim($checkstring);

if (strlen($link) > 7 && ereg("^http://", $link)) {
$link_content = simplegetpage($link);
$sizekb = strlen($link_content) / 1024;
list ($sizekb) = explode(".", $sizekb);

if (eregi($checkstring, $link_content)) { $status = "<font color='#00FF00'>OK</font>"; } else { $status = "<font color='#FF0000'>not OK</font>"; }
echo "$link ($checkstring), $status, KB-size: $sizekb <br>\n";

}
}

?> <br><br><br><br><br>