| $header2 = 'Cookie: remixsid='.$remixsid.';remixmid='.ID.'; remixemail='.urlencode(EMAIL).'; remixpass='.md5(PASS); |
| $curl2 = curl_init(); |
| curl_setopt($curl2, CURLOPT_URL, $url); |
| curl_setopt($curl2, CURLOPT_HTTPHEADER, $header2); |
| //curl_setopt($curl2, CURLOPT_HEADER, true); |
| curl_setopt($curl2, CURLOPT_POST, true); |
| curl_setopt($curl2, CURLOPT_TIMEOUT, 12); |
| $data = curl_exec($curl2); |
| curl_close($curl2); |
| for($i = $start; $i<$l; ++$i){ |
| $a[$i][1] = substr($a[$i][1],0,stripos($a[$i][1],")")); |
| $a[$i][1] = substr($a[$i][1],stripos($a[$i][1],",")+1); |
| $a1 = substr($a[$i][1],0,stripos($a[$i][1],",")); |
| $a[$i][1] = substr($a[$i][1],stripos($a[$i][1],",")+1); |
| $a2 = substr($a[$i][1],0,stripos($a[$i][1],",")); |
| $a[$i][1] = substr($a[$i][1],stripos($a[$i][1],",")+1); |
| $a3 = substr($a[$i][1],0,stripos($a[$i][1],",")); |
| $a3 = substr($a3, 1 , strlen($a3)-2); |
| } |
| while(stripos($data,"operate(") !== false){ |
| $i++; |
| $a[$i][1] = substr($data, stripos($data,"operate(") + 8, 100); |
| $data = substr($data, stripos($data,"operate(") + 50); |
| $a[$i][2] = substr($data, stripos($data,'<b id="performer')); |
| $a[$i][2] = substr($a[$i][2], stripos($a[$i][2],">")+1); |
| $a[$i][3] = substr($a[$i][2], stripos($a[$i][2],"<")); |
| $a[$i][2] = substr($a[$i][2], 0, stripos($a[$i][2],"<")); |
| $a[$i][3] = substr($a[$i][3], stripos($a[$i][3],'<span id="title')); |
| $a[$i][3] = substr($a[$i][3], stripos($a[$i][3],">")+1); |
| if($a[$i][3][0] == '<')$a[$i][3] = substr($a[$i][3], stripos($a[$i][3],">")+1); |
| $a[$i][4] = substr($a[$i][3], stripos($a[$i][3],"<")); |
| $a[$i][3] = substr($a[$i][3], 0, stripos($a[$i][3],"<")); |
| $a[$i][4] = substr($a[$i][4], stripos($a[$i][4],'<div class="duration">')+22); |
| $a[$i][4] = substr($a[$i][4], 0, stripos($a[$i][4],"<")); |
| } |
| curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); |
| curl_setopt ($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); |