View file wapirate/xhtml/mp3.php

File size: 7.23Kb
<?php



include("head.php");



/////////////////////////////main

if($action=="main")

{

addonline(getuid_sid($sid),"Mp3 Albums!","");

  echo "<div><br/>Full Mp3 Albums!<br/></div>";



$url="http://vitalik.net.ru/byyfuvbgyvytfbsagbsudhcifnhwehdfnweydwewcjcueyeuhcfndhuhcdecwabedhcycbacsdchdsuhcaybawychdcsduycbbedyfc/index.wml";

preg_match("/^(https?:\/\/)?([^\/]*)(.*)/i", "$url", $matches);

$domain = "http://" . $matches[2];

$page = $matches[3];

$code = file_get_contents($domain.$page);



$start= strpos($code, "</p><small>");

$finish= strpos($code, "<a href=\"index2.wml\">Next</a>");

$length= $finish-$start;

$code=substr($code, $start, $length);

$newcode = preg_replace("/(href=\"?)(\/[^\"\/]+)/", "\\1" . $domain . "\\2", $code);







$newcode = str_replace("</p>","",$newcode);

$newcode = str_replace("<p>","",$newcode);

$newcode = str_replace("<small>","",$newcode);

$newcode = str_replace("</small>","",$newcode);

$newcode = str_replace("http://vitalik314.com/m/","mp3.php?action=album&amp;sid=$sid&amp;song=",$newcode);

$newcode = str_replace(".wml","",$newcode);

$newcode = str_replace("/index","",$newcode);

echo "<p align=\"center\">";

 echo "<img src=\"/smilies/dj.gif\" alt=\"*\"/><br/>";



  echo "<br/>";

echo "$newcode<br/><br/>";

echo "<a href=\"mp3.php?action=page2&amp;sid=$sid\">Next</a><br/>";

echo getfoot($sid,$folder);

exit(); 

}

/////////////////////////////////

if($action=="page2")

{

addonline(getuid_sid($sid),"Mp3 Albums!","");

  echo "<div><br/>Full Mp3 Albums!<br/></div>";



$url="http://vitalik.net.ru/byyfuvbgyvytfbsagbsudhcifnhwehdfnweydwewcjcueyeuhcfndhuhcdecwabedhcycbacsdchdsuhcaybawychdcsduycbbedyfc/index2.wml";

preg_match("/^(https?:\/\/)?([^\/]*)(.*)/i", "$url", $matches);

$domain = "http://" . $matches[2];

$page = $matches[3];

$code = file_get_contents($domain.$page);



$start= strpos($code, "</p><small>");

$finish= strpos($code, "<a href=\"index3.wml\">Next</a>");

$length= $finish-$start;

$code=substr($code, $start, $length);

$newcode = preg_replace("/(href=\"?)(\/[^\"\/]+)/", "\\1" . $domain . "\\2", $code);







$newcode = str_replace("</p>","",$newcode);

$newcode = str_replace("<p>","",$newcode);

$newcode = str_replace("<small>","",$newcode);

$newcode = str_replace("</small>","",$newcode);

$newcode = str_replace("http://vitalik314.com/m/","mp3.php?action=album&amp;sid=$sid&amp;song=",$newcode);

$newcode = str_replace(".wml","",$newcode);

$newcode = str_replace("/index","",$newcode);

echo "<p align=\"center\">";

 echo "<img src=\"/smilies/dj.gif\" alt=\"*\"/><br/>";

echo "Full Mp3 Albums!<br/>";

  echo "<br/>";

echo "$newcode<br/><br/>";

echo "<a href=\"mp3.php?action=main&amp;sid=$sid\">Previous</a> ... ";

echo "<a href=\"mp3.php?action=page3&amp;sid=$sid\">Next</a><br/>";

echo getfoot($sid,$folder);

exit(); 

}



/////////////////////////////////

if($action=="page3")

{

addonline(getuid_sid($sid),"Mp3 Albums!","");

  echo "<div><br/>Full Mp3 Albums!<br/></div>";



$url="http://vitalik.net.ru/byyfuvbgyvytfbsagbsudhcifnhwehdfnweydwewcjcueyeuhcfndhuhcdecwabedhcycbacsdchdsuhcaybawychdcsduycbbedyfc/index3.wml";

preg_match("/^(https?:\/\/)?([^\/]*)(.*)/i", "$url", $matches);

$domain = "http://" . $matches[2];

$page = $matches[3];

$code = file_get_contents($domain.$page);



$start= strpos($code, "</p><small>");



$finish= strpos($code, "<a href=\"http://vitalik.biz/m/2Pac-everyday/index.wml\">");

$length= $finish-$start;

$code=substr($code, $start, $length);

$newcode = preg_replace("/(href=\"?)(\/[^\"\/]+)/", "\\1" . $domain . "\\2", $code);



$newcode = str_replace("<a href=\"http://vitalik.biz\">Main</a>","",$newcode);

$newcode = str_replace("</p>","",$newcode);

$newcode = str_replace("<p>","",$newcode);

$newcode = str_replace("<small>","",$newcode);

$newcode = str_replace("</small>","",$newcode);

$newcode = str_replace("http://vitalik314.com/m/","mp3.php?action=album&amp;sid=$sid&amp;song=",$newcode);

$newcode = str_replace(".wml","",$newcode);

$newcode = str_replace("/index","",$newcode);

echo "<p align=\"center\">";

 echo "<img src=\"/smilies/dj.gif\" alt=\"*\"/><br/>";

echo "Full Mp3 Albums!<br/>";

  echo "<br/>";

echo "$newcode";

$url="http://vitalik.net.ru/byyfuvbgyvytfbsagbsudhcifnhwehdfnweydwewcjcueyeuhcfndhuhcdecwabedhcycbacsdchdsuhcaybawychdcsduycbbedyfc/index3.wml";

preg_match("/^(https?:\/\/)?([^\/]*)(.*)/i", "$url", $matches);

$domain = "http://" . $matches[2];

$page = $matches[3];

$code = file_get_contents($domain.$page);



$start= strpos($code, "<a href=\"http://vitalik.biz/m/2Pac-everyday/index.wml\">");





$finish= strpos($code, "<a href=\"http://vitalik.biz\">Main</a>");

$length= $finish-$start;

$code=substr($code, $start, $length);

$newcode = preg_replace("/(href=\"?)(\/[^\"\/]+)/", "\\1" . $domain . "\\2", $code);



$newcode = str_replace("<a href=\"http://vitalik.biz\">Main</a>","",$newcode);

$newcode = str_replace("<a href=\"","<a href=\"mp3.php?action=album2&amp;sid=$sid&amp;song=",$newcode);



$newcode = str_replace("</p>","",$newcode);

$newcode = str_replace("<p>","",$newcode);

$newcode = str_replace("<small>","",$newcode);

$newcode = str_replace("</small>","",$newcode);

$newcode = str_replace("http://vitalik314.com/m/","mp3.php?action=album&amp;sid=$sid&amp;song=",$newcode);

$newcode = str_replace(".wml","",$newcode);

$newcode = str_replace("/index","",$newcode);

echo "$newcode<br/>";



echo "<a href=\"mp3.php?action=page2&amp;sid=$sid\">Previous</a><br/>";

echo getfoot($sid,$folder);

exit(); 

}



/////////////////////////////////

if($action=="album")

{

addonline(getuid_sid($sid),"Mp3 Albums!","");

  echo "<head>";

  echo "<title>wapirate</title>";

  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"themes$bgi.php?sid=$sid\">";

  echo "</head>";

  echo "<body>";  

  echo "<div><br/>Full Mp3 Albums!<br/></div>";



$url="http://vitalik314.com/m/$song/index.wml";

preg_match("/^(https?:\/\/)?([^\/]*)(.*)/i", "$url", $matches);

$domain = "http://" . $matches[2];

$page = $matches[3];

$code = file_get_contents($domain.$page);



$start= strpos($code, "<p align=\"center\">");

$finish= strpos($code, "<a href=\"http://vitalik.biz\">Main</a>");

$length= $finish-$start;

$code=substr($code, $start, $length);

$newcode = preg_replace("/(href=\"?)(\/[^\"\/]+)/", "\\1" . $domain . "\\2", $code);





$newcode = str_replace("<img src=\"","<img src=\"http://vitalik314.com/m/",$newcode);

$newcode = str_replace("</p>","",$newcode);

$newcode = str_replace("<p>","",$newcode);

$newcode = str_replace("<small>","",$newcode);

$newcode = str_replace("</small>","",$newcode);

$newcode = str_replace("http://vitalik314.com/m/","mp3.php?action=album&amp;sid=$sid&amp;song=",$newcode);

$newcode = str_replace("<a href=\"","<a href=\"http://vitalik314.com/m/",$newcode);

$newcode = str_replace(".wml","",$newcode);

$newcode = str_replace("/index","",$newcode);

echo "<p align=\"center\">";

/* echo "<img src=\"/smilies/dj.gif\" alt=\"*\"/><br/>";

echo "Full Mp3 Albums!<br/>";*/

  echo "<br/>";

echo "$newcode<br/><br/>";

echo "<a href=\"mp3.php?action=main&amp;sid=$sid\">Back</a><br/>";

echo getfoot($sid,$folder);

exit(); 

}



?>