[php] index

Viewer

  1. <?php
  2. echo '<form action="" method="post" >';
  3. echo 'Дни показа';
  4. echo '<input type="text" name="plan" size="10" value="" />';
  5. echo 'Адрес сайта';
  6. echo '<input type="text" name="url" size="10" value="" />';
  7. echo 'Адрес сайта повтор';
  8. echo '<input type="text" name="urlsite" size="10" value="" />';
  9. echo 'Описание';
  10. echo '<input type="text" name="text" size="10" value="" />';
  11. echo '<input type="submit" name="Button" value="добавить" />';
  12. echo '</form>';
  13.  
  14. if (!empty($_POST)) {
  15.         $ch = curl_init();
  16.         curl_setopt($ch, CURLOPT_URL, 'http://retab.ru/box-minishot-add');
  17.         curl_setopt($ch, CURLOPT_HEADER, 1);
  18.         curl_setopt($ch, CURLOPT_POST, 1);
  19.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20.         curl_setopt(
  21.                 $ch,
  22.                 CURLOPT_POSTFIELDS,
  23.                 array(
  24.                         'urlsite' => $_POST['urlsite'],
  25.                         'text' => $_POST['text'],
  26.                         'Button' => 'get'
  27.                 )
  28.         );
  29.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  30.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  31.         $res = curl_exec($ch);
  32.         if (!$res) {
  33.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  34.                 echo $error;
  35.         } else {
  36.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  37.                         $content = $found[0];
  38.                         echo $content;
  39.                 } else {
  40.                         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>';
  41.                 }
  42.         }
  43.  
  44.         curl_close($ch);
  45. }
  46.  
  47. if (!empty($_POST)) {
  48.         $ch = curl_init();
  49.         curl_setopt($ch, CURLOPT_URL, 'http://exchange-visits.ru/box-minishot-add');
  50.         curl_setopt($ch, CURLOPT_HEADER, 1);
  51.         curl_setopt($ch, CURLOPT_POST, 1);
  52.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  53.         curl_setopt(
  54.                 $ch,
  55.                 CURLOPT_POSTFIELDS,
  56.                 array(
  57.                         'urlsite' => $_POST['urlsite'],
  58.                         'text' => $_POST['text'],
  59.                         'Button' => 'get'
  60.                 )
  61.         );
  62.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  63.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  64.         $res = curl_exec($ch);
  65.         if (!$res) {
  66.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  67.                 echo $error;
  68.         } else {
  69.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  70.                         $content = $found[0];
  71.                         echo $content;
  72.                 } else {
  73.                         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>';
  74.                 }
  75.         }
  76.  
  77.         curl_close($ch);
  78. }
  79.  
  80. if (!empty($_POST)) {
  81.         $ch = curl_init();
  82.         curl_setopt($ch, CURLOPT_URL, 'http://seotitan.ru/box-minishot-add');
  83.         curl_setopt($ch, CURLOPT_HEADER, 1);
  84.         curl_setopt($ch, CURLOPT_POST, 1);
  85.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  86.         curl_setopt(
  87.                 $ch,
  88.                 CURLOPT_POSTFIELDS,
  89.                 array(
  90.                         'urlsite' => $_POST['urlsite'],
  91.                         'text' => $_POST['text'],
  92.                         'Button' => 'get'
  93.                 )
  94.         );
  95.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  96.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  97.         $res = curl_exec($ch);
  98.         if (!$res) {
  99.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  100.                 echo $error;
  101.         } else {
  102.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  103.                         $content = $found[0];
  104.                         echo $content;
  105.                 } else {
  106.                         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>';
  107.                 }
  108.         }
  109.  
  110.         curl_close($ch);
  111. }
  112.  
  113. if (!empty($_POST)) {
  114.         $ch = curl_init();
  115.         curl_setopt($ch, CURLOPT_URL, 'http://my-vizit.ru/box-minishot-add');
  116.         curl_setopt($ch, CURLOPT_HEADER, 1);
  117.         curl_setopt($ch, CURLOPT_POST, 1);
  118.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  119.         curl_setopt(
  120.                 $ch,
  121.                 CURLOPT_POSTFIELDS,
  122.                 array(
  123.                         'urlsite' => $_POST['urlsite'],
  124.                         'text' => $_POST['text'],
  125.                         'Button' => 'get'
  126.                 )
  127.         );
  128.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  129.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  130.         $res = curl_exec($ch);
  131.         if (!$res) {
  132.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  133.                 echo $error;
  134.         } else {
  135.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  136.                         $content = $found[0];
  137.                         echo $content;
  138.                 } else {
  139.                         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>';
  140.                 }
  141.         }
  142.  
  143.         curl_close($ch);
  144. }
  145.  
  146. if (!empty($_POST)) {
  147.         $ch = curl_init();
  148.         curl_setopt($ch, CURLOPT_URL, 'http://refvizit.ru/box-minishot-add');
  149.         curl_setopt($ch, CURLOPT_HEADER, 1);
  150.         curl_setopt($ch, CURLOPT_POST, 1);
  151.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  152.         curl_setopt(
  153.                 $ch,
  154.                 CURLOPT_POSTFIELDS,
  155.                 array(
  156.                         'urlsite' => $_POST['urlsite'],
  157.                         'text' => $_POST['text'],
  158.                         'Button' => 'get'
  159.                 )
  160.         );
  161.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  162.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  163.         $res = curl_exec($ch);
  164.         if (!$res) {
  165.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  166.                 echo $error;
  167.         } else {
  168.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  169.                         $content = $found[0];
  170.                         echo $content;
  171.                 } else {
  172.                         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>';
  173.                 }
  174.         }
  175.  
  176.         curl_close($ch);
  177. }
  178.  
  179. if (!empty($_POST)) {
  180.         $ch = curl_init();
  181.         curl_setopt($ch, CURLOPT_URL, 'http://webmasteru.in.ua/box-minishot-add');
  182.         curl_setopt($ch, CURLOPT_HEADER, 1);
  183.         curl_setopt($ch, CURLOPT_POST, 1);
  184.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  185.         curl_setopt(
  186.                 $ch,
  187.                 CURLOPT_POSTFIELDS,
  188.                 array(
  189.                         'urlsite' => $_POST['urlsite'],
  190.                         'text' => $_POST['text'],
  191.                         'Button' => 'get'
  192.                 )
  193.         );
  194.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  195.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  196.         $res = curl_exec($ch);
  197.         if (!$res) {
  198.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  199.                 echo $error;
  200.         } else {
  201.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  202.                         $content = $found[0];
  203.                         echo $content;
  204.                 } else {
  205.                         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>';
  206.                 }
  207.         }
  208.  
  209.         curl_close($ch);
  210. }
  211.  
  212. if (!empty($_POST)) {
  213.         $ch = curl_init();
  214.         curl_setopt($ch, CURLOPT_URL, 'http://pr0motion.ru/box-minishot-add');
  215.         curl_setopt($ch, CURLOPT_HEADER, 1);
  216.         curl_setopt($ch, CURLOPT_POST, 1);
  217.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  218.         curl_setopt(
  219.                 $ch,
  220.                 CURLOPT_POSTFIELDS,
  221.                 array(
  222.                         'urlsite' => $_POST['urlsite'],
  223.                         'text' => $_POST['text'],
  224.                         'Button' => 'get'
  225.                 )
  226.         );
  227.         curl_setopt($ch, CURLOPT_USERAGENT, 'MSIE 5');
  228.         curl_setopt($ch, CURLOPT_REFERER, "http://ya.ru");
  229.         $res = curl_exec($ch);
  230.         if (!$res) {
  231.                 $error = curl_error($ch) . '(' . curl_errno($ch) . ')';
  232.                 echo $error;
  233.         } else {
  234.                 if (preg_match("/\<table class\='yaResultat'(.+)\<\/table\>/isU", $res, $found)) {
  235.                         $content = $found[0];
  236.                         echo $content;
  237.                 } else {
  238.                         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>';
  239.                 }
  240.         }
  241.  
  242.         curl_close($ch);
  243. }
  244.  
  245.  

Editor

You can edit this paste and save as new:


File Description
  • index
  • Paste Code
  • 08 Mar-2018
  • 7.51 Kb
You can Share it: