true, ); $badRoot = array( 'res' => true, 'winboards' => true, 'irc' => true, 'links' => true, 'about' => true, 'contact' => true, 'login' => true, 'logout' => true, '<%= URL %>' => true, ); $error = 0; /* if (!$_GET["cookie"]) { print"
"; } else { */ print "
check folders:\n\n";
	listDir("library", "library", $_GET["cookie"], 1);
//}

print "\nnew urls:\n\n";

foreach ($found as $url)
{
	print "".$url[1]."\n";
}

print "errors: " . $error;

function listDir($dir, $ref, $cookie, $deep)
{
	GLOBAL $found, $r_query, $dirULRs, $badRoot, $error;

	print $deep." - load [dir] : ".$dir."\n";

	$query = file_get_contents("https://winworldpc.com/".$dir, false, stream_context_create(array(
			'http'=>array(
					'method'	=>	"GET",
					'header'	=>	"Referer: https://winworldpc.com/".$ref." \r\n".
					"Cookie: winworld_session=".$cookie." \r\n",
			))));

	$query = str_replace("http:///","http://wdl1.winworldpc.com/", $query);

	$query = explode('