Jump to content

Recommended Posts

Posted

<?php

$act = (isset($_GET['act']) && $_GET['act'] == "check") ? "check" : "none";


function checkSpan($input){
// Save style classes
$match_exc_style = preg_replace("/.*([<]style\s*?[>])|([<]\W+style\s*?[>]).*/","", $input);
$match_exc = preg_replace("/\s+/","", $match_exc_style);

$match_exc = explode(".", $match_exc, 2);
$match_exc = $match_exc[1];

$newSplit = explode(".", $match_exc);
$arrClass = array();
foreach($newSplit as $class) {
$class_exc = preg_replace("/{.*?}/","", $class);
$class_val = preg_replace("/.*?{(.*?)}/","$1", $class);
$arrClass[$class_exc] = $class_val;
}

//continue triming
$match = str_replace($match_exc_style,"", $input);


foreach($arrClass as $key => $class) {
if($class == "display:none")
$match=preg_replace("/([<]span\s+class\s*?\W+\s*?".$key."\s*?\W+?[>])(.*?)([<].*?[>])/","",$match);
if($class == "display:inline")
$match=preg_replace("/([<]span\s+class\s*?\W+\s*?".$key."\s*?\W+?[>])(.*?)([<].*?[>])/","$2",$match);
}

$match = preg_replace("/[<]span\s*?[>]\s*?[<]\W+.*?[>]/", "", $match);
$match = preg_replace("/([<]span\s*?[>])(.*?)([<].*?[>])/", "$2",$match);

return $match ;
}

function getContents() {
$mama = file_get_contents("http://hidemyass.com/proxy-list/");
$mama = preg_replace("/(.*)?[<]\W+thead\s*?[>]/", "", $mama);
$mama = preg_replace("/[<]thead\s*?[>]\s*/", "|+|+|+|", $mama);
$mama = explode("|+|+|+|",$mama);
$mama = $mama[1];
$mama = preg_replace("/\s*[<]\W+table\s*?[>]\s*/", "|+|+|+|", $mama);
$mama = explode("|+|+|+|",$mama);
$mama = $mama[0];

$mama = preg_replace("/\s*[<]\W+?tr\s*?[>]\s*?[<]tr.*?[>]\s*/","|+|+|+|", $mama);
$mama = preg_replace("/\s*[<]\W+?tr\s*?[>]s*|s*[<]tr.*?[>]\s*/","", $mama);
$mama = explode("|+|+|+|",$mama,2);
$mama = $mama[1];
$newSplit = explode("|+|+|+|", $mama);


foreach($newSplit as $line) {
$line = preg_replace("/\s*[<]\W+?td\s*?[>]\s*?[<]td.*?[>]\s*/","|+|+|+|", $line);
$newSplit = explode("|+|+|+|",$line);
$line = "<font color='white'>".$newSplit[1].":".$newSplit[2]."<br>";

$arrayView = checkSpan($line);

print_r($line."</font>");

}


}

switch($act) {
case "check": {
echo getContents();
}break;

default: {
echo '<title>Proxy List @Crisalixx</title>
<body bgcolor="#1A1A1A"/>
<div align=center><img src=http://s23.postimg.org/5lmp7adbv/Untitled_1.png></img></div><center>
<script type="text/JavaScript">
function xhr() {
var xhr;

if(window.XMLHttpRequest) { xhr = new XMLHttpRequest(); }else { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }

xhr.onreadystatechange = function() {
if(xhr.readyState == 4 && xhr.status == 200) { document.getElementById("table").innerHTML = xhr.responseText;}
}

xhr.open("GET", "?act=check", false);
xhr.send(null);
}

function timedRefresh() { xhr(); setTimeout(function(){timedRefresh();}, 10000); }
</script>
<body onload="timedRefresh();"><div id="table"></div></body>';
}
}


?>

source: Proxy List(Generator) - Thieves-Team credits: crisalixx, novalue + mi-am bagat si eu nasul si am modificat cateva lucruri deoarece cei de pe hma si-au modificat codul sursa la pagina...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...