<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Bash.Org.Ru Reader</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="includes/modalbox.css" type="text/css" media="screen" /> <style type="text/css">body, input, select {font-family : Arial, sans-serif;} input, select, textarea { background: #C0FF82; border: 1px dotted Green; color: Black; margin-bottom: 5px; } form { border: 1px dotted Green; color: Black; padding-left: 5px; padding-top: 3px; margin-bottom: 3px; } body { background-color: #FEFF68; margin: 0px; padding: 2px; color: Black; font-size: small; } img {vertical-align: bottom;} a { color: Blue; } a:hover {color: Blue;} a:link {color: Blue;} a:visited {color: Blue;} a:active { color: Blue; } h3 { margin: 3px; } div.head { background-color: #C0FF82; border: thin dashed Green; text-align: center; padding: 5px; margin-bottom: 2px; } div.title { background-color: #C0FF82; border: thin dashed Green; text-align: left; padding: 3px; margin-bottom: 2px; } div.body { text-align: center; padding-bottom: 5px; } div.bodyleft { text-align: left; padding-bottom: 5px; } div.body_t { border-left: thin dashed Green; border-right: thin dashed Green; border-top: thin dashed Green; margin-top: 5px; margin-bottom: 2px; } div.body_h { text-align: center; background-color: #C0FF82; padding: 3px 3px 3px 3px; } div.privat_from { background-color: #9ACD34; color: Black; } div.privat_to { background-color: #D98D00; color: Black; } div.foot { background-color: Green; text-align: center; font-size: 10px; } span.foot { background-color: Green; color: Yellow; } a.priv { color: Black; }</style></head> <body> <?php error_reporting(0); $action=$_POST['action'] ; $action=ereg_replace("[^0-9]", "60", $action); if ($action>51) { echo "Не корректно<br> <form method='post' action=''> <INPUT TYPE='submit' VALUE='Ввести еще раз'> <input type='hidden' name='lol' value='false'> </form><br><br>";break; } if ($_POST['lol']=='true'){ echo "<form method='post' action=''> <INPUT TYPE='submit' VALUE='Новое значение'> <input type='hidden' name='lol' value='false'></form><br><br>"; $page = file_get_contents('http://bash.org.ru/'); preg_match_all('|<div>(.+)</div>|',$page,$result); for($i=0;$i<$action;$i++){ if (($i<>10)) { echo "<font color=black>".$result[1][$i]."</font><br><br><div class='title' id='6689'></div><br>";} } echo "<form method='post' action=''> <INPUT TYPE='submit' VALUE='Новое значение'> <input type='hidden' name='lol' value='false'></form><br>"; } else { echo "Введите количество первых цитат на странице <b>(от 1 до 51)</b> <br> <form method='post' action=''> <input type='text' name='action' value='' size=2> <INPUT TYPE='submit' VALUE='Передать'> <input type='hidden' name='lol' value='true' > </form>";} echo "(с) <b><a href='http://forum.antichat.ru/member.php?u=56330'>fatalo</a href></b>"; ?> </div> </form> </div> <div> </div> </body> </html>