need help

Discussion in 'PHP' started by honeywraich, Nov 4, 2012.

  1. #1
    hey i have php script which clone of m.raag.fm
    http://djsongz.com/music/raag/


    how do i hide cover frm that script

    and when i trying to download some songs it copied the songs in kb in my server

    want to make like this one
    http://www.hyperjatt.com/

    <?
    include 'conf.php';
    
       function pick($start,$stop,$from){
    $from=explode($start,$from);
    $from=explode($stop,$from[1]);
    $from=$from[0];
    return $from;
    }
     $link='http://m.raag.fm';
     if(isset($_GET['search_string']))
    {
      $link='http://m.raag.fm/search.php?search_string='.$_GET['search_string'].'&search_type='.$_GET['search_type'];
    }
    if(isset($_GET['lk']))
    {
    $lkk=str_replace('(_)','&',str_replace('|','?',$_GET['lk']));
    $link='http://m.raag.fm/'.$lkk;
    }
    if(stristr($link,'play.php'))
    {
    $namee='data/'.rand(333,99999).'('.$sitename.').mp3';
    copy($link,$namee);
    $file=$namee;
    include 'id3.php';
    header('Location: '.$namee);
    //echo '<a href="'.$name.'">Download Now</a>';
    exit;
    
    }
    
    
     function startup($title)
     {
    include 'header.php';
     }
     function ender(){
     @include 'footer.php';
     }
    startup(" Best Mobile Downloads Free");
    ?>
    <form action="?" method="get">
    <div class="dr">
    
    
    <input type="text" name="search_string" size="25" value=""/>
    &nbsp; Type:
    <select name="search_type" />
    <option value=singer >Artist</option>
    <option value=album >Album</option>
    <option value=song >Song Name</option>
    </select>
    &nbsp;&nbsp;<input type="submit" value="Search">
    </div></form>
    
    <?php
    ini_set('user_agent','Mozilla/5.0(SymbianOS/9.2; U; Series60/3.1 NokiaN81/10.0.035; Profile/MIDP-2.0 Configuration/CLDC-1.1;) AppleWebKit/413(KHTML, like Gecko)Safari/413');
    $ll= file_get_contents($link)  ;
    
       $pattern='|href="/(.*)">(.*)</a>|U';
    
    $h1tags = preg_match_all($pattern,$ll,$type,PREG_PATTERN_ORDER);
    
    $c=count($type[1]);
    for($s=0; $s<$c; $s++)
    {
    $repwith='index.php?lk='.str_replace('&','(_)',str_ireplace('?','|',$type[1][$s]));
     if($type[1][$s]!='')
     $ll=str_replace('/'.$type[1][$s],$repwith,$ll);
    }
    $pattern='|href=/(.*)>(.*)</a>|U';
    $h1tags = preg_match_all($pattern,$ll,$type,PREG_PATTERN_ORDER);
    $c=count($type[1]);
    for($s=0; $s<$c; $s++)
    {
    $repwith='index.php?lk='.str_replace('&','(_)',str_ireplace('?','|',$type[1][$s]));
     if($type[1][$s]!='')
     $ll=str_replace('/'.$type[1][$s],$repwith,$ll);
    }
    $ll=str_replace('/images/mraagfm-logo.gif',$logo,$ll);
    $ll=str_ireplace('Raag.Fm',$sitename,$ll);
    $ll=str_ireplace('width="240" height="30"','',$ll);
    $ll=str_ireplace('music streaming IPRS licensed.','',$ll);
    $ll = preg_replace('/<td><img alt="(.*?)" src="(.*?)" width="150" height="200" \/\><\/td\>/i','',$ll);
     //<td class="style39" height="35">&nbsp;<a class="style19" href="index.php?lk=tag-1-Punjabi">Punjabi</a></td>
    //$ll= '<table style="width: 100%" cellpadding="0" cellspacing="0"><tr><td class="style39" height="35">&nbsp;<a class="style19" href="index.php?lk=tag-1-Punjabi">Punjabi</a></td>'.pick('lk=tag-1-Punjabi">Punjabi</a></td>',"</ol></div></td></tr>",$ll).'</ol></div></td></tr>';
     $ll='<table style="width: 100%" cellpadding="0" cellspacing="0"><tr>'.pick('Blog</a></td>','href="index.php?lk=search.php">Search</a></td>',$ll).'href="index.php?lk=search.php">';
     $ll=str_ireplace('<td class="style39" height="35">&nbsp;<a class="style19" href="index.php?lk=search.php">','',$ll);
     $ll=preg_replace('/<tr><td><!-- google_afm:(.*?)<\/td><\/tr>/is','',$ll);
     //;<a class=style2 href=index.php?lk=play.php|song=406625(_)ext=mp3>Deut Taare</a>
     //index.php?lk=play.php?song='.$link[$s][1].'&ext=mp3&title=></a>|song=406626(_)ext=mp3>Kiki Darshan</a>
    // $ll=preg_replace('/song=(.*?)(_)ext=mp3>(.*?)<\/a>/is','mm',$ll);
    
    echo $ll;
    
    ?>
    </table>
    <? ender()?>
    Code (markup):
     
    honeywraich, Nov 4, 2012 IP