MP3 Search script not working anymore
sad
sad
![:(](https://coding-talk.com/core/images/smilies/sad.gif)
<?php
include("head.php");
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');
$headere = array ('Accept-Language: en-us,en;q=0.7,de-de;q=0.3', 'Accept: text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_GET['url'];
$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);
$content = file_get_contents($url);
$content=(string) $content;
$link=explode("Html5Player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];
function fsize($url){
$headers = get_headers ( $url, 1 );
$size=round($headers['Content-Length'] / (1024*1024), 2);
if($size){
return $size.' Mb';
}
return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';
if(isset($_GET['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
if(eregi($vid, $hasil)) { $media = 'video'; }
}
echo '<meta name="robots" content="noindex, nofollow, noarchive">';
echo '<br>To download file <font color="blue"><b>'.$name.'</b></font> please '.$final;
echo '<br /><a href="index.php">Search Again</a><br />';
# if(eregi('.mp3', $final)) {
if($media == 'music') {
echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
# echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
}
}
include("foot.php");
?>
<?php
include("head.php");
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');
$headere = array ('Accept-Language: en-us,en;q=0.7,de-de;q=0.3', 'Accept: text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_GET['url'];
$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);
$content = file_get_contents($url);
$content=(string) $content;
$link=explode("Html5Player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];
function fsize($url){
$headers = get_headers ( $url, 1 );
$size=round($headers['Content-Length'] / (1024*1024), 2);
if($size){
return $size.' Mb';
}
return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';
if(isset($_GET['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
if(eregi($vid, $hasil)) { $media = 'video'; }
}
echo '<meta name="robots" content="noindex, nofollow, noarchive">';
echo '<br>To download file <font color="blue"><b>'.$name.'</b></font> please '.$final;
echo '<br /><a href="http://coding-talk.com/forum.php">Search Again</a><br />';
# if(eregi('.mp3', $final)) {
if($media == 'music') {
echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
# echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
}
}
include("foot.php");
?>
<?php
include("head.php");
ini_set('user_agent', 'mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.9.2) gecko/20100115 firefox/3.6 (.net clr 3.5.30729)');
$headere = array ('accept-language: En-us,en;q=0.7,de-de;q=0.3', 'accept: Text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_get['url'];
$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);
$content = file_get_contents($url);
$content=(string) $content;
$link=explode("html5player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];
function fsize($url){
$headers = get_headers ( $url, 1 );
$size=round($headers['content-length'] / (1024*1024), 2);
if($size){
return $size.' mb';
}
return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';
if(isset($_get['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
if(eregi($vid, $hasil)) { $media = 'video'; }
}
echo '<meta name="robots" content="noindex, nofollow, noarchive">';
echo '<br>to download file <font color="blue"><b>'.$name.'</b></font> please '.$final;
echo '<br /><a href="http://coding-talk.com/forum.php">search again</a><br />';
# if(eregi('.mp3', $final)) {
if($media == 'music') {
echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audiourl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playermode=embedded" />';
# echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audiourl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playermode=embedded" />';
}
}
include("foot.php");
?>
Comment