|
|
|
@ -1,21 +1,26 @@
|
|
|
|
|
<?php header('Cache-Control: no-cache'); ?>
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<title>China Highlights Media Center</title>
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
html,body,iframe {
|
|
|
|
|
html,
|
|
|
|
|
body,
|
|
|
|
|
iframe {
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iframe {
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function SetReturnValue(s) {
|
|
|
|
@ -28,7 +33,6 @@
|
|
|
|
|
window.parent.close();
|
|
|
|
|
}
|
|
|
|
|
this.opener.callBack = window.opener ? window.opener.CallBack : window.parent.CallBack;
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<?php
|
|
|
|
|
$media_site_code = 'ch';
|
|
|
|
@ -92,7 +96,8 @@ function is_remote_ip()
|
|
|
|
|
//print_r($_SERVER);
|
|
|
|
|
echo '<!--' . $ip_list . '-->';
|
|
|
|
|
|
|
|
|
|
if (stripos($ip_list,'202.103.68.34')!==false
|
|
|
|
|
if (
|
|
|
|
|
stripos($ip_list, '202.103.68.34') !== false
|
|
|
|
|
|| stripos($ip_list, '221.7.151.39') !== false
|
|
|
|
|
|| stripos($ip_list, '221.7.151.37') !== false
|
|
|
|
|
|| stripos($ip_list, '221.7.151.41') !== false
|
|
|
|
@ -122,8 +127,11 @@ switch ($_SERVER['SERVER_NAME']){
|
|
|
|
|
break;
|
|
|
|
|
case 'origin-int.mycht.cn':
|
|
|
|
|
$base_url = 'https://int.mycht.cn';
|
|
|
|
|
case 'gh-int.mycht.cn':
|
|
|
|
|
$base_url = 'https://int.mycht.cn';
|
|
|
|
|
break;
|
|
|
|
|
default:$base_url='https://'.$_SERVER['HTTP_HOST'];
|
|
|
|
|
default:
|
|
|
|
|
$base_url = 'https://' . $_SERVER['HTTP_HOST'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
@ -139,4 +147,5 @@ switch ($_SERVER['SERVER_NAME']){
|
|
|
|
|
<iframe id="test" frameborder="0" src="https://video.chtcdn.com/OutputApp/searchpicture.aspx?<?php echo ($rwidth); ?>webcode=<?php echo $media_site_code; ?>&lgc=<?php echo $_GET['site_lgc']; ?>&apptype=infomation&WebUrl=<?php echo isset($_GET['WebUrl']) ? $_GET['WebUrl'] : false; ?>&redirecturl=<?php echo $base_url; ?>/media/transitval.php"> </iframe>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|