亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - php detection URL jump page
漂亮男人
漂亮男人 2017-05-16 12:02:09
0
2
635

First look at a js code:

MacPlayer.Html = '<iframe width="100%" height="'+MacPlayer.Height+'" allowTransparency="true" frameborder="0" scrolling="no" src="http://www.qbzhan.com/chaojikan.php?url='+MacPlayer.PlayUrl+'"></iframe>';
MacPlayer.Show();

http://www.qbzhan.com/chaojik...

Requirements:

Write a piece of php code to detect the content after the equal sign:

The php code that

refers to is: http://www.qbzhan.com/chaojik...

If the access address is:
http://www.qbzhan.com/chaojik...

Then let php jump to: New connection:
http://www.qbzhan.com/iqi.php...
That is:
http://www.qbzhan.com /iqi.php...

漂亮男人
漂亮男人

reply all(2)
劉奇

Your URLs have all become links, please modify them, otherwise I won’t understand what question you are asking

小葫蘆

Solved, thank you

<?php
$url=empty($_GET['vid'])?$_GET['url']:$_GET['vid'];
$needleA= 'acfun.cn'; $needleB= 'iqiyi.com'; $needleC= 'v.qq.com'; $needleD= 'youku.com'; $needleE= 'toutiao.com';
     if(strpos($url, $needleA)>0){echo "<script>window.onload=function(){location.;}
else if(strpos($url, $needleB)>0){echo "<script>window.onload=function(){location.;}
else if(strpos($url, $needleC)>0){echo "<script>window.onload=function(){location.;}
else if(strpos($url, $needleD)>0){echo "<script>window.onload=function(){location.;}
else if(strpos($url, $needleE)>0){echo "<script>window.onload=function(){location.;}
else{echo "<script>window.onload=function(){location.;}
?>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template