Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $text = "http://mp3.zing.vn/download/vip/song/";
- $code = $_POST['link'];
- $len = strlen($code);
- if(substr($code,0,11) == "mp3.zing.vn" or substr($code,0,18) == "http://mp3.zing.vn" or substr($code,0,19) == "https://mp3.zing.vn"){
- $y=0;
- $c = 3;
- if (substr($code,0,7) == "http://" or substr($code,0,8) == "https://"){
- $c = 5;}
- for($i = 0; $i <= $len-1 ; $i++){
- if (ord($code[$i]) == 47) {
- $y+=1;
- }
- if ($y==$c){$y = $i+1;
- break;}
- }
- $datacd = substr($code,$y,$len-$y);
- $result = $text . $datacd;
- }
- elseif(substr($code,0,13) == "mp3.m.zing.vn" or substr($code,0,20) == "http://mp3.m.zing.vn" or substr($code,0,21) == "https://mp3.m.zing.vn"){
- for($i = 0; $i <= $len-1 ; $i++){
- if (ord($code[$i]) == 61) {
- $y=$i+1;
- break;
- }
- }
- $result = $text . substr($code, $y,8);
- }
- else
- {
- $result = "http://www.jackerata.host56.com/sai.html";
- }
- header("Location: {$result}");
- ?>
Add Comment
Please, Sign In to add comment