fix gh-int

hotfix/paypal-note
LMR 3 years ago
parent 1046b4fd95
commit 7713d8d883

@ -36,7 +36,7 @@ switch ($_SERVER['SERVER_NAME']) {
$base_url = 'https://int.mycht.cn';
break;
case 'gh-int.mycht.cn':
$base_url = 'https://gh-int.mycht.cn';
$base_url = 'https://int.mycht.cn';
break;
case 'origin-gh.mycht.cn':
$base_url = 'https://gh.mycht.cn';

@ -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>

@ -108,7 +108,7 @@ switch ($sitecode) {
//文件上传目录,使用相对路径,在文件夹中建立虚拟目录指向真实文件夹
//创建指向目录 mklink /D D:\wwwroot\uploader-file\gh\image D:\wwwroot\origin-www.globalhighlights.com\image
//需要移出项目文件夹防止FTP访问到防止误删
if ('origin-int.mycht.cn' == $_SERVER["SERVER_NAME"] || 'origin-gm.mycht.cn' == $_SERVER["SERVER_NAME"]) {
if ('gh-int.mycht.cn' == $_SERVER["SERVER_NAME"] || 'origin-gm.mycht.cn' == $_SERVER["SERVER_NAME"]) {
// 国际站和德语站不需要更改目录
$site_upload_dir = dirname(__FILE__) . ('/userfiles/') . $sitecode;
} else {

Loading…
Cancel
Save