If there is link from urlcash or linkbucks and we feel wasting time to open every link, try this for convert to direct link.
http://ars187.07x.net/
http://ars187.07x.net/
Now thats cool, I would love to see the underlying PHP source for that,
<?
function check($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
$res = curl_exec($ch);
curl_close($ch);
unset($ch);
return $res;
}
function result($url){
$html = strtolower($url);
if(preg_match_all('/<a\s[^>]*href=([\"\']??)([^" >]*?)\\1([^>]*)>/siU', $html, $link, PREG_SET_ORDER)){
foreach($link as $links)
{
if(eregi("megaupload", $links[2])) {
$link[0]= $links[2];
}
if(eregi("rapidshare", $links[2])) {
$link[0]= $links[2];
}
// ....and another link
}
}
return $link[0];
}
//=======================
$url="http://......urlcash.net"; // or "http://www.linkbucks.com/link/....";
$url = check($url);
$url = result($url);
echo $url;
?>
While that is cool it is still an unnecessary step to take if the torrent file and or cover scan is posted. I'm still going through with my previously posted plan to begin banning members who post them starting tomorrow. I want akiba a LinkTrash free zone and will do what I can do make it so.
desioner