Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: ZippyShare pleyer'is

Parašė Wasiulis· 2010 Lie. 30 01:07:47
#2

atsidaryk maincore.php

Susiradi: (76 eilute)

// MySQL database functions
function dbquery($query) {
 $result = @mysql_query($query);
 if (!$result) {
  echo mysql_error();
  return false;
 } else {
  return $result;
 }
}




Po sito iterpti:

function zip($urla) {

if(!preg_match('/locale/i', $urla)) {$idx = explode('/', $urla); $idx=$idx[4]; } else {$idx = explode('=', $urla);
$idx=$idx[2]; }
$urla = explode('.', $urla);
$urla = str_replace('http://www', '', $urla['0']);

return "<embed allowscriptaccess='never' src='http://www.zippyshare.com/mediaplayer/mediaplayer.swf?file=http://www".$urla.".zippyshare.com/downloadMusic%3Fkey%3D".$idx."f3%26time%3D1253458883&amp;type=flv' menu='false' quality='high' name='mp3player' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' width='220' border='0' height='20'>";

}





eik i downloads.php
Kur nori, kad butu perklasua iterpk koda:
if(preg_match('/zippyshare/i' , $data['download_url'])){
     echo zip($data['download_url']);
     }





Viskas, instaliacija baigta :)