NoPaste.pl
Już niedługo nowy layout i kilka niespodzianek...
| Nick: brak | Data dodania: 14.02.11 12:27:36 | Adres IP: 178.36.79.* |
- <?
-
- if($_GET['max']!="")
- {
-
- $link = '/<div class="title">(.*)</';
-
- $link2 = '/<a href="([^"]+)">/';
-
- $link3 = '/">([^"]+)</';
-
- $mb = '<div class="more"><b>([^"]+)</b></div>';
-
- $max = '15';
- $str=0;
-
- $sURLTpl = 'http://www.wrzuta.pl/szukaj/audio/'.plustxt($GET['q']).'/'.$GET['page'].'';
-
- $rC = curlinit();
- curlsetopt($rC, CURLOPTHEADER, 0);
- curlsetopt($rC, CURLOPTRETURNTRANSFER, 1);
- curlsetopt($rC, CURLOPTVERBOSE, 1);
- curlsetopt($rC, CURLOPTREFERER, 'www.wrzuta.pl');
- curlsetopt($rC, CURLOPTURL, sprintf($sURLTpl, urlencode($sQ)));
- $sData = curlexec($rC);
- curl_close($rC);
-
- pregmatchall($link, $sData, $aResults);
- $aResults = array_pop($aResults);
-
- $iletab = count($aResults);
-
- if($iletab>=1)
- {
-
- pregmatchall($mb, $sData, $l3);
- $l3 = array_pop($l3);
-
- foreach($aResults as $iKey) {
-
- $iKey=strreplace("/audio/","/sr/f/",$iKey);
- $iKey=strreplace('">','.mp3">',$iKey);
-
- pregmatchall($link2, $iKey, $l2);
- $l2 = array_pop($l2);
-
- pregmatchall($link3, $iKey, $l4);
- $l4 = array_pop($l4);
-
- $mbb='Czas: '.$l3[$str];
- $mbb=str_replace("</b> | <b>",", Rozmiar: ",$mbb);
- ?>
- <div style="width:680px;height:70px;float:left;">
- <b><? echo $l4[0]; ?></b><br>
-
- <? echo $mbb; ?><br><br><object type="application/x-shockwave-flash" data="player.swf" id="audioplayer1" height="24" width="290">
- <param name="movie" value="player.swf">
- <param name="FlashVars" value="playerID=1&loop=no&autostart=no&soundFile=<? echo $l2[0]; ?>">
- <param name="quality" value="high">
- <param name="menu" value="false">
- <param name="wmode" value="transparent">
- </object><br><DIV ALIGN="right"><a href="pobierz,<? echo base64_encode($l2[0]); ?>.html"><font size="2" face="Arial" color="white"><img src="download.png" border="0"></font><hr size="1" color="#ffd200">
- <font color="white" face="Arial" size="2"></font><br></a></div>
- <div style="width:620px;height:20px;float:left;">
- <?
- $str++;
- }
-
- echo'<center><table><tr><td>';if($GET['page']>=2){echo'<a class="dol" href="szukaj,'.plustxt($GET['q']).','.($GET['page']+1).','.$max.',html">...</a>';}else{echo'';}echo'&nbsp;</td><td>';
- for($i=1;$i<=$max;$i++)
- {
- if($GET['page']!=$i){echo'<a class="dol" href="szukaj,'.plustxt($GET['q']).','.$i.','.$max.'.html">'.$i.'</a>';}else{echo'<b>'.$i.'</b>';}echo", ";
- }
- echo'</td><td>&nbsp;';if($GET['page']<=($max-1)){echo'<a class="dol" href="szukaj,'.plustxt($GET['q']).','.($GET['page']+1).','.$max.'.html">...</a>';}else{echo'...';}echo'</td></tr></table></center><br>';
- }
-
- else
- {
- echo"<div class=\"brak_mp3\">";
- echo"<br />Nie ma takiej mp3 w naszej bazie.";
- echo"</div>";
-
- }
- }
- ?><br></div>