1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
| $i = -1; | 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],"<")); | } | | $l = $i; | $bgtr = "#FFFFFF"; | for($i = 0; $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); | | echo encoding($a[$i][2], 'UTF-8').' - '.encoding($a[$i][3], 'UTF-8').' ('.encoding($a[$i][4], 'UTF-8').')<br/>'; | echo '<a href="download.php?a1='.$a1.'&a2='.$a2.'&a3='.$a3.'&a4='.urlencode($a[$i][2]).' - '.urlencode($a[$i][3]).'">скачать</a><br/>'; | | } |
|