Music reporter blogging tool source codes

Discussion in 'Support & Feedback' started by abuzant, Jul 4, 2006.

  1. #1
    Hello everybody,

    While i am not here to hack, i just wanted to share the experience with some lines of code that i'v written before. As you see in my information, it appears i am listening to some music now while i actually am not litening to any.

    This code snippet (described here) will help you do the same thing.

    
    <?php
    /*
        COPYRIGHT OIF ABUZANT.COM
        CODED FOR EDUCATIONAL/TEST PURPOSES ONLY
        REMOVING THESE LINES MEANS BIG TROUBLE - 2006
    */
    $forum["username"] = "your_username";
    $forum["password"] = "your_password";
    $radio_station = "http://207.200.96.231:8006/";
    
    ob_start("sc");
    getUSD();
    ob_end_flush();
    
    function sc($b)
    {
        $parts = explode("</a></b></td></tr><tr><td width=100 nowrap><font class=default>Current Song: </font></td><td><font class=default><b>", $b);
        $needed = $parts[1];
        $parts = explode("</b></td></tr></table><br><table cellpadding=0 cellspacing=0 border=0 width=100%>", $needed);
        $needed = $parts[0];
    
        if($needed == "" || strlen($needed) < 6) $needed = "Zohar Argov - Raya";
            $durl = "http://forums.digitalpoint.com/itunes.php?u={$forum["username"]}&p={$forum["password"]}&song=" . urlencode($needed);
            return reportIT($durl);
    }
    
    function getUSD() 
    { 
        global $radio_station;
        $ch = curl_init(); 
        curl_setopt ($ch, CURLOPT_URL,$radio_station);
        curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); 
        curl_setopt ($ch, CURLOPT_TIMEOUT, 6); 
        $result = curl_exec ($ch); 
        curl_close($ch); 
    }
    
    function reportIT($urlxx) 
    { 
        $ch = curl_init(); 
        curl_setopt ($ch, CURLOPT_URL,$urlxx);
        curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); 
        curl_setopt ($ch, CURLOPT_TIMEOUT, 6); 
        $result = curl_exec ($ch); 
        curl_close($ch); 
    }
    ?>
    
    PHP:
    Good luck, Ruslan
     
    abuzant, Jul 4, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Just as a FYI, if people start using it for anything other than what they are listening to (spam for example), their account will be immediately/permanently terminated here without warning.
     
    digitalpoint, Jul 4, 2006 IP
  3. abuzant

    abuzant Well-Known Member

    Messages:
    956
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    140
    #3
    I Agree, people please understand that i am not responsible for what you use this code for.. Provided here as proof of concept ONLY.
     
    abuzant, Jul 4, 2006 IP