Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ZippyShare {
- public function getURL($url) {
- $url = str_replace("/file.html", "", explode("/v/", $url));
- $url = $url['0']."/downloadMusic%3Fkey%3D".$url['1']."ay";
- return $url;
- }
- public function musicPlayer($url) {
- $url = $this->getURL($url);
- $player = '<embed
- width="440"
- height="20"
- type="application/x-shockwave-flash"
- src="http://api.zippyshare.com/api/mediaplayer/mediaplayer.swf"
- style=""
- id="mpl"
- name="mpl"
- quality="high" allowfullscreen="false"
- flashvars="height=20&width=440&file='.$url.'&volume=100&autostart=false&frontcolor=0xffffff&backcolor=0x000000&lightcolor=0xffffff&type=flv">
- ';
- return $player;
- }
- }
- $music = new ZippyShare;
- echo $music->musicPlayer('http://www48.zippyshare.com/v/70282946/file.html');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement