Subversion Repositories cheapmusic

Rev

Rev 50 | Rev 57 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 53
Line 232... Line 232...
232
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
232
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
233
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
233
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
234
        curl_setopt($ch, CURLOPT_REFERER, $url);
234
        curl_setopt($ch, CURLOPT_REFERER, $url);
235
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
235
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
236
        curl_setopt($ch, CURLOPT_POST, 1);
236
        curl_setopt($ch, CURLOPT_POST, 1);
-
 
237
        $result = curl_exec ($ch);
237
        $result = json_decode(curl_exec ($ch));
238
        $result = json_decode($result);
238
 
-
 
239
        curl_close($ch);
239
        curl_close($ch);
240
 
240
 
241
        if (empty($result)) {
241
        if (empty($result)) {
242
            return false;
242
            return false;
243
        }
243
        }