<?php
$wpx_hosts = get_post_meta(get_the_ID(), 'bulk_links', true);
$wpx_title = get_the_title();
$link_box = 'bulk_links';
$regex = '/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i';
preg_match_all($regex, $wpx_hosts, $matches);
$urls = $matches[0];
$min = 25; $max = 25; $randomRangeNumber = rand($min, $max); $randomRangeNumber1 = rand($min, $max); $randomRangeNumber2 = rand($min, $max); $randomRangeNumber3 = rand($min, $max); $randomRangeNumber4 = rand($min, $max);  $randomRangeNumber5 = rand($min, $max); $randomRangeNumber6 = rand($min, $max); $randomRangeNumber7 = rand($min, $max); $randomRangeNumber8 = rand($min, $max); $randomRangeNumber9 = rand($min, $max); $randomRangeNumber10 = rand($min, $max); $randomRangeNumber11 = rand($min, $max); $randomRangeNumber12 = rand($min, $max);
shuffle($urls);
foreach($urls as $url) {

/* Start hosts */	
	
		if (preg_match('[veev.to]',$url)) {
	 $variable = str_replace('https://veev.to/d/', '', $url);	 
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
$u = "https://veev.to/d/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);

	$code = 'File not found!';
	if (strpos($newquery, $code) === FALSE) {			
			
			/*
	$page = file_get_contents('https://veev.to/d/'.$variable.'');
	$code = 'Page not found';
	if (strpos($page, $code) === FALSE) {			
	*/		
	echo "<div style=\"order:$randomRangeNumber3;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on VEEV\" href=\"https://veev.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/veev.png\" width=\"16\" height=\"16\"> VEEV</a></div>";
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://veev.to/', 'https://veevdeleted.to/', $url);
       $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}
	
		elseif (preg_match('[filegram.to]',$url)) {
$variable = str_replace('https://filegram.to/', '', $url);

$u = "https://filegram.to/embed-$variable.html";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'File is no longer available';
	if (strpos($newquery, $code) === FALSE) {			
		
		/*
	$page = file_get_contents('https://filegram.to/'.$variable.'');
	$code = 'WE ARE SORRY';
	if (strpos($page, $code) === FALSE) {		
	*/	
echo "<div style=\"order:$randomRangeNumber1;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on filegram\" href=\"https://filegram.to/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/filegram.png\" width=\"16\" height=\"16\"> FileGram</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://filegram.to/', 'https://filegramdeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} 
}
	
			elseif (preg_match('[swiftload.io]',$url)) {
$variable = str_replace('https://swiftload.io/v/', '', $url);

$u = "https://swiftload.io/v/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'inactive';
	if (strpos($newquery, $code) === FALSE) {			
		
		/*
	$page = file_get_contents('https://swiftload.io/'.$variable.'');
	$code = 'WE ARE SORRY';
	if (strpos($page, $code) === FALSE) {		
	*/	
echo "<div style=\"order:$randomRangeNumber3;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on swiftload\" href=\"https://swiftload.io/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/swiftload.png\" width=\"16\" height=\"16\"> SwiftLoad</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://swiftload.io/', 'https://swiftloaddeleted.io/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} 
}	
	
	
/*
if (preg_match('[https://mangovideo.pw]',$url)) {
$variable = str_replace('https://mangovideo.pw/videos/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
echo "<div style=\"order:0;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on MangoVideo\" href=\"https://mangovideo.club/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\"><img src=\"https://favicon.drivevideo.xyz/mangovideo.png\" width=\"16\" height=\"16\"> MangoVideo</a></div>";
}
else
*/
//if (preg_match('[streamsb.net]',$url)) {
//$variable = str_replace('https://streamsb.net/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
/*
	$page = file_get_contents('https://sbembed1.com/'.$variable);
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {		
*/	
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamsb\" href=\"https://sbembed1.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamsb.png\" width=\"16\" height=\"16\"> Streamsb</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://streamsb.net/', 'https://streamsbdeleted.net/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}
	
//elseif (preg_match('[tubesb.com]',$url)) {
//$variable = str_replace('https://tubesb.com/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];

/*	$page = file_get_contents('https://sbembed1.com/'.$variable);
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {		
	*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamsb\" href=\"https://sbembed1.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamsb.png\" width=\"16\" height=\"16\"> Streamsb</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://tubesb.com/', 'https://streamsbdeleted.net/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}	
	
//elseif (preg_match('[cloudemb.com]',$url)) {
//$variable = str_replace('https://cloudemb.com/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];

/*	$page = file_get_contents('https://cloudemb.com/'.$variable);
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {		
	*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamsb\" href=\"https://cloudemb.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamsb.png\" width=\"16\" height=\"16\"> Streamsb</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://cloudemb.com/', 'https://streamsbdeleted.net/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}
	
//elseif (preg_match('[sbembed1.com]',$url)) {
//$variable = str_replace('https://sbembed1.com/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];

/*	$page = file_get_contents('https://sbembed1.com/'.$variable);
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {		
*/	
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamsb\" href=\"https://cloudemb.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamsb.png\" width=\"16\" height=\"16\"> Streamsb</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://sbembed1.com/', 'https://sbembed1deleted.net/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}
	
//elseif (preg_match('[sbembed2.com]',$url)) {
//$variable = str_replace('https://sbembed2.com/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];

/*	$page = file_get_contents('https://sbembed2.com/'.$variable);
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {		
*/	
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamsb\" href=\"https://cloudemb.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamsb.png\" width=\"16\" height=\"16\"> Streamsb</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://sbembed2.com/', 'https://sbembed2deleted.net/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}	
	
// elseif (preg_match('[v2.zplayer.live]',$url)) {
// $variable = str_replace('https://v2.zplayer.live/video/', '', $url);
// //$variable2 = explode("/",$variable); 
// //$variable = $variable2['0'];

// $u = "https://v2.zplayer.live/video/$variable";		
// $ch = curl_init($u);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
// $newquery = curl_exec($ch);		
		
// 	$code = 'Archivo no encontrado';
// 	if (strpos($newquery, $code) === FALSE) {		
	
// echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on ZPlayer\" href=\"https://v2.zplayer.live/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://zplayer.live/favicon.ico\" width=\"16\" height=\"16\"> ZPlayer</a></div>";
// } else {	
	
//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
// 		$variable1 = str_replace('https://v2.zplayer.live/', 'https://v2.zplayerdeleted.live/', $url);
//         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
//         $newPrice = str_replace(array($url),$variable1, $getPrice);
//         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;	
	
	
// 	}
// }	
/*	
elseif (preg_match('[http://streamon.to]',$url)) {
$variable = str_replace('http://streamon.to/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];

	$page = file_get_contents('https://streamon.to/e/'.$variable);
	$code = 'we are sorry, but the video you requested was not found';
	if (strpos($page, $code) === FALSE) {		
	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamOn\" href=\"https://streamon.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://streamon.to/favicon.ico\" width=\"16\" height=\"16\"> StreamOn</a></div>";
} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('http://streamon.to/', 'https://streamondeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	}
}
elseif (preg_match('[https://streamon.to]',$url)) {
$variable = str_replace('https://streamon.to/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];

	$page = file_get_contents('https://streamon.to/e/'.$variable);
	$code = 'we are sorry, but the video you requested was not found';
	if (strpos($page, $code) === FALSE) {		
	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamOn\" href=\"https://streamon.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://streamon.to/favicon.ico\" width=\"16\" height=\"16\"> StreamOn</a></div>";
} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('http://streamon.to/', 'https://streamondeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	}
}
*/	
//elseif (preg_match('[upvideo.to]',$url)) {
//$variable = str_replace('https://upvideo.to/v/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];

/*	$page = file_get_contents('https://upvideo.to/e/'.$variable);
	$code = 'This Video Could Not Be Found';
	if (strpos($page, $code) === FALSE) {		
	*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on UpVideo\" href=\"https://upvideo.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/upvideo.png\" width=\"16\" height=\"16\"> UpVideo</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://upvideo.to/', 'https://upvideodeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}

//elseif (preg_match('[xpornium]',$url)) {
//$variable = str_replace('https://xpornium.net/watch/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];

/*	$page = file_get_contents('https://upvideo.to/e/'.$variable);
	$code = 'This Video Could Not Be Found';
	if (strpos($page, $code) === FALSE) {		
	*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Xpornium\" href=\"https://xpornium.net/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/xpornium.png\" width=\"16\" height=\"16\"> Xpornium</a></div>";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://xpornium.net/', 'https://xporniumdeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	
	} */
//}	
	
	
/*	
elseif (preg_match('[onlystream.tv]',$url)) {
$variable = str_replace('https://onlystream.tv/', '', $url);			
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on OnlyStream\" href=\"https://onlystream.tv/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">OnlyStream</a></div>";

}
elseif (preg_match('[https://datoporn.co]',$url)) {
$variable = str_replace('https://datoporn.co/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on DatoPorn\" href=\"https://datoporn.co/embed-$variable-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Datoporn</a></div>";
}

	elseif (preg_match('[http://vshare.eu]',$url)) {
	 $variable = str_replace('http://vshare.eu/', '', $url);
	 $variable2 = str_replace('.htm', '', $variable);		
	 echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vshare\" href=\"https://vshare.eu/embed-$variable2.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Vshare</a></div>\n";
}
	elseif (preg_match('[https://vshare.eu]',$url)) {
	 $variable = str_replace('https://vshare.eu/', '', $url);
	 $variable2 = str_replace('.htm', '', $variable);
	 echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vshare\" href=\"https://vshare.eu/embed-$variable2.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Vshare</a></div>\n";
}	
elseif (preg_match('[https://vidoza.net]',$url)) {
$variable = str_replace('https://vidoza.net/', '', $url);
$variable2 = str_replace('.html', '', $variable);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidoza\" href=\"https://vidoza.net/embed-$variable2-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Vidoza</a></div>";
}
elseif (preg_match('[http://vidoza.net]',$url)) {
$variable = str_replace('http://vidoza.net/', '', $url);
$variable2 = str_replace('.html', '', $variable);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidoza\" href=\"https://vidoza.net/embed-$variable2-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Vidoza</a></div>";
}	

elseif (preg_match('[http://www.flashx.tv]',$url)) {
$variable = str_replace('http://www.flashx.tv/', '', $url);
$variable2 = str_replace('.html', '', $variable);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Flashx\" href=\"https://www.flashx.tv/embed-$variable2-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">FlashX</a></div>";
}

elseif (preg_match('[https://www.flashx.tv]',$url)) {
$variable = str_replace('https://www.flashx.tv/', '', $url);
$variable2 = str_replace('.html', '', $variable);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Flashx\" href=\"https://www.flashx.tv/embed-$variable2-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">FlashX</a></div>";
}

elseif (preg_match('[http://streamango.com]',$url)) {
$variable = str_replace('http://streamango.com/f/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamango\" href=\"https://streamango.com/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">Streamango</a></div>";
}

elseif (preg_match('[https://streamcherry.com]',$url)) {
$variable = str_replace('https://streamcherry.com/f/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamCherry\" href=\"https://streamcherry.com/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">StreamCherry</a></div>";
}
elseif (preg_match('[http://streamplay.to]',$url)) {
$variable = str_replace('http://streamplay.to/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamplay\" href=\"https://streamplay.to/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Streamplay</a></div>";
}

elseif (preg_match('[https://streamplay.to]',$url)) {
$variable = str_replace('https://streamplay.to/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamplay\" href=\"https://streamplay.to/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">Streamplay</a></div>";
}
	
elseif (preg_match('[verystream.com]',$url)) {
$variable = str_replace('https://verystream.com/stream/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on VeryStream\" href=\"https://verystream.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">VeryStream</a></div>";
}	


elseif (preg_match('[http://streamcherry.com]',$url)) {
$variable = str_replace('http://streamcherry.com/f/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamCherry\" href=\"https://streamcherry.com/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">StreamCherry</a></div>";
}
elseif (preg_match('[http://openload.co]',$url)) {
$variable = str_replace('http://openload.co/f/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Openload\" href=\"https://openload.co/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">Openload</a></div>";
}	
elseif (preg_match('[http://vidup.me]',$url)) {
$variable = str_replace('http://vidup.me/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidup\" href=\"https://vidup.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidUP</a></div>";
}

elseif (preg_match('[https://vidup.me]',$url)) {
$variable = str_replace('https://vidup.me/', '', $url);		
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidup\" href=\"https://vidup.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidUP</a></div>";
}
elseif (preg_match('[http://vidup.tv]',$url)) {
$variable = str_replace('http://vidup.tv/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidup\" href=\"https://vidup.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidUP</a></div>";
}

elseif (preg_match('[https://vidup.tv]',$url)) {
$variable = str_replace('https://vidup.tv/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidup\" href=\"https://vidup.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidUP</a></div>";
}	
elseif (preg_match('[http://vidup.io]',$url)) {
$variable = str_replace('http://vidup.io/', '', $url);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidup\" href=\"https://vidup.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidUP</a></div>";
}

elseif (preg_match('[https://vidup.io]',$url)) {
$variable = str_replace('https://vidup.io/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Vidup\" href=\"https://vidup.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidUP</a></div>";
}	
	elseif (preg_match('[https://vev.io]',$url)) {
$variable = str_replace('https://vev.io/', '', $url);		
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on VEV.IO\" href=\"https://vev.io/embed/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">TheVideo</a></div>";
}

	elseif (preg_match('[estream.to]',$url)) {
	 $variable = str_replace('http://estream.to/', '', $url);
	 $variable2 = str_replace('.html', '', $variable);
		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on EStream\" href=\"http://estream.to/embed-$variable2-732x465.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">estream.to</a></div>\n";
	}

	elseif (preg_match('[watchers.to]',$url)) {
	 $variable = str_replace('http://watchers.to/', '', $url);
	 $variable2 = str_replace('.html', '', $variable);
	echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on watchers\" href=\"http://watchers.to/embed-$variable2-732x465.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">watchers.to</a></div>\n";
	}  
		elseif (preg_match('[letwatch.to]',$url)) {
	 $variable = str_replace('http://letwatch.to/', '', $url);	 
	echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Letwatch\" href=\"http://letwatch.to/embed-$variable-732x465.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">LetWatch</a></div>\n";
	}
		elseif (preg_match('[videomega.co]',$url)) {
	 $variable = str_replace('https://www.videomega.co/', '', $url);	 
	echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on videomega\" href=\"https://www.videomega.co/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VideoMega</a></div>\n";
	}	
		elseif (preg_match('[watchvideo.us]',$url)) {
	 $variable = str_replace('http://watchvideo.us/', '', $url);
	 $variable2 = str_replace('.html', '', $variable);
	 echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on WatchVideo\" href=\"http://watchvideo.us/embed-$variable2-732x465.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">WatchVideo</a></div>\n";
}

elseif (preg_match('[https://vidfast.co]',$url)) {
$variable = str_replace('https://vidfast.co/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];	
$link = 'https://vidfast.co/embed-' . $variable;	
$variable1 = base64_encode($link);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on VidFast\" href=\"https://openloads.tk/goto/$variable1\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">VidFast</a></div>";
}	
elseif (preg_match('[prostream.to]',$url)) {
$variable = str_replace('https://prostream.to/', '', $url);
$variable2 = str_replace('.html', '', $variable);
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on prostream\" href=\"https://prostream.to/embed-$variable2.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\">ProStream</a></div>";
}
elseif (preg_match('[rapidgator.net]',$url)) {
$variable = str_replace('https://rapidgator.net/file/', '', $url);	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on RapidGator\" href=\"https://rapidgator.net/file/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://www.google.com/s2/favicons?domain=rapidgator.net\" width=\"16\" height=\"16\"> RapidGator</a></div>";
}

		elseif (preg_match('[okstream.cc]',$url)) {
	 $variable = str_replace('https://www.okstream.cc/', '', $url);	 
	echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on okstream\" href=\"https://www.okstream.cc/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://www.google.com/s2/favicons?domain=okstream.cc\" width=\"16\" height=\"16\"> OkStream</a></div>\n";
	}
	elseif (preg_match('[vidlox.me]',$url)) {
$variable = str_replace('https://vidlox.me/', '', $url);		
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on vidlox\" href=\"https://vidlox.me/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://www.google.com/s2/favicons?domain=vidlox.me\" width=\"16\" height=\"16\"> VidLox</a></div>";
}		
*/		
	
	elseif (preg_match('[mixdrop.co]',$url)) {
$variable = str_replace('https://mixdrop.co/f/', '', $url);

$u = "https://mixdrop.ag/f/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'WE ARE SORRY';
	if (strpos($newquery, $code) === FALSE) {			
		
		/*
	$page = file_get_contents('https://mixdrop.ag/f/'.$variable.'');
	$code = 'WE ARE SORRY';
	if (strpos($page, $code) === FALSE) {		
	*/	
echo "<div style=\"order:$randomRangeNumber1;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on mixdrop\" href=\"https://mixdrop.ag/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/mixdrop.png\" width=\"16\" height=\"16\"> MixDrop</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://mixdrop.co/f/', 'https://mixdropdeleted.co/f/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} 
}
	
	elseif (preg_match('[mixdrop.ag]',$url)) {
$variable = str_replace('https://mixdrop.ag/f/', '', $url);

$u = "https://mixdrop.ag/f/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'WE ARE SORRY';
	if (strpos($newquery, $code) === FALSE) {			
		
		/*
	$page = file_get_contents('https://mixdrop.ag/f/'.$variable.'');
	$code = 'WE ARE SORRY';
	if (strpos($page, $code) === FALSE) {		
	*/	
echo "<div style=\"order:$randomRangeNumber1;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on mixdrop\" href=\"https://mixdrop.ag/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/mixdrop.png\" width=\"16\" height=\"16\"> MixDrop</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://mixdrop.ag/f/', 'https://mixdropdeleted.ag/f/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} 
}	
	

	elseif (preg_match('[hexupload.net]',$url)) {
$variable = str_replace('https://hexupload.net/', '', $url);
		
$u = "https://hexupload.net/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'File Not Found';
	if (strpos($newquery, $code) === FALSE) {		
		
echo "<div style=\"order:$randomRangeNumber2;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on HexUpload\" href=\"https://hexupload.net/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/hexupload.png\" width=\"16\" height=\"16\"> HexUpload</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://hexupload.net/', 'https://hexuploaddeleted.net/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} 
}	
	
	
	elseif (preg_match('[vidguard.to]',$url)) {
$variable = str_replace('https://vidguard.to/v/', '', $url);
		
$u = "https://api.vidguard.to/v1/video/info?key=k28vgDGd47yMAlwEMg45J39X1KzLrNaW0jZ&id=$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'Video not found';
	if (strpos($newquery, $code) === FALSE) {		
		
echo "<div style=\"order:$randomRangeNumber2;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on vidguard\" href=\"https://vidguard.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/vidguard.png\" width=\"16\" height=\"16\"> VidGuard</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://vidguard.to/v/', 'https://vidguarddeleted.to/v/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} 
}
	
	elseif (preg_match('[vgembed.com]',$url)) {
$variable = str_replace('https://vgembed.com/v/', '', $url);
		
$u = "https://api.vidguard.to/v1/video/info?key=k28vgDGd47yMAlwEMg45J39X1KzLrNaW0jZ&id=$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);	
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = 'Video not found';
	if (strpos($newquery, $code) === FALSE) {		
		
echo "<div style=\"order:$randomRangeNumber2;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on vidguard\" href=\"https://vgembed.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/vidguard.png\" width=\"16\" height=\"16\"> VidGuard</a></div>";
		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://vgembed.com/v/', 'https://vgembeddeleted.com/v/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}
}	
	
	
	
//	elseif (preg_match('[filelions.to]',$url)) {
//$variable = str_replace('https://filelions.to/f/', '', $url);
/*		
	$page = file_get_contents('https://filelions.to/f/'.$variable.'');
	$code = 'WE ARE SORRY';
	if (strpos($page, $code) === FALSE) {		
	*/	
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on filelions\" href=\"https://filelions.to/v/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/filelions.png\" width=\"16\" height=\"16\"> FileLions</a></div>";
//		} else {  
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://filelions.to/f/', 'https://filelionsdeleted.to/f/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	} */
//}	
	
	
	
/*	elseif (preg_match('[evoload.io]',$url)) {
$variable = str_replace('https://evoload.io/v/', '', $url);		
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on evoload\" href=\"https://evoload.io/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/evoload.png\" width=\"16\" height=\"16\"> EvoLoad</a></div>";
} */

/*	
	elseif (preg_match('[https://vtube.network/d/]',$url)) {
	 $variable = str_replace('https://vtube.network/d/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
*/			
//	$page = file_get_contents('https://vtube.network/'.$variable.'');
//	$code = 'File Not Found';
//	if (strpos($page, $code) === FALSE) {
/*		
$u = "https://vtube.network/api/file/info?key=1801xbl90ymhzsdcm0i6&file_code=$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);

	$code = '"status":404';
	if (strpos($newquery, $code) === FALSE) {		
			
	echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on vtube\" href=\"https://vtbe.to/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/vtube.png\" width=\"16\" height=\"16\"> VTube</a></div>";
} else {
*/		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://vtube.network/', 'https://vtubedeleted.network/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
       update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}	
	
	elseif (preg_match('[vtube.network]',$url)) {
	 $variable = str_replace('https://vtube.network/', '', $url);
 $variable2 = str_replace('.html', '', $variable);
			
//	$page = file_get_contents('https://vtube.network/'.$variable.'');
//	$code = 'File Not Found';
//	if (strpos($page, $code) === FALSE) {
		
$u = "https://vtube.network/api/file/info?key=1801xbl90ymhzsdcm0i6&file_code=$variable2";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);

	$code = '"status":404';
	if (strpos($newquery, $code) === FALSE) {		
			
	echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on vtube\" href=\"https://vtbe.to/embed-$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/vtube.png\" width=\"16\" height=\"16\"> VTube</a></div>";
} else {
*/		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://vtube.network/', 'https://vtubedeleted.network/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
       update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}
	*/
		elseif (preg_match('[filemoon.sx]',$url)) {
	 $variable = str_replace('https://filemoon.sx/d/', '', $url);	 
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
$u = "https://filemoonapi.com/api/file/info?key=39205ri7ek03jod02i4ud&file_code=$variable";			
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);

	$code = ':404';
	if (strpos($newquery, $code) === FALSE) {			
			
			/*
	$page = file_get_contents('https://filemoon.sx/d/'.$variable.'');
	$code = 'Page not found';
	if (strpos($page, $code) === FALSE) {			
	*/		
	echo "<div style=\"order:$randomRangeNumber3;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on filemoon\" href=\"https://filemoon.sx/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/filemoon.png\" width=\"16\" height=\"16\"> FileMoon</a></div>";
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://filemoon.sx/', 'https://filemoondeleted.sx/', $url);
       $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}
	
		elseif (preg_match('[streamsilk.com]',$url)) {
	 $variable = str_replace('https://streamsilk.com/d/', '', $url);
			
$u = "https://streamsilk.com/p/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);			
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = 'Not Found';
	if (strpos($newquery, $code) === FALSE) {			
			
			
	/*		
	$page = file_get_contents('https://streamsilk.com/d/'.$variable.'');
	$code = 'Video Unavailable';
	if (strpos($page, $code) === FALSE) {			
	*/		
	echo "<div style=\"order:$randomRangeNumber9;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamSilk\" href=\"https://streamsilk.com/p/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamsilk.png\" width=\"16\" height=\"16\"> StreamSilk</a></div>\n"; 
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
	$variable1 = str_replace('https://streamsilk.com/', 'https://streamsilkdeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	} 	
	
	
	elseif (preg_match('[voe.sx]',$url)) {
$variable = str_replace('https://voe.sx/', '', $url);	
		
$u = "https://voe.sx/e/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);		
	$code = '404 - Not found';
	if (strpos($newquery, $code) === FALSE) {		
		
echo "<div style=\"order:$randomRangeNumber4;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on voe.sx\" href=\"https://voe.sx/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/voe.png\" width=\"16\" height=\"16\"> VOE</a></div>";
} else {

    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://voe.sx/', 'https://voedeleted.sx/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
	}	
}	
	
	
/*	
	elseif (preg_match('[www.embedgram.com]',$url)) {
	 $variable = str_replace('https://www.embedgram.com/v/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];

$u = "https://www.embedgram.com/v/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'File not exist or has been removed!';
	if (strpos($newquery, $code) === FALSE) {		
		
		
		echo "<div style=\"order:2;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on EmbedGram\" href=\"https://www.embedgram.com/v/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://www.embedgram.com/favicon-16x16.png\" width=\"16\" height=\"16\"> EmbedGram</a></div>\n";
} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://www.embedgram.com/', 'https://www.embedgramdeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	
	}	
*/	
	
//	elseif (preg_match('[tubeload.co]',$url)) {
//	 $variable = str_replace('https://tubeload.co/f/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
/*
$u = "https://tubeload.co/e/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'NOT FOUND';
	if (strpos($newquery, $code) === FALSE) {		
*/		
		
//		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on TubeLoad\" href=\"https://tubeload.co/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/tubeload.png\" width=\"16\" height=\"16\"> TubeLoad</a></div>\n";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://tubeload.co/', 'https://tubeloaddeleted.co/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	*/
//	}
	
//	elseif (preg_match('[redload.co]',$url)) {
//	 $variable = str_replace('https://redload.co/f/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
/*
$u = "https://redload.co/e/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'NOT FOUND';
	if (strpos($newquery, $code) === FALSE) {		
*/		
		
//		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on RedLoad\" href=\"https://redload.co/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/redload.png\" width=\"16\" height=\"16\"> RedLoad</a></div>\n";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://redload.co/', 'https://redloaddeleted.co/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	*/
//	}	
	
	
//	elseif (preg_match('[mvidoo.com]',$url)) {
//	 $variable = str_replace('https://mvidoo.com/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
/*
$u = "https://mvidoo.com/embed-".$variable.".html";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'File was deleted';
	if (strpos($newquery, $code) === FALSE) {		
*/		
		
//		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Mvidoo\" href=\"https://mvidoo.com/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/mvidoo.png\" width=\"16\" height=\"16\"> Mvidoo</a></div>\n";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://mvidoo.com/', 'https://mvidoodeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	*/
//	}		
	
	
	elseif (preg_match('[streamtape.com]',$url)) {
	 $variable = str_replace('https://streamtape.com/v/', '', $url);
//	 $variable2 = str_replace('', '', $variable);

$u = "https://streamtape.com/v/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);		
$newquery = curl_exec($ch);		
curl_close($ch);		
	$code = 'Video not found!';
	if (strpos($newquery, $code) === FALSE) {		
		
		
		echo "<div style=\"order:$randomRangeNumber5;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamTape\" href=\"https://streamtape.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamtape.png\" width=\"16\" height=\"16\"> StreamTape</a></div>\n";
} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://streamtape.com/v/', 'https://streamtapedeleted.com/v/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	
	}
	
	elseif (preg_match('[streamvid.net]',$url)) {
	 $variable = str_replace('https://streamvid.net/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];		

$u = "https://streamvid.net/embed-$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);		
		
	$code = 'not found';
	if (strpos($newquery, $code) === FALSE) {		
		
		
		echo "<div style=\"order:3;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamVid\" href=\"https://streamvid.net/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamvid.png\" width=\"16\" height=\"16\"> StreamVid</a></div>\n"; 
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://streamvid.net/', 'https://streamviddeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	
	}	
	
	
	
//	elseif (preg_match('[streamlare.com]',$url)) {
//	 $variable = str_replace('https://streamlare.com/v/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
/*
$u = "https://streamlare.com/v/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'Not Found';
	if (strpos($newquery, $code) === FALSE) {		
	*/	
		
//		echo "<div style=\"order:3;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamLare\" href=\"https://streamlare.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamlare.png\" width=\"16\" height=\"16\"> StreamLare</a></div>\n";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://streamlare.com/v/', 'https://streamlaredeleted.com/v/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	*/
//	}	
/*	
	elseif (preg_match('[videovard.sx]',$url)) {
	 $variable = str_replace('https://videovard.sx/v/', '', $url);
//	 $variable2 = str_replace('', '', $variable);

// $u = "https://videovard.sx/v/$variable";		
// $ch = curl_init($u);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
// $newquery = curl_exec($ch);		
		
// 	$code = 'The video will appear after';
// 	if (strpos($newquery, $code) === FALSE) {		
		
		
		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on VideoVard\" href=\"https://videovard.sx/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://videovard.sx/images/favicon/favicon-16x16.png\" width=\"16\" height=\"16\"> VideoVard</a></div>\n";
// } else {	
	
//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
// 		$variable1 = str_replace('https://videovard.sx/v/', 'https://streamtapedeleted.com/v/', $url);
//         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
//         $newPrice = str_replace(array($url),$variable1, $getPrice);
//         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;	
	
// 	}	
	}
	*/
	
//	elseif (preg_match('[highload.to]',$url)) {
//	 $variable = str_replace('https://highload.to/f/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
/*
$u = "https://highload.to/f/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'find the page you';
	if (strpos($newquery, $code) === FALSE) {		
	*/	
		
//		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on HighLoad\" href=\"https://highload.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/highload.png\" width=\"16\" height=\"16\"> HighLoad</a></div>\n";
//} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://highload.to/f/', 'https://highloaddeleted.to/f/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	*/
//	}	
	
/*	
	elseif (preg_match('[ninjastream.to]',$url)) {
	 $variable = str_replace('https://ninjastream.to/download/', '', $url);
//	 $variable2 = str_replace('', '', $variable);

$u = "https://ninjastream.to/download/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'File not found';
	if (strpos($newquery, $code) === FALSE) {		
		
		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on ninjastream\" href=\"https://ninjastream.to/watch/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://www.google.com/s2/favicons?domain=ninjastream.to\" width=\"16\" height=\"16\"> NinjaStream</a></div>\n";
} else {	

    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://ninjastream.to/download/', 'https://ninjastreamdeleted.to/download/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
		
	}	
	}

	elseif (preg_match('[sendfox.org]',$url)) {
	 $variable = str_replace('https://sendfox.org/', '', $url);
//	 $variable2 = str_replace('', '', $variable);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];	 

$u = "https://sendfox.org/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$newquery = curl_exec($ch);		
		
	$code = 'The requested resource was not found on this server.';
	if (strpos($newquery, $code) === FALSE) {		
		
		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on SendFox\" href=\"https://sendfox.org/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://sendfox.org/favicon-16x16.png\" width=\"16\" height=\"16\"> SendFox</a></div>\n";
} else {	
	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://sendfox.org/', 'https://sendfoxdeleted.org/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	
	}	
	}	*/
/*
		elseif (preg_match('[upstream.to]',$url)) {
	 $variable = str_replace('https://upstream.to/', '', $url);	
			
$u = "https://upstream.to/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);	
$newquery = curl_exec($ch);
	$code = 'File Not Found';
	if (strpos($newquery, $code) === FALSE) {			
			
	echo "<div style=\"order:$randomRangeNumber6;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on upstream\" href=\"https://upstream.to/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/upstream.png\" width=\"16\" height=\"16\"> Upstream</a></div>\n"; 
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://upstream.to/', 'https://upstreamdeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}	
	} 
	*/
/*	
		elseif (preg_match('[streamwish.com]',$url)) {
	 $variable = str_replace('https://streamwish.com/', '', $url);	
			
$u = "https://streamwish.com/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = 'File Not Found';
	if (strpos($newquery, $code) === FALSE) {			
			
	echo "<div style=\"order:$randomRangeNumber7;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamwish\" href=\"https://streamwish.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamwish.png\" width=\"16\" height=\"16\"> Streamwish</a></div>\n"; 
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://streamwish.com/', 'https://streamwishdeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}	*/
	
		elseif (preg_match('[embedwish.com]',$url)) {
	 $variable = str_replace('https://embedwish.com/', '', $url);	
			
$u = "https://streamwish.com/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = 'File Not Found';
	if (strpos($newquery, $code) === FALSE) {			
			
	echo "<div style=\"order:$randomRangeNumber7;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamwish\" href=\"https://streamwish.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamwish.png\" width=\"16\" height=\"16\"> Streamwish</a></div>\n"; 
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://embedwish.com/', 'https://streamwishdeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}	
	
/*	
		elseif (preg_match('[upload.do]',$url)) {
	 $variable = str_replace('https://upload.do/', '', $url);	
			
$u = "https://upload.do/api/file/info?key=330d3rvoy4afe3f7z8p&file_code=$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);			
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = '"status":404';
	if (strpos($newquery, $code) === FALSE) {			
			
	echo "<div style=\"order:$randomRangeNumber7;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Upload.DO\" href=\"https://upload.do/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/upload.png\" width=\"16\" height=\"16\"> Upload.DO</a></div>\n"; 
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://upload.do/', 'https://uploaddeleted.do/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	}	
*/		

/*	
	
		elseif (preg_match('[streamhub.to]',$url)) {
	 $variable = str_replace('https://streamhub.to/', '', $url);	
			
$u = "https://streamhub.to/api/file/info?key=1919rctef0amouauxk4h&file_code=$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);			
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = ':404';
	if (strpos($newquery, $code) === FALSE) {				
	*/		
	/*		
	$page = file_get_contents('https://streamhub.to/'.$variable.'');
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {			
	*/	/*	
	echo "<div style=\"order:$randomRangeNumber8;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamHub\" href=\"https://streamhub.to/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamhub.png\" width=\"16\" height=\"16\"> StreamHub</a></div>\n"; 
} else {
*/		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://streamhub.to/', 'https://streamhubdeleted.to/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}	
	}
*/	/*
		elseif (preg_match('[streamhub.gg]',$url)) {
	 $variable = str_replace('https://streamhub.gg/', '', $url);
			
$u = "https://streamhub.to/api/file/info?key=1919rctef0amouauxk4h&file_code=$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);			
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = ':404';
	if (strpos($newquery, $code) === FALSE) {		*/	
			
/*			
	$page = file_get_contents('https://streamhub.gg/'.$variable.'');
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {			
*/		/*	
	echo "<div style=\"order:$randomRangeNumber8;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamHub\" href=\"https://streamhub.gg/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamhub.png\" width=\"16\" height=\"16\"> StreamHub</a></div>\n"; 
} else {
*/		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://streamhub.gg/', 'https://streamhubdeleted.gg/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}	
	}	*/
	
//		elseif (preg_match('[guccihide.com]',$url)) {
//	 $variable = str_replace('https://guccihide.com/w/', '', $url);	
			
/*	$page = file_get_contents('https://guccihide.com/w/'.$variable.'');
	$code = 'The file expired';
	if (strpos($page, $code) === FALSE) {			
*/			
//	echo "<div style=\"order:4;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamHide\" href=\"https://guccihide.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamhide.png\" width=\"16\" height=\"16\"> StreamHide</a></div>\n"; 
//} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://guccihide.com/', 'https://guccihidedeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}	*/	
//	} 
	
	
//			elseif (preg_match('[streamhide.com]',$url)) {
//	 $variable = str_replace('https://streamhide.com/w/', '', $url);	
			
/*	$page = file_get_contents('https://streamhide.com/w/'.$variable.'');
	$code = 'The file expired';
	if (strpos($page, $code) === FALSE) {			
*/			
//	echo "<div style=\"order:4;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on StreamHide\" href=\"https://streamhide.com/e/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamhide.png\" width=\"16\" height=\"16\"> StreamHide</a></div>\n"; 
//} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://streamhide.com/', 'https://streamhidedeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}	*/	
//	} 
	
	
		elseif (preg_match('[emturbovid.com]',$url)) {
	 $variable = str_replace('https://emturbovid.com/d/', '', $url);
			
$u = "https://emturbovid.com/t/$variable";		
$ch = curl_init($u);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);			
$newquery = curl_exec($ch);
curl_close($ch);			
	$code = 'Video Unavailable';
	if (strpos($newquery, $code) === FALSE) {			
			
			
	/*		
	$page = file_get_contents('https://emturbovid.com/t/'.$variable.'');
	$code = 'Video Unavailable';
	if (strpos($page, $code) === FALSE) {			
	*/		
	echo "<div style=\"order:$randomRangeNumber9;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on TurboViPlay\" href=\"https://emturbovid.com/t/$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/turboviplay.png\" width=\"16\" height=\"16\"> TurboViPlay</a></div>\n"; 
} else {
		
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
	$variable1 = str_replace('https://emturbovid.com/', 'https://emturboviddeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
		
	}		
	} 	
	

/*	
elseif (preg_match('[https://clipwatching.com]',$url)) {
$variable = str_replace('https://clipwatching.com/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];

	$page = file_get_contents('https://highstream.tv/embed-'.$variable.'-658x400.html');
	$code = 'File was deleted';
	if (strpos($page, $code) === FALSE) {	
	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on clipwatching\" href=\"https://highstream.tv/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" target=\"_blank\"><img src=\"https://clipwatching.com/favicon.ico\" width=\"16\" height=\"16\"> Clipwatching</a></div>";
} else {

    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://clipwatching.com/', 'https://highstreamdeleted.tv/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
	}
	
}	
	
elseif (preg_match('[aparat.cam]',$url)) {
$variable = str_replace('https://aparat.cam/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
	
	$page = file_get_contents('https://wolfstream.tv/embed-'.$variable.'-658x400.html');
	$code = 'File is no longer available as it expired or has been deleted.';
	if (strpos($page, $code) === FALSE) {	
	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on aparat\" href=\"https://wolfstream.tv/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" target=\"_blank\"><img src=\"https://www.google.com/s2/favicons?domain=aparat.cam\" width=\"16\" height=\"16\"> Aparat</a></div>";
} else {

    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://aparat.cam/', 'https://aparatdeleted.cam/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
	}	
}
	
	
	
elseif (preg_match('[https://highstream.tv]',$url)) {
$variable = str_replace('https://highstream.tv/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
	
	$page = file_get_contents('https://highstream.tv/embed-'.$variable.'-658x400.html');
	$code = 'File was deleted';
	if (strpos($page, $code) === FALSE) {	
	
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on HighStream\" href=\"https://highstream.tv/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" target=\"_blank\"><img src=\"https://highstream.tv/favicon.ico\" width=\"16\" height=\"16\"> HighStream</a></div>";
} else {

    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://highstream.tv/', 'https://highstreamdeleted.tv/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
	}
	
}
*/
/*	
elseif (preg_match('[wolfstream.tv]',$url)) {
$variable = str_replace('https://wolfstream.tv/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
	
	$page = file_get_contents('https://wolfstream.tv/'.$variable.'');
	$code = 'File Not Found';
	if (strpos($page, $code) === FALSE) {	
	
echo "<div style=\"order:$randomRangeNumber10;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on WolfStream\" href=\"https://wolfstream.tv/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" target=\"_blank\"><img src=\"https://www.google.com/s2/favicons?domain=wolfstream.tv\" width=\"16\" height=\"16\"> WolfStream</a></div>";
} else {

    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
		$variable1 = str_replace('https://wolfstream.tv', 'https://wolfstreamdeleted.tv/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;		
	}	
}	
*/	
	
	

// elseif (preg_match('[https://playtube.ws]',$url)) {
// $variable = str_replace('https://playtube.ws/', '', $url);
// $variable2 = explode("/",$variable); 
// $variable = $variable2['0'];

// 	$page = file_get_contents('https://playtube.ws/embed-'.$variable.'-658x400.html');
// 	$code = 'File is no longer available as it expired or has been deleted.';
// 	if (strpos($page, $code) === FALSE) {		
	
// echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on PlayTube\" href=\"https://playtube.ws/embed-$variable-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://playtube.ws/assets_new/img/favicon.svg\" width=\"16\" height=\"16\"> PlayTube</a></div>";
// } else {	
	
//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
// 		$variable1 = str_replace('https://playtube.ws/', 'https://playtubedeleted.ws/', $url);
//         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
//         $newPrice = str_replace(array($url),$variable1, $getPrice);
//         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;	
	
	
// 	}
// } 	
//elseif (preg_match('[https://youdbox.com]',$url)) {
//$variable = str_replace('https://youdbox.com/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
/*	
	$page = file_get_contents('https://yodbox.com/embed-'.$variable.'-658x400.html');
	$code = 'File was deleted';
	if (strpos($page, $code) === FALSE) {	
*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on youdbox\" href=\"https://yodbox.com/embed-$variable-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/yodbox.png\" width=\"16\" height=\"16\" alt=\"Watch $wpx_title - on YouDbox\"> Youdbox</a></div>";
//} else {	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://yodbox.com/', 'https://yodboxdeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	}	*/
//}

//elseif (preg_match('[https://youdbox.org]',$url)) {
//$variable = str_replace('https://youdbox.org/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
	
/*	$page = file_get_contents('https://yodbox.com/embed-'.$variable.'-658x400.html');
	$code = 'File was deleted';
	if (strpos($page, $code) === FALSE) {	
*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on youdbox\" href=\"https://yodbox.com/embed-$variable-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/yodbox.png\" width=\"16\" height=\"16\" alt=\"Watch $wpx_title - on YouDbox\"> Youdbox</a></div>";
//} else {	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://youdbox.org/', 'https://youdboxdeleted.org/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	}	*/
//}
	
//elseif (preg_match('[https://yodbox.com]',$url)) {
//$variable = str_replace('https://yodbox.com/', '', $url);
//$variable2 = explode("/",$variable); 
//$variable = $variable2['0'];
	
/*	$page = file_get_contents('https://yodbox.com/embed-'.$variable.'-658x400.html');
	$code = 'File was deleted';
	if (strpos($page, $code) === FALSE) {	
*/
//echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on youdbox\" href=\"https://yodbox.com/embed-$variable-658x400.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/yodbox.png\" width=\"16\" height=\"16\" alt=\"Watch $wpx_title - on YouDbox\"> Youdbox</a></div>";
//} else {	
    // The Query for all post
//    $args = array ( 'posts_per_page' => -1 );
//    $the_query = new WP_Query( $args );

    // The Loop to replace same link for all post
//    while ( $the_query->have_posts() ) :
//        $the_query->the_post();		
		
	// replacing dead link	
//         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://yodbox.com/', 'https://yodboxdeleted.com/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
        $newPrice = str_replace(array($url),$variable1, $getPrice);
        update_post_meta(get_the_ID(), $link_box, $newPrice);				
//    endwhile;	
	}	*/
//}	
/*	
elseif (preg_match('[videos.sh]',$url)) {
$variable = str_replace('https://videos.sh/', '', $url);
$variable2 = explode("/",$variable); 
$variable = $variable2['0'];
echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on videos\" href=\"https://videos.sh/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://www.google.com/s2/favicons?domain=videos.sh\" width=\"16\" height=\"16\"> VIDEOS</a></div>";
} 	
*/
/*	elseif (preg_match('[streamzz.to]',$url)) {
	 $variable = str_replace('https://streamzz.to/f', '', $url); */
//	 $variable2 = str_replace('', '', $variable);

// $u = "https://streamzz.to/f$variable";		
// $ch = curl_init($u);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
// //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);		
// $newquery = curl_exec($ch);		
		
// 	$code = 'File not found, sorry!';
// 	if (strpos($newquery, $code) === FALSE) {		
		
		
/*		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamzz\" href=\"https://streamzz.to/i$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamzz.png\" width=\"16\" height=\"16\"> Streamzz</a></div>\n"; */
// } else {	
	
//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
// 		$variable1 = str_replace('https://streamzz.to/f', 'https://streamzzdeleted.to/f', $url);
//         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
//         $newPrice = str_replace(array($url),$variable1, $getPrice);
//         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;	
	
// 	}	
/*	}
	elseif (preg_match('[streamz.cc]',$url)) {
	 $variable = str_replace('https://streamz.cc/f', '', $url); */
//	 $variable2 = str_replace('', '', $variable);

// $u = "https://streamzz.to/f$variable";		
// $ch = curl_init($u);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
// //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);		
// $newquery = curl_exec($ch);		
		
// 	$code = 'File not found, sorry!';
// 	if (strpos($newquery, $code) === FALSE) {		
		
		
/*		echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Streamzz\" href=\"https://streamzz.to/i$variable\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/streamzz.png\" width=\"16\" height=\"16\"> Streamzz</a></div>\n"; */
// } else {	
	
//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
// 		$variable1 = str_replace('https://streamzz.to/f', 'https://streamzzdeleted.to/f', $url);
//         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
//         $newPrice = str_replace(array($url),$variable1, $getPrice);
//         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;	
	
// 	}	
//	}	
/*		
elseif (preg_match('[netu.wiztube.xyz]',$url)) {
$variable = str_replace('https://netu.wiztube.xyz/f/', '', $url); 
*/	
/*
		
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {	
	*/	/*
		echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>";		
*/
 //} else {
		

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/*		$variable1 = str_replace('https://netu.wiztube.xyz/f/', 'https://netu.wiztubedeleted.xyz/f/', $url);
        $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;
			
 	}	*/ /*
}	
elseif (preg_match('[waaw.to]',$url)) {
$variable = str_replace('https://waaw.to/f/', '', $url);  */
/*	
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {
*/	/*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>"; */
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('https://waaw.to/f/', 'https://netu.wiztubedeleted.xyz/f/', $url);
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;			
 	}			*/ /*
 }
elseif (preg_match('[http://netu.tv]',$url)) {
$variable = str_replace('http://netu.tv/watch_video.php?v=', '', $url); */
/*	
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {
*/	 /*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>"; */
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('http://netu.tv/watch_video.php?v=', 'https://netu.wiztubedeleted.xyz/f/', $url);
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// ////    endwhile;			
 	}	*/	/*	
 }
elseif (preg_match('[https://netu.tv]',$url)) {
$variable = str_replace('https://netu.tv/watch_video.php?v=', '', $url); */
/*	
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {
*/	/*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>"; */
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('https://netu.tv/watch_video.php?v=', 'https://netu.wiztubedeleted.xyz/f/', $url);
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;			
 	}		*/	
/* }

elseif (preg_match('[http://waaw.tv]',$url)) {
$variable = str_replace('http://waaw.tv/watch_video.php?v=', '', $url); */	
/*	
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {	
*/	 /*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>";  */	
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('http://waaw.tv/watch_video.php?v=', 'https://netu.wiztubedeleted.xyz/f/', $url);
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;			
 	}			*/
/* }
elseif (preg_match('[https://waaw.tv/watch_video.php]',$url)) {
$variable = str_replace('https://waaw.tv/watch_video.php?v=', '', $url); */
/*
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {
	*/ /*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>"; */
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('https://waaw.tv/watch_video.php?v=', 'https://netu.wiztubedeleted.xyz/f/', $url);	
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;			
 	}		*/	/*
 }
elseif (preg_match('[https://waaw.tv/f/]',$url)) {
$variable = str_replace('https://waaw.tv/f/', '', $url); */
/*	
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {	
*/	/*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>"; */
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('https://waaw.tv/f/', 'https://netu.wiztubedeleted.xyz/f/', $url);		
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;			
 	}		*/	/*
 }
elseif (preg_match('[waaws.tk]',$url)) {
$variable = str_replace('https://waaws.tk/watch_video.php?v=', '', $url); */	
/*	
	$page = file_get_contents('https://netu.tv/api/file/list?key=5bb4ae2fb1f34bbbda4b54939fabf4cd&file_code='.$variable.'');
	$page1 = file_get_contents('https://netu.tv/api/file/list?key=007e39df7b42a0b5433fb84385f85ce6&file_code='.$variable.'');	
	$code = '{"status":200,"msg":"OK"}';
    $code1 = '{"status":200,"msg":"OK"}';
	if (strpos($page, $code) === FALSE || strpos($page1, $code1) === FALSE) {	
*/	/*
echo "<div style=\"order:$randomRangeNumber11;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Netu\" href=\"https://netu.wiztube.xyz/player/embed_player.php?vid=$variable&autoplay=yes\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\"><img src=\"https://favicon.drivevideo.xyz/netu.png\" width=\"16\" height=\"16\"> NETU</a></div>"; */
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );
// //    $the_query = new WP_Query( $args );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
// //         $price_key = 'bulk_linkss';
/* 		$variable1 = str_replace('https://waaws.tk/watch_video.php?v=', 'https://netu.wiztubedeleted.xyz/f/', $url);
         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
         $newPrice = str_replace(array($url),$variable1, $getPrice);
         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;			
 	}	*/	/*	
}	*/
// elseif (preg_match('[videobin.co]',$url)) {
// $variable = str_replace('https://videobin.co/', '', $url);
	
// 	$page = file_get_contents('https://videobin.co/embed-'.$variable.'.html');

// 	$code = 'Error. The video was deleted.';

// 	if (strpos($page, $code) === FALSE) {	
	
// echo "<div style=\"order:100;\" class=\"Rtable1-cell\"><a title=\"$wpx_title - on Videobin.co\" href=\"https://videobin.co/embed-$variable.html\" rel=\"nofollow\" onclick=\"loadInIframe(event)\" class=\"link\" class=\"selected\">// <img src=\"https://www.google.com/s2/favicons?domain=https://videobin.co\" width=\"16\" height=\"16\"> Videobin</a></div>";
// } else {

//     // The Query for all post
// //    $args = array ( 'posts_per_page' => -1 );

//     // The Loop to replace same link for all post
// //    while ( $the_query->have_posts() ) :
// //        $the_query->the_post();		
		
// 	// replacing dead link	
//         $price_key = 'bulk_linkss';
// 		$variable1 = str_replace('https://videobin.co/', 'https://videobindeleted.co/', $url);
//         $getPrice = get_post_meta( get_the_ID(), $link_box, true);
//         $newPrice = str_replace(array($url),$variable1, $getPrice);
//         update_post_meta(get_the_ID(), $link_box, $newPrice);				
// //    endwhile;	
// }
//  }
/* End hosts */


}

?>