[php] index
Viewer
- <?php
- echo '<form action="" method="post" >';
- echo 'Дни показа';
- echo '<input type="text" name="plan" size="10" value="" />';
- echo 'Адрес сайта';
- echo '<input type="text" name="url" size="10" value="" />';
- echo 'Адрес сайта повтор';
- echo '<input type="text" name="urlsite" size="10" value="" />';
- echo 'Описание';
- echo '<input type="text" name="text" size="10" value="" />';
- echo '<input type="submit" name="Button" value="добавить" />';
- echo '</form>';
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://retab.ru/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://retab.ru/">...<a class="thumburl" href="http://retab.ru/" rel="external" target="_blank">http://retab.ru/</a></form>';
- }
- }
- curl_close($ch);
- }
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://exchange-visits.ru/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://exchange-visits.ru/">...<a class="thumburl" href="http://exchange-visits.ru/" rel="external" target="_blank">http://exchange-visits.ru/</a></form>';
- }
- }
- curl_close($ch);
- }
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://seotitan.ru/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://seotitan.ru/">...<a class="thumburl" href="http://seotitan.ru/" rel="external" target="_blank">http://seotitan.ru/</a></form>';
- }
- }
- curl_close($ch);
- }
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://my-vizit.ru/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://my-vizit.ru/">...<a class="thumburl" href="http://my-vizit.ru/" rel="external" target="_blank">http://my-vizit.ru/</a></form>';
- }
- }
- curl_close($ch);
- }
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://refvizit.ru/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://refvizit.ru/">...<a class="thumburl" href="http://refvizit.ru/" rel="external" target="_blank">http://refvizit.ru/</a></form>';
- }
- }
- curl_close($ch);
- }
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://webmasteru.in.ua/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://webmasteru.in.ua/">...<a class="thumburl" href="http://webmasteru.in.ua/" rel="external" target="_blank">http://webmasteru.in.ua/</a></form>';
- }
- }
- curl_close($ch);
- }
- if (!empty($_POST)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://pr0motion.ru/box-minishot-add');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(
- $ch,
- CURLOPT_POSTFIELDS,
- array(
- 'urlsite' => $_POST['urlsite'],
- 'text' => $_POST['text'],
- 'Button' => 'get'
- )
- );
- curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
- curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
- $res = curl_exec($ch);
- if (!$res) {
- $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
- echo $error;
- } else {
- if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
- $content = $found[0];
- echo $content;
- } else {
- echo '<form>1..<img src="http://s2.googleusercontent.com/s2/favicons?domain_url=http://pr0motion.ru/">...<a class="thumburl" href="http://pr0motion.ru/" rel="external" target="_blank">http://pr0motion.ru/</a></form>';
- }
- }
- curl_close($ch);
- }
Editor
You can edit this paste and save as new: