'; } if (strpos($htmlcontent, " onmouseover=") !== false) $what="'img'"; $lookforomo=explode(' onmouseover="', $htmlcontent); if (sizeof($lookforomo) > 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } } else if (isset($_GET['somehtmlurl'])) { $htmlcontent=@file_get_contents(urldecode($_GET['somehtmlurl'])); if (strpos(substr($htmlcontent,0,10), "<") === false) { $htmlcontent=''; } if (strpos($htmlcontent, " onmouseover=") !== false) $what="'img'"; $lookforomo=explode(' onmouseover="', $htmlcontent); if (sizeof($lookforomo) > 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } } if (isset($_POST['somebodyhtml'])) { $lookforss=explode('/"> 1) { $prelookforss=explode('href="', $lookforss[0]); $htmlcontent=@file_get_contents(urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/"); if (strpos($htmlcontent, " onmouseover=") !== false) $what="'img'"; $htmlcontent = str_replace("", "\n var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } setTimeout(firstaclick, 1000); \n", str_replace(' src="', ' src="' . urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/", $htmlcontent)); $lookforomo=explode(' onmouseover="', $htmlcontent); if (sizeof($lookforomo) > 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } } else if (strpos(urldecode($_POST['somebodyhtml']), " 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } $what="'img'"; $htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . urldecode($_POST['somebodyhtml']) . ""; } else { $htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . urldecode($_POST['somebodyhtml']) . ""; } } } else if (isset($_GET['somebodyhtml'])) { $lookforss=explode('/"> 1) { $prelookforss=explode('href="', $lookforss[0]); //echo "aaawhere " . urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/"; //exit; $htmlcontent=@file_get_contents(urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/"); $htmlcontent = str_replace("", "\n var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } setTimeout(firstaclick, 1000); \n", str_replace(' src="', ' src="' . urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/", $htmlcontent)); $lookforomo=explode(' onmouseover="', $htmlcontent); if (sizeof($lookforomo) > 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } //echo "where"; //exit; } else if (strpos(urldecode($_GET['somebodyhtml']), " 1) { //echo "here"; //exit; $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } //else { //echo "there"; //exit; // } $what="'img'"; $htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . urldecode($_GET['somebodyhtml']) . ""; } else { $htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . urldecode($_GET['somebodyhtml']) . ""; //echo "zthere"; //exit; } } } else if (strpos($_SERVER['QUERY_STRING'], 'somebodyhtml=') !== false) { $prel=explode('somebodyhtml=', $_SERVER['QUERY_STRING']); $lookforss=explode('/">", "\n var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } setTimeout(firstaclick, 1000); \n", str_replace(' src="', ' src="' . urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/", $htmlcontent)); $lookforomo=explode(' onmouseover="', $htmlcontent); if (sizeof($lookforomo) > 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } // echo "aawhere"; // exit; } else if (strpos(urldecode($prel[1]), " 1) { // echo "aahere"; // exit; $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } // else { //echo "there"; //exit; //} $what="'img'"; $htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . urldecode($prel[1]) . ""; } else { $htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . urldecode($prel[1]) . ""; //echo "zthere"; //exit; } } } else if ($htmlcontent != "") { $lookforss=explode('/">", "\n var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } setTimeout(firstaclick, 1000); \n", str_replace(' src="', ' src="' . urldecode($prelookforss[sizeof($prelookforss) - 1]) . "/", $htmlcontent)); } else if (strpos($htmlcontent, "", "\n var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } setTimeout(firstaclick, 1000); \n", $htmlcontent); } else { if (strpos($htmlcontent, " onmouseover=") !== false) $what="'img'"; //$htmlcontent = " var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . $htmlcontent . ""; $htmlcontent = str_replace("", "\n var what=" . $what . "; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } setTimeout(firstaclick, 1000); \n", $htmlcontent); } $lookforomo=explode(' onmouseover="', $htmlcontent); if (sizeof($lookforomo) > 1) { $postlookforomo=explode('"', $lookforomo[-1 + sizeof($lookforomo)]); $thingtodo=str_replace("this.","ais[0].",$postlookforomo[0]); } } if (strlen($htmlcontent) > 0) { if (strpos($htmlcontent, " var what='a'; \n function firstaclick() { var ais=document.getElementsByTagName(what); if (ais.length > 0) { ais[0].click(); } if (what != 'a') { setTimeout(firstaclick, 5000); } } " . $htmlcontent . ""; } } if (($what != "'a'" && strpos($htmlcontent, "='a'") !== false) || strpos($htmlcontent, " onmouseover=") !== false || $thingtodo != "ais[0].click();") { $htmlcontent = str_replace("ais[0].click();", $thingtodo, str_replace(" onmouseover=", " onclick=", str_replace("='a'", "=" . $what . "", $htmlcontent))); } echo str_replace(' id="i', ' style="width:640px;height:400px;" id="i', str_replace('margin-left:', 'width:640px;height:400px;margin-left:', $htmlcontent)); ?>