作者 ZhengBing He

修改文案

@@ -213,7 +213,7 @@ require_once('./admin-header.php'); @@ -213,7 +213,7 @@ require_once('./admin-header.php');
213 <div class="wrap"> 213 <div class="wrap">
214 <?php if ( $post_type == 'ad_img' | $post_type == 'about' | $post_type == 'lianxi' | $post_type == 'sns' | $post_type == 'title' | $post_type == 'transall' | $post_type == '3code' | $post_type == 'home'| $post_type == 'pro_shuxing'| $post_type == 'pro_detail') : ?> 214 <?php if ( $post_type == 'ad_img' | $post_type == 'about' | $post_type == 'lianxi' | $post_type == 'sns' | $post_type == 'title' | $post_type == 'transall' | $post_type == '3code' | $post_type == 'home'| $post_type == 'pro_shuxing'| $post_type == 'pro_detail') : ?>
215 <?php else: ?> 215 <?php else: ?>
216 - 216 +
217 217
218 <?php if ( $notice ) : ?> 218 <?php if ( $notice ) : ?>
219 <div id="notice" class="error"><p id="has-newer-autosave"><?php echo $notice ?></p></div> 219 <div id="notice" class="error"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
@@ -445,14 +445,14 @@ $('#acf_872').appendTo('#acf_872_show') @@ -445,14 +445,14 @@ $('#acf_872').appendTo('#acf_872_show')
445 <li class="acf_108 current"> - 网站形象 - </li> 445 <li class="acf_108 current"> - 网站形象 - </li>
446 <li class="acf_48"> - 关于我们 - </li> 446 <li class="acf_48"> - 关于我们 - </li>
447 <li class="acf_42"> - 联系方式 - </li> 447 <li class="acf_42"> - 联系方式 - </li>
448 -  
449 448
450 -  
451 -<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>  
452 - <li class="aiosp">未授权域名!请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权</li>  
453 -<?php endif; ?> 449 +
  450 +
  451 +<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
  452 + <li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权</li>
  453 +<?php endif; ?>
454 </ul> 454 </ul>
455 - 455 +
456 456
457 <div id="acf_42_show"></div> 457 <div id="acf_42_show"></div>
458 <div id="acf_45_show"></div> 458 <div id="acf_45_show"></div>
@@ -526,12 +526,12 @@ $('#aiosp').appendTo('#aiosp_show') @@ -526,12 +526,12 @@ $('#aiosp').appendTo('#aiosp_show')
526 <li class="acf_430 current"> - 页面设置 - </li> 526 <li class="acf_430 current"> - 页面设置 - </li>
527 <li class="pageparentdiv" style="display:none"> - 页面属性 - </li> 527 <li class="pageparentdiv" style="display:none"> - 页面属性 - </li>
528 <li class="aiosp"><font color="red"> - SEO设置 - </font></li> 528 <li class="aiosp"><font color="red"> - SEO设置 - </font></li>
529 -  
530 -<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>  
531 - <li class="aiosp">未授权域名!请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权</li>  
532 -<?php endif; ?> 529 +
  530 +<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
  531 + <li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权</li>
  532 +<?php endif; ?>
533 </ul> 533 </ul>
534 - 534 +
535 <div id="acf_430_show"></div> 535 <div id="acf_430_show"></div>
536 <div id="pageparentdiv_show"></div> 536 <div id="pageparentdiv_show"></div>
537 <div id="aiosp_show"></div> 537 <div id="aiosp_show"></div>
@@ -555,7 +555,7 @@ $('#aiosp').appendTo('#aiosp_show') @@ -555,7 +555,7 @@ $('#aiosp').appendTo('#aiosp_show')
555 .edit-detail-tabs li,.edit-detail-tabs li a{color:#fff;} 555 .edit-detail-tabs li,.edit-detail-tabs li a{color:#fff;}
556 .edit-detail-tabs li.current{background:#42586f;} 556 .edit-detail-tabs li.current{background:#42586f;}
557 .edit-detail-tabs li.current,.edit-detail-tabs li.current a{color:#fff;} 557 .edit-detail-tabs li.current,.edit-detail-tabs li.current a{color:#fff;}
558 -#acf_29{margin-top:-10px;} 558 +#acf_29{margin-top:-10px;}
559 #wp_keyword_tool-meta-boxes,#commentsdiv,#sc_chat_opts,#pnv_duplicata_meta_box,#combination_sale_box,#postimagediv,#acf_45052,#acf_26,#aiosp,#acf_113,#postdivrich,#acf_347,#acf_1193,#tagsdiv-post_tag{display:none;margin-top:-10px;} 559 #wp_keyword_tool-meta-boxes,#commentsdiv,#sc_chat_opts,#pnv_duplicata_meta_box,#combination_sale_box,#postimagediv,#acf_45052,#acf_26,#aiosp,#acf_113,#postdivrich,#acf_347,#acf_1193,#tagsdiv-post_tag{display:none;margin-top:-10px;}
560 #wp_keyword_tool-meta-boxes h3,#commentsdiv h3,#combination_sale_box h3,#postimagediv h3,#epagepostcustom h3,#acf_29 h3,#acf_45052 h3,#acf_26 h3,#aiosp h3,#acf_113 h3,#acf_347 h3,#acf_1193 h3,#tagsdiv-post_tag h3{display:none;} 560 #wp_keyword_tool-meta-boxes h3,#commentsdiv h3,#combination_sale_box h3,#postimagediv h3,#epagepostcustom h3,#acf_29 h3,#acf_45052 h3,#acf_26 h3,#aiosp h3,#acf_113 h3,#acf_347 h3,#acf_1193 h3,#tagsdiv-post_tag h3{display:none;}
561 #postdivrich{margin-top:20px;} 561 #postdivrich{margin-top:20px;}
@@ -615,16 +615,16 @@ $('#tagsdiv-post_tag').appendTo('#tagsdiv-post_tag_show') @@ -615,16 +615,16 @@ $('#tagsdiv-post_tag').appendTo('#tagsdiv-post_tag_show')
615 <li class="postdivrich"> - 产品描述 [简易版] - </li> 615 <li class="postdivrich"> - 产品描述 [简易版] - </li>
616 <?php }?> 616 <?php }?>
617 <li class="acf_1193"> - 产品描述 [可视化] - </li> 617 <li class="acf_1193"> - 产品描述 [可视化] - </li>
618 - <!-- <li class="acf_113">新增描述项</li> 618 + <!-- <li class="acf_113">新增描述项</li>
619 <li class="aiosp"> - SEO设置 - </li>--> 619 <li class="aiosp"> - SEO设置 - </li>-->
620 <li class="acf_347"> - 相关产品 - </li> 620 <li class="acf_347"> - 相关产品 - </li>
621 <li class="tagsdiv-post_tag"><font color="red"> - SEO关键词 - </font></li> 621 <li class="tagsdiv-post_tag"><font color="red"> - SEO关键词 - </font></li>
622 -  
623 -<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>  
624 - <li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">谷道科技</a>进行域名授权</li>  
625 -<?php endif; ?> 622 +
  623 +<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
  624 + <li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权</li>
  625 +<?php endif; ?>
626 </ul> 626 </ul>
627 - 627 +
628 <div id="postdivrich_show"></div> 628 <div id="postdivrich_show"></div>
629 <div id="postimagediv_show"></div> 629 <div id="postimagediv_show"></div>
630 <div id="combination_sale_box_show"></div> 630 <div id="combination_sale_box_show"></div>
@@ -80,7 +80,7 @@ include('./admin-header-notop.php'); @@ -80,7 +80,7 @@ include('./admin-header-notop.php');
80 <?php 80 <?php
81 81
82 function google_api_to_array($apino) { 82 function google_api_to_array($apino) {
83 - $nowdate = date("Y-m-d"); 83 + $nowdate = date("Y-m-d");
84 $startDate = date("Y-m-d",strtotime("-2 day")); 84 $startDate = date("Y-m-d",strtotime("-2 day"));
85 $endDate = date("Y-m-d",strtotime("-1 day")); //昨天 85 $endDate = date("Y-m-d",strtotime("-1 day")); //昨天
86 $url = "http://www.quanqiusou.cn/google-rank/data_json/".$nowdate."/".$apino."_".$startDate."_".$endDate.".json"; 86 $url = "http://www.quanqiusou.cn/google-rank/data_json/".$nowdate."/".$apino."_".$startDate."_".$endDate.".json";
@@ -89,14 +89,14 @@ function google_api_to_array($apino) { @@ -89,14 +89,14 @@ function google_api_to_array($apino) {
89 $datas = json_decode($json_data, true); 89 $datas = json_decode($json_data, true);
90 $k=A; 90 $k=A;
91 $list_arr=array(); 91 $list_arr=array();
92 - if(is_array($datas)){ 92 + if(is_array($datas)){
93 foreach($datas as $val){ 93 foreach($datas as $val){
94 foreach($val as $key=>$v){ 94 foreach($val as $key=>$v){
95 if(is_array($v)){ 95 if(is_array($v)){
96 $s[$key][$k]['change']=intval($v['change']); 96 $s[$key][$k]['change']=intval($v['change']);
97 $s[$key][$k]['class']=$v['class']; 97 $s[$key][$k]['class']=$v['class'];
98 $s[$key][$k]['position']=intval($v['position']); 98 $s[$key][$k]['position']=intval($v['position']);
99 - } 99 + }
100 } 100 }
101 $k++; 101 $k++;
102 $list_arr=$s; 102 $list_arr=$s;
@@ -113,7 +113,7 @@ $wpcf7_contact_form_num = $wpcf7_contact[0]->count + $wpcf7_contact_price[0]->co @@ -113,7 +113,7 @@ $wpcf7_contact_form_num = $wpcf7_contact[0]->count + $wpcf7_contact_price[0]->co
113 $nowdate = date('Y-m-d'); 113 $nowdate = date('Y-m-d');
114 $endDate = date("Y-m-d",strtotime("-1 day")); //昨天 114 $endDate = date("Y-m-d",strtotime("-1 day")); //昨天
115 $info_api = get_post_meta(32,'api_id'); 115 $info_api = get_post_meta(32,'api_id');
116 -$apino = $info_api[0]; 116 +$apino = $info_api[0];
117 //$apino = '3676604'; 117 //$apino = '3676604';
118 $rank_home_num = $rank_10days_num = $rank_all_num = $rank_third_num = 0; 118 $rank_home_num = $rank_10days_num = $rank_all_num = $rank_third_num = 0;
119 $list_arr_d = google_api_to_array($apino); 119 $list_arr_d = google_api_to_array($apino);
@@ -128,7 +128,7 @@ if($list_arr_d){ @@ -128,7 +128,7 @@ if($list_arr_d){
128 if(($value['position']<100||$value['position']==100)&&$value['position']>0){ 128 if(($value['position']<100||$value['position']==100)&&$value['position']>0){
129 $rank_10days_num++; 129 $rank_10days_num++;
130 } 130 }
131 - $rank_all_num++; 131 + $rank_all_num++;
132 } 132 }
133 } 133 }
134 134
@@ -267,7 +267,7 @@ if($list_arr_d){ @@ -267,7 +267,7 @@ if($list_arr_d){
267 </ul> 267 </ul>
268 </div> 268 </div>
269 </div> 269 </div>
270 - </section> 270 + </section>
271 <!-- 谷道科技技术服务中心 --> 271 <!-- 谷道科技技术服务中心 -->
272 <section class="gd-col-3 gd-col-contact"> 272 <section class="gd-col-3 gd-col-contact">
273 <div class="gd-panel"> 273 <div class="gd-panel">
@@ -276,7 +276,7 @@ if($list_arr_d){ @@ -276,7 +276,7 @@ if($list_arr_d){
276 </header> 276 </header>
277 <div class="gd-panel-bd"> 277 <div class="gd-panel-bd">
278 <ul class="gd-contact-info"> 278 <ul class="gd-contact-info">
279 - <li><i class="ct-ico-company"></i>成都谷道科技有限公司(总部)</li> 279 + <li><i class="ct-ico-company"></i>创贸科技(深圳)集团有限公司成都技术(总部)</li>
280 <li><i class="ct-ico-address"></i>成都市金牛区三泰魔方写字楼C2栋9层</li> 280 <li><i class="ct-ico-address"></i>成都市金牛区三泰魔方写字楼C2栋9层</li>
281 <li><i class="ct-ico-tel"></i>028-87291080</li> 281 <li><i class="ct-ico-tel"></i>028-87291080</li>
282 <li><i class="ct-ico-tel"></i>4008625660</li> 282 <li><i class="ct-ico-tel"></i>4008625660</li>
@@ -381,7 +381,7 @@ if($list_arr_d){ @@ -381,7 +381,7 @@ if($list_arr_d){
381 <!--// 弹窗结束 --> 381 <!--// 弹窗结束 -->
382 382
383 383
384 - 384 +
385 385
386 386
387 387
@@ -428,7 +428,7 @@ var isIE = ua.indexOf("msie")>-1; @@ -428,7 +428,7 @@ var isIE = ua.indexOf("msie")>-1;
428 var safariVersion; 428 var safariVersion;
429 if(isIE){ 429 if(isIE){
430 safariVersion = ua.match(/msie ([\d.]+)/)[1]; 430 safariVersion = ua.match(/msie ([\d.]+)/)[1];
431 - if(safariVersion > DEFAULT_VERSION ){ 431 + if(safariVersion > DEFAULT_VERSION ){
432 createWaveFile() 432 createWaveFile()
433 } 433 }
434 }else{ 434 }else{
@@ -447,4 +447,4 @@ if(isIE){ @@ -447,4 +447,4 @@ if(isIE){
447 447
448 </div> 448 </div>
449 </body> 449 </body>
450 -</html>  
  450 +</html>
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 <body> 15 <body>
16 <!-- header --> 16 <!-- header -->
17 <div class="admin-head"> 17 <div class="admin-head">
18 - <div class="admin-logo"><a href="http://www.goodao.cn/"></a></div> 18 + <div class="admin-logo"><a href="http://www.globalso.com/"></a></div>
19 <div class="nav-bar"> 19 <div class="nav-bar">
20 20
21 <ul class="left-nav"> 21 <ul class="left-nav">
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=cf7-data" target="main-frame">客户询盘</a></li> 39 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=cf7-data" target="main-frame">客户询盘</a></li>
40 <li><a href="<?php echo get_the_field('yun_url'); ?>" target="main-frame">排名监控</a></li> 40 <li><a href="<?php echo get_the_field('yun_url'); ?>" target="main-frame">排名监控</a></li>
41 <li><a href="<?php echo get_the_field('ana_url'); ?>" target="main-frame">流量统计</a></li> 41 <li><a href="<?php echo get_the_field('ana_url'); ?>" target="main-frame">流量统计</a></li>
42 - </ul> 42 + </ul>
43 </li> 43 </li>
44 44
45 <li> 45 <li>
@@ -48,15 +48,15 @@ @@ -48,15 +48,15 @@
48 <li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=50&action=edit" target="main-frame">网站形象</a></li> 48 <li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=50&action=edit" target="main-frame">网站形象</a></li>
49 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=all-in-one-seo-pack/aioseop_class.php" target="main-frame">网站标题</a></li> 49 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=all-in-one-seo-pack/aioseop_class.php" target="main-frame">网站标题</a></li>
50 <li><a href="<?php echo home_url(); ?>/wp-admin/nav-menus.php?menu=31" target="main-frame">导航菜单</a></li> 50 <li><a href="<?php echo home_url(); ?>/wp-admin/nav-menus.php?menu=31" target="main-frame">导航菜单</a></li>
51 - </ul> 51 + </ul>
52 </li> 52 </li>
53 - 53 +
54 <li><a href="#"><span class="ico-box"><i class="ico-product"></i><b class="ico-bg-yellow"></b></span>产品管理</a> 54 <li><a href="#"><span class="ico-box"><i class="ico-product"></i><b class="ico-bg-yellow"></b></span>产品管理</a>
55 <ul class="sub-menu"> 55 <ul class="sub-menu">
56 <li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php" target="main-frame">产品发布</a></li> 56 <li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php" target="main-frame">产品发布</a></li>
57 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php" target="main-frame">产品列表</a></li> 57 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php" target="main-frame">产品列表</a></li>
58 <li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=category" target="main-frame">产品分类</a></li> 58 <li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=category" target="main-frame">产品分类</a></li>
59 - 59 +
60 <li><a href="#">其他设置</a> 60 <li><a href="#">其他设置</a>
61 <ul class="sub-menu"> 61 <ul class="sub-menu">
62 <li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=444&action=edit" target="main-frame">通用描述</a></li> 62 <li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=444&action=edit" target="main-frame">通用描述</a></li>
@@ -64,13 +64,13 @@ @@ -64,13 +64,13 @@
64 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=t9_eshopimport" target="main-frame">批量导入</a></li> 64 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=t9_eshopimport" target="main-frame">批量导入</a></li>
65 </ul> 65 </ul>
66 </li> 66 </li>
67 - </ul> 67 + </ul>
68 </li> 68 </li>
69 <li><a href="#"><span class="ico-box"><i class="ico-site-map"></i><b class="ico-bg-green-2"></b></span>页面管理</a> 69 <li><a href="#"><span class="ico-box"><i class="ico-site-map"></i><b class="ico-bg-green-2"></b></span>页面管理</a>
70 <ul class="sub-menu"> 70 <ul class="sub-menu">
71 <li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page" target="main-frame">新建页面</a></li> 71 <li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page" target="main-frame">新建页面</a></li>
72 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=page" target="main-frame">页面管理</a></li> 72 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=page" target="main-frame">页面管理</a></li>
73 - </ul> 73 + </ul>
74 </li> 74 </li>
75 75
76 <li><a href="#"><span class="ico-box"><i class="ico-news"></i><b class="ico-bg-red"></b></span>新闻管理</a> 76 <li><a href="#"><span class="ico-box"><i class="ico-news"></i><b class="ico-bg-red"></b></span>新闻管理</a>
@@ -78,11 +78,11 @@ @@ -78,11 +78,11 @@
78 <li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=news" target="main-frame">新闻发布</a></li> 78 <li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=news" target="main-frame">新闻发布</a></li>
79 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=news" target="main-frame">新闻列表</a></li> 79 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=news" target="main-frame">新闻列表</a></li>
80 <li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=news_catalog&post_type=news" target="main-frame">新闻分类</a></li> 80 <li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=news_catalog&post_type=news" target="main-frame">新闻分类</a></li>
81 - </ul> 81 + </ul>
82 </li> 82 </li>
83 83
84 84
85 - 85 +
86 <li><a href="#"><span class="ico-box"><i class="ico-file"></i><b class="ico-bg-yellow"></b></span>媒体管理</a> 86 <li><a href="#"><span class="ico-box"><i class="ico-file"></i><b class="ico-bg-yellow"></b></span>媒体管理</a>
87 <ul class="sub-menu"> 87 <ul class="sub-menu">
88 <li><a href="<?php echo home_url(); ?>/wp-admin/upload.php" target="main-frame">媒体库</a></li> 88 <li><a href="<?php echo home_url(); ?>/wp-admin/upload.php" target="main-frame">媒体库</a></li>
@@ -90,7 +90,7 @@ @@ -90,7 +90,7 @@
90 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=DX-Watermark" target="main-frame">水印设置</a></li> 90 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=DX-Watermark" target="main-frame">水印设置</a></li>
91 <li><a href="<?php echo home_url(); ?>/wp-admin/options-media.php" target="main-frame">缩略图尺寸</a></li> 91 <li><a href="<?php echo home_url(); ?>/wp-admin/options-media.php" target="main-frame">缩略图尺寸</a></li>
92 <li><a href="<?php echo home_url(); ?>/wp-admin/tools.php?page=regenerate-thumbnails" target="main-frame">重新生成缩略图</a></li> 92 <li><a href="<?php echo home_url(); ?>/wp-admin/tools.php?page=regenerate-thumbnails" target="main-frame">重新生成缩略图</a></li>
93 - </ul> 93 + </ul>
94 </li> 94 </li>
95 95
96 <li> 96 <li>
@@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
99 <li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=69&action=edit" target="main-frame">语言选择</a></li> 99 <li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=69&action=edit" target="main-frame">语言选择</a></li>
100 <li><a href="<?php echo home_url(); ?>/wp-admin/plugins.php?page=prisna-translate-automate-settings" target="main-frame">自动翻译</a></li> 100 <li><a href="<?php echo home_url(); ?>/wp-admin/plugins.php?page=prisna-translate-automate-settings" target="main-frame">自动翻译</a></li>
101 <li><a href="<?php echo home_url(); ?>/wp-admin/plugins.php?page=prisna-translate-settings&gd=1" target="main-frame">人工编译</a></li> 101 <li><a href="<?php echo home_url(); ?>/wp-admin/plugins.php?page=prisna-translate-settings&gd=1" target="main-frame">人工编译</a></li>
102 - </ul> 102 + </ul>
103 </li> 103 </li>
104 <li> 104 <li>
105 <a href="javascript:"><span class="ico-box"><i class="ico-seo"></i><b class="ico-bg-red"></b></span>SEO设置</a> 105 <a href="javascript:"><span class="ico-box"><i class="ico-seo"></i><b class="ico-bg-red"></b></span>SEO设置</a>
@@ -107,9 +107,9 @@ @@ -107,9 +107,9 @@
107 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=google-sitemap-generator/sitemap.php" target="main-frame">网站地图(XML)</a></li> 107 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=google-sitemap-generator/sitemap.php" target="main-frame">网站地图(XML)</a></li>
108 <li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=post_tag" target="main-frame">关键词标签</a></li> 108 <li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=post_tag" target="main-frame">关键词标签</a></li>
109 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=keyword-to-url" target="main-frame">智能锚文本</a></li> 109 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=keyword-to-url" target="main-frame">智能锚文本</a></li>
110 - <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=iq-block-country/iq-block-country.php" target="main-frame">国家IP屏蔽</a></li> 110 + <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=iq-block-country/iq-block-country.php" target="main-frame">国家IP屏蔽</a></li>
111 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=simple-ip-ban" target="main-frame">指定IP屏蔽</a></li> 111 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=simple-ip-ban" target="main-frame">指定IP屏蔽</a></li>
112 - </ul> 112 + </ul>
113 </li> 113 </li>
114 114
115 <li><a href="#"><span class="ico-box"><i class="ico-product"></i><b class="ico-bg-cyan"></b></span>其他设置</a> 115 <li><a href="#"><span class="ico-box"><i class="ico-product"></i><b class="ico-bg-cyan"></b></span>其他设置</a>
@@ -119,39 +119,39 @@ @@ -119,39 +119,39 @@
119 <ul class="sub-menu"> 119 <ul class="sub-menu">
120 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=wpcf7&post=19&action=edit" target="main-frame">网站询盘表单</a></li> 120 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=wpcf7&post=19&action=edit" target="main-frame">网站询盘表单</a></li>
121 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=wpcf7&post=20&action=edit" target="main-frame">底部询价表单</a></li> 121 <li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=wpcf7&post=20&action=edit" target="main-frame">底部询价表单</a></li>
122 - </ul> 122 + </ul>
123 </li> 123 </li>
124 <li><a href="#">客服设置</a> 124 <li><a href="#">客服设置</a>
125 <ul class="sub-menu"> 125 <ul class="sub-menu">
126 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=skype" target="main-frame">Skype客服设置</a></li> 126 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=skype" target="main-frame">Skype客服设置</a></li>
127 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=ww" target="main-frame">国际版阿里旺旺</a></li> 127 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=ww" target="main-frame">国际版阿里旺旺</a></li>
128 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=qq" target="main-frame">QQ客服设置</a></li> 128 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=qq" target="main-frame">QQ客服设置</a></li>
129 - </ul> 129 + </ul>
130 </li> 130 </li>
131 <li><a href="#">自动优化</a> 131 <li><a href="#">自动优化</a>
132 <ul class="sub-menu"> 132 <ul class="sub-menu">
133 <li><a href="#">缓存更新(自动)</a></li> 133 <li><a href="#">缓存更新(自动)</a></li>
134 <li><a href="#">数据优化(自动)</a></li> 134 <li><a href="#">数据优化(自动)</a></li>
135 <li><a href="#">数据备份(自动)</a></li> 135 <li><a href="#">数据备份(自动)</a></li>
136 - </ul> 136 + </ul>
137 </li> 137 </li>
138 138
139 - </ul> 139 + </ul>
140 </li> 140 </li>
141 <!-- <li><a href="#"><span class="ico-box"><i class="ico-seo"></i><b class="ico-bg-yellow"></b></span>SEO功能</a> 141 <!-- <li><a href="#"><span class="ico-box"><i class="ico-seo"></i><b class="ico-bg-yellow"></b></span>SEO功能</a>
142 <ul class="sub-menu"> 142 <ul class="sub-menu">
143 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=simple-ip-ban" target="main-frame">指定IP屏蔽</a></li> 143 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=simple-ip-ban" target="main-frame">指定IP屏蔽</a></li>
144 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=article" target="main-frame">智能内容发布</a></li> 144 <li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=article" target="main-frame">智能内容发布</a></li>
145 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=wp-mail-smtp/wp_mail_smtp.php " target="main-frame">邮箱SMTP设置</a></li> 145 <li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=wp-mail-smtp/wp_mail_smtp.php " target="main-frame">邮箱SMTP设置</a></li>
146 - </ul> 146 + </ul>
147 </li> --> 147 </li> -->
148 - 148 +
149 </ul> 149 </ul>
150 - 150 +
151 151
152 <div class="copyright"> 152 <div class="copyright">
153 <p>“ 让 全 球 买 家 轻 松 搜 到 您 ”</p> 153 <p>“ 让 全 球 买 家 轻 松 搜 到 您 ”</p>
154 - <p><a target="_blank" href="http://www.goodao.cn/">谷道科技 © 版权所有</a></p> 154 + <p><a target="_blank" href="http://www.globalso.com/">全球搜 © 版权所有</a></p>
155 </div> 155 </div>
156 </div> 156 </div>
157 <div class="path-bar"> 157 <div class="path-bar">
@@ -164,7 +164,7 @@ @@ -164,7 +164,7 @@
164 <div class="admin-wrap"> 164 <div class="admin-wrap">
165 <div class="frame-wrap"> 165 <div class="frame-wrap">
166 166
167 - 167 +
168 <iframe class="main-frame" width="100%" scrolling="auto" height="auto" frameborder="false" allowtransparency="true" frameborder="0" style="border:0; height:100%; position:relative;overflow:hidden;overflow:auto;" src="<?php echo home_url(); ?>/wp-admin/index-ybp.php" name="main-frame"></iframe> 168 <iframe class="main-frame" width="100%" scrolling="auto" height="auto" frameborder="false" allowtransparency="true" frameborder="0" style="border:0; height:100%; position:relative;overflow:hidden;overflow:auto;" src="<?php echo home_url(); ?>/wp-admin/index-ybp.php" name="main-frame"></iframe>
169 </div> 169 </div>
170 </div> 170 </div>
@@ -172,15 +172,15 @@ @@ -172,15 +172,15 @@
172 172
173 <script> 173 <script>
174 //左侧栏滚动条美化 174 //左侧栏滚动条美化
175 -$(".side-nav").niceScroll({  
176 - cursorcolor:"#37aadd",  
177 - cursoropacitymax:1,  
178 - touchbehavior:false,  
179 - cursorwidth:"4px",  
180 - cursorborder:"0", 175 +$(".side-nav").niceScroll({
  176 + cursorcolor:"#37aadd",
  177 + cursoropacitymax:1,
  178 + touchbehavior:false,
  179 + cursorwidth:"4px",
  180 + cursorborder:"0",
181 autohidemode:false, 181 autohidemode:false,
182 cursorborderradius:"0" 182 cursorborderradius:"0"
183 -}); 183 +});
184 </script> 184 </script>
185 <script> 185 <script>
186 // ie6宽高自适应 186 // ie6宽高自适应
@@ -218,4 +218,4 @@ $(window).resize(function(){ @@ -218,4 +218,4 @@ $(window).resize(function(){
218 </html> 218 </html>
219 <?php else: ?> 219 <?php else: ?>
220 <meta http-equiv="refresh" content="0;url=<?php echo home_url(); ?>/admin.php"> 220 <meta http-equiv="refresh" content="0;url=<?php echo home_url(); ?>/admin.php">
221 -<?php endif; ?>  
  221 +<?php endif; ?>
@@ -17,7 +17,7 @@ Author URI: http://www.callum-macdonald.com/ @@ -17,7 +17,7 @@ Author URI: http://www.callum-macdonald.com/
17 17
18 /** 18 /**
19 * Setting options in wp-config.php 19 * Setting options in wp-config.php
20 - * 20 + *
21 * Specifically aimed at WPMU users, you can set the options for this plugin as 21 * Specifically aimed at WPMU users, you can set the options for this plugin as
22 * constants in wp-config.php. This disables the plugin's admin page and may 22 * constants in wp-config.php. This disables the plugin's admin page and may
23 * improve performance very slightly. Copy the code below into wp-config.php. 23 * improve performance very slightly. Copy the code below into wp-config.php.
@@ -57,27 +57,27 @@ $wpms_options = array ( @@ -57,27 +57,27 @@ $wpms_options = array (
57 */ 57 */
58 if (!function_exists('wp_mail_smtp_activate')) : 58 if (!function_exists('wp_mail_smtp_activate')) :
59 function wp_mail_smtp_activate() { 59 function wp_mail_smtp_activate() {
60 - 60 +
61 global $wpms_options; 61 global $wpms_options;
62 - 62 +
63 // Create the required options... 63 // Create the required options...
64 foreach ($wpms_options as $name => $val) { 64 foreach ($wpms_options as $name => $val) {
65 add_option($name,$val); 65 add_option($name,$val);
66 } 66 }
67 - 67 +
68 } 68 }
69 endif; 69 endif;
70 70
71 if (!function_exists('wp_mail_smtp_whitelist_options')) : 71 if (!function_exists('wp_mail_smtp_whitelist_options')) :
72 function wp_mail_smtp_whitelist_options($whitelist_options) { 72 function wp_mail_smtp_whitelist_options($whitelist_options) {
73 - 73 +
74 global $wpms_options; 74 global $wpms_options;
75 - 75 +
76 // Add our options to the array 76 // Add our options to the array
77 $whitelist_options['email'] = array_keys($wpms_options); 77 $whitelist_options['email'] = array_keys($wpms_options);
78 - 78 +
79 return $whitelist_options; 79 return $whitelist_options;
80 - 80 +
81 } 81 }
82 endif; 82 endif;
83 83
@@ -85,15 +85,15 @@ endif; @@ -85,15 +85,15 @@ endif;
85 if (!function_exists('phpmailer_init_smtp')) : 85 if (!function_exists('phpmailer_init_smtp')) :
86 // This code is copied, from wp-includes/pluggable.php as at version 2.2.2 86 // This code is copied, from wp-includes/pluggable.php as at version 2.2.2
87 function phpmailer_init_smtp($phpmailer) { 87 function phpmailer_init_smtp($phpmailer) {
88 - 88 +
89 // If constants are defined, apply those options 89 // If constants are defined, apply those options
90 if (defined('WPMS_ON') && WPMS_ON) { 90 if (defined('WPMS_ON') && WPMS_ON) {
91 - 91 +
92 $phpmailer->Mailer = WPMS_MAILER; 92 $phpmailer->Mailer = WPMS_MAILER;
93 - 93 +
94 if (WPMS_SET_RETURN_PATH) 94 if (WPMS_SET_RETURN_PATH)
95 $phpmailer->Sender = $phpmailer->From; 95 $phpmailer->Sender = $phpmailer->From;
96 - 96 +
97 if (WPMS_MAILER == 'smtp') { 97 if (WPMS_MAILER == 'smtp') {
98 $phpmailer->SMTPSecure = WPMS_SSL; 98 $phpmailer->SMTPSecure = WPMS_SSL;
99 $phpmailer->Host = WPMS_SMTP_HOST; 99 $phpmailer->Host = WPMS_SMTP_HOST;
@@ -104,37 +104,37 @@ function phpmailer_init_smtp($phpmailer) { @@ -104,37 +104,37 @@ function phpmailer_init_smtp($phpmailer) {
104 $phpmailer->Password = WPMS_SMTP_PASS; 104 $phpmailer->Password = WPMS_SMTP_PASS;
105 } 105 }
106 } 106 }
107 - 107 +
108 // If you're using contstants, set any custom options here 108 // If you're using contstants, set any custom options here
109 - 109 +
110 } 110 }
111 else { 111 else {
112 - 112 +
113 // Check that mailer is not blank, and if mailer=smtp, host is not blank 113 // Check that mailer is not blank, and if mailer=smtp, host is not blank
114 if ( ! get_option('mailer') || ( get_option('mailer') == 'smtp' && ! get_option('smtp_host') ) ) { 114 if ( ! get_option('mailer') || ( get_option('mailer') == 'smtp' && ! get_option('smtp_host') ) ) {
115 return; 115 return;
116 } 116 }
117 - 117 +
118 // Set the mailer type as per config above, this overrides the already called isMail method 118 // Set the mailer type as per config above, this overrides the already called isMail method
119 $phpmailer->Mailer = get_option('mailer'); 119 $phpmailer->Mailer = get_option('mailer');
120 - 120 +
121 // Set the Sender (return-path) if required 121 // Set the Sender (return-path) if required
122 if (get_option('mail_set_return_path')) 122 if (get_option('mail_set_return_path'))
123 $phpmailer->Sender = $phpmailer->From; 123 $phpmailer->Sender = $phpmailer->From;
124 - 124 +
125 // Set the SMTPSecure value, if set to none, leave this blank 125 // Set the SMTPSecure value, if set to none, leave this blank
126 $phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl'); 126 $phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl');
127 - 127 +
128 // If we're sending via SMTP, set the host 128 // If we're sending via SMTP, set the host
129 if (get_option('mailer') == "smtp") { 129 if (get_option('mailer') == "smtp") {
130 - 130 +
131 // Set the SMTPSecure value, if set to none, leave this blank 131 // Set the SMTPSecure value, if set to none, leave this blank
132 $phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl'); 132 $phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl');
133 - 133 +
134 // Set the other options 134 // Set the other options
135 $phpmailer->Host = get_option('smtp_host'); 135 $phpmailer->Host = get_option('smtp_host');
136 $phpmailer->Port = get_option('smtp_port'); 136 $phpmailer->Port = get_option('smtp_port');
137 - 137 +
138 // If we're using smtp auth, set the username & password 138 // If we're using smtp auth, set the username & password
139 if (get_option('smtp_auth') == "true") { 139 if (get_option('smtp_auth') == "true") {
140 $phpmailer->SMTPAuth = TRUE; 140 $phpmailer->SMTPAuth = TRUE;
@@ -142,16 +142,16 @@ function phpmailer_init_smtp($phpmailer) { @@ -142,16 +142,16 @@ function phpmailer_init_smtp($phpmailer) {
142 $phpmailer->Password = get_option('smtp_pass'); 142 $phpmailer->Password = get_option('smtp_pass');
143 } 143 }
144 } 144 }
145 - 145 +
146 // You can add your own options here, see the phpmailer documentation for more info: 146 // You can add your own options here, see the phpmailer documentation for more info:
147 // http://phpmailer.sourceforge.net/docs/ 147 // http://phpmailer.sourceforge.net/docs/
148 -  
149 -  
150 - 148 +
  149 +
  150 +
151 // STOP adding options here. 151 // STOP adding options here.
152 - 152 +
153 } 153 }
154 - 154 +
155 } // End of phpmailer_init_smtp() function definition 155 } // End of phpmailer_init_smtp() function definition
156 endif; 156 endif;
157 157
@@ -163,11 +163,11 @@ endif; @@ -163,11 +163,11 @@ endif;
163 if (!function_exists('wp_mail_smtp_options_page')) : 163 if (!function_exists('wp_mail_smtp_options_page')) :
164 // Define the function 164 // Define the function
165 function wp_mail_smtp_options_page() { 165 function wp_mail_smtp_options_page() {
166 - 166 +
167 // Load the options 167 // Load the options
168 global $wpms_options, $phpmailer; 168 global $wpms_options, $phpmailer;
169 -  
170 - // Make sure the PHPMailer class has been instantiated 169 +
  170 + // Make sure the PHPMailer class has been instantiated
171 // (copied verbatim from wp-includes/pluggable.php) 171 // (copied verbatim from wp-includes/pluggable.php)
172 // (Re)create it, if it's gone missing 172 // (Re)create it, if it's gone missing
173 if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) { 173 if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) {
@@ -178,32 +178,32 @@ function wp_mail_smtp_options_page() { @@ -178,32 +178,32 @@ function wp_mail_smtp_options_page() {
178 178
179 // Send a test mail if necessary 179 // Send a test mail if necessary
180 if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test', 'wp_mail_smtp') && isset($_POST['to'])) { 180 if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test', 'wp_mail_smtp') && isset($_POST['to'])) {
181 - 181 +
182 // Set up the mail variables 182 // Set up the mail variables
183 $to = $_POST['to']; 183 $to = $_POST['to'];
184 $subject = '' . __('Test mail to ', 'wp_mail_smtp') . $to; 184 $subject = '' . __('Test mail to ', 'wp_mail_smtp') . $to;
185 $message = __('测试邮件. 谷道科技 www.Goodao.cn', 'wp_mail_smtp'); 185 $message = __('测试邮件. 谷道科技 www.Goodao.cn', 'wp_mail_smtp');
186 - 186 +
187 // Set SMTPDebug to level 2 187 // Set SMTPDebug to level 2
188 $phpmailer->SMTPDebug = 4; 188 $phpmailer->SMTPDebug = 4;
189 - 189 +
190 // Start output buffering to grab smtp debugging output 190 // Start output buffering to grab smtp debugging output
191 ob_start(); 191 ob_start();
192 192
193 // Send the test mail 193 // Send the test mail
194 $result = wp_mail($to,$subject,$message); 194 $result = wp_mail($to,$subject,$message);
195 - 195 +
196 // Strip out the language strings which confuse users 196 // Strip out the language strings which confuse users
197 //unset($phpmailer->language); 197 //unset($phpmailer->language);
198 // This property became protected in WP 3.2 198 // This property became protected in WP 3.2
199 - 199 +
200 // Grab the smtp debugging output 200 // Grab the smtp debugging output
201 $smtp_debug = ob_get_clean(); 201 $smtp_debug = ob_get_clean();
202 - 202 +
203 print_r($smtp_debug);exit; 203 print_r($smtp_debug);exit;
204 // Output the response 204 // Output the response
205 ?> 205 ?>
206 - 206 +
207 <?php 207 <?php
208 $DOMAIN_NAME = $_SERVER['HTTP_HOST']; 208 $DOMAIN_NAME = $_SERVER['HTTP_HOST'];
209 define('PRODUCT_ID', $DOMAIN_NAME); 209 define('PRODUCT_ID', $DOMAIN_NAME);
@@ -216,16 +216,16 @@ function admin_notice_zpXnvPSiCDpL() { @@ -216,16 +216,16 @@ function admin_notice_zpXnvPSiCDpL() {
216 global $current_user; 216 global $current_user;
217 $user_id = $current_user->ID; 217 $user_id = $current_user->ID;
218 if ( ! get_user_meta($user_id, 'ignore_notice') && is_admin()) { 218 if ( ! get_user_meta($user_id, 'ignore_notice') && is_admin()) {
219 - echo '<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权。</p>  
220 - <p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>'; 219 + echo '<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权。</p>
  220 + <p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>';
221 } 221 }
222 } 222 }
223 function is_login_page() { 223 function is_login_page() {
224 return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); 224 return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));
225 } 225 }
226 -if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){ 226 +if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){
227 $DOMAIN_NAME = $_SERVER['HTTP_HOST']; 227 $DOMAIN_NAME = $_SERVER['HTTP_HOST'];
228 - $CLIENT_TOKEN_KEY = 'aaa'; 228 + $CLIENT_TOKEN_KEY = 'aaa';
229 $CLIENT_TOKEN = substr(md5($CLIENT_TOKEN_KEY.urlencode($DOMAIN_NAME)),9,10); 229 $CLIENT_TOKEN = substr(md5($CLIENT_TOKEN_KEY.urlencode($DOMAIN_NAME)),9,10);
230 $api_args = array( 230 $api_args = array(
231 'client_domain' => urlencode($DOMAIN_NAME), 231 'client_domain' => urlencode($DOMAIN_NAME),
@@ -237,27 +237,27 @@ if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){ @@ -237,27 +237,27 @@ if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){
237 echo "error"; 237 echo "error";
238 } 238 }
239 $license_data = json_decode(wp_remote_retrieve_body($response)); 239 $license_data = json_decode(wp_remote_retrieve_body($response));
240 - 240 +
241 if($license_data->result == 'success'){ 241 if($license_data->result == 'success'){
242 set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD, $KEY_VALUE_MD,5); 242 set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD, $KEY_VALUE_MD,5);
243 } 243 }
244 - else{  
245 - set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD , 0 , 5); 244 + else{
  245 + set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD , 0 , 5);
246 } 246 }
247 -}  
248 -if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?> 247 +}
  248 +if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
249 <?php if(!is_admin()&& !is_login_page()){ 249 <?php if(!is_admin()&& !is_login_page()){
250 - wp_die('<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权。</p> 250 + wp_die('<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权。</p>
251 <p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>'); 251 <p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>');
252 } 252 }
253 else { 253 else {
254 add_action('admin_notices', 'admin_notice_zpXnvPSiCDpL'); 254 add_action('admin_notices', 'admin_notice_zpXnvPSiCDpL');
255 - }  
256 - ?><p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权。</p> 255 + }
  256 + ?><p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权。</p>
257 <?php else: ?> 257 <?php else: ?>
258 已授权 258 已授权
259 <?php endif; ?> 259 <?php endif; ?>
260 - 260 +
261 <div id="message" class="updated fade"><p><strong><?php _e('Test Message Sent', 'wp_mail_smtp'); ?></strong></p> 261 <div id="message" class="updated fade"><p><strong><?php _e('Test Message Sent', 'wp_mail_smtp'); ?></strong></p>
262 <p><?php _e('The result was:', 'wp_mail_smtp'); ?></p> 262 <p><?php _e('The result was:', 'wp_mail_smtp'); ?></p>
263 <pre><?php var_dump($result); ?></pre> 263 <pre><?php var_dump($result); ?></pre>
@@ -267,12 +267,12 @@ if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?> @@ -267,12 +267,12 @@ if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
267 <pre><?php echo $smtp_debug ?></pre> 267 <pre><?php echo $smtp_debug ?></pre>
268 </div> 268 </div>
269 <?php 269 <?php
270 - 270 +
271 // Destroy $phpmailer so it doesn't cause issues later 271 // Destroy $phpmailer so it doesn't cause issues later
272 unset($phpmailer); 272 unset($phpmailer);
273 273
274 } 274 }
275 - 275 +
276 ?> 276 ?>
277 <div class="wrap"> 277 <div class="wrap">
278 <h2><?php _e('企业邮箱SMTP转发设置', 'wp_mail_smtp'); ?></h2> 278 <h2><?php _e('企业邮箱SMTP转发设置', 'wp_mail_smtp'); ?></h2>
@@ -380,9 +380,9 @@ if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?> @@ -380,9 +380,9 @@ if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
380 380
381 </div> 381 </div>
382 382
383 - 383 +
384 <?php 384 <?php
385 - 385 +
386 } // End of wp_mail_smtp_options_page() function definition 386 } // End of wp_mail_smtp_options_page() function definition
387 endif; 387 endif;
388 388
@@ -392,11 +392,11 @@ endif; @@ -392,11 +392,11 @@ endif;
392 */ 392 */
393 if (!function_exists('wp_mail_smtp_menus')) : 393 if (!function_exists('wp_mail_smtp_menus')) :
394 function wp_mail_smtp_menus() { 394 function wp_mail_smtp_menus() {
395 - 395 +
396 if (function_exists('add_submenu_page')) { 396 if (function_exists('add_submenu_page')) {
397 add_options_page(__('Advanced Email Options', 'wp_mail_smtp'),__('Email', 'wp_mail_smtp'),'manage_options',__FILE__,'wp_mail_smtp_options_page'); 397 add_options_page(__('Advanced Email Options', 'wp_mail_smtp'),__('Email', 'wp_mail_smtp'),'manage_options',__FILE__,'wp_mail_smtp_options_page');
398 } 398 }
399 - 399 +
400 } // End of wp_mail_smtp_menus() function definition 400 } // End of wp_mail_smtp_menus() function definition
401 endif; 401 endif;
402 402
@@ -430,10 +430,10 @@ endif; @@ -430,10 +430,10 @@ endif;
430 */ 430 */
431 if (!function_exists('wp_mail_smtp_mail_from')) : 431 if (!function_exists('wp_mail_smtp_mail_from')) :
432 function wp_mail_smtp_mail_from ($orig) { 432 function wp_mail_smtp_mail_from ($orig) {
433 - 433 +
434 // This is copied from pluggable.php lines 348-354 as at revision 10150 434 // This is copied from pluggable.php lines 348-354 as at revision 10150
435 // http://trac.wordpress.org/browser/branches/2.7/wp-includes/pluggable.php#L348 435 // http://trac.wordpress.org/browser/branches/2.7/wp-includes/pluggable.php#L348
436 - 436 +
437 // Get the site domain and get rid of www. 437 // Get the site domain and get rid of www.
438 $sitename = strtolower( $_SERVER['SERVER_NAME'] ); 438 $sitename = strtolower( $_SERVER['SERVER_NAME'] );
439 if ( substr( $sitename, 0, 4 ) == 'www.' ) { 439 if ( substr( $sitename, 0, 4 ) == 'www.' ) {
@@ -442,20 +442,20 @@ function wp_mail_smtp_mail_from ($orig) { @@ -442,20 +442,20 @@ function wp_mail_smtp_mail_from ($orig) {
442 442
443 $default_from = 'wordpress@' . $sitename; 443 $default_from = 'wordpress@' . $sitename;
444 // End of copied code 444 // End of copied code
445 - 445 +
446 // If the from email is not the default, return it unchanged 446 // If the from email is not the default, return it unchanged
447 if ( $orig != $default_from ) { 447 if ( $orig != $default_from ) {
448 return $orig; 448 return $orig;
449 } 449 }
450 - 450 +
451 if (defined('WPMS_ON') && WPMS_ON) 451 if (defined('WPMS_ON') && WPMS_ON)
452 return WPMS_MAIL_FROM; 452 return WPMS_MAIL_FROM;
453 elseif (validate_email(get_option('mail_from'), false)) 453 elseif (validate_email(get_option('mail_from'), false))
454 return get_option('mail_from'); 454 return get_option('mail_from');
455 - 455 +
456 // If in doubt, return the original value 456 // If in doubt, return the original value
457 return $orig; 457 return $orig;
458 - 458 +
459 } // End of wp_mail_smtp_mail_from() function definition 459 } // End of wp_mail_smtp_mail_from() function definition
460 endif; 460 endif;
461 461
@@ -465,7 +465,7 @@ endif; @@ -465,7 +465,7 @@ endif;
465 */ 465 */
466 if (!function_exists('wp_mail_smtp_mail_from_name')) : 466 if (!function_exists('wp_mail_smtp_mail_from_name')) :
467 function wp_mail_smtp_mail_from_name ($orig) { 467 function wp_mail_smtp_mail_from_name ($orig) {
468 - 468 +
469 // Only filter if the from name is the default 469 // Only filter if the from name is the default
470 if ($orig == 'WordPress') { 470 if ($orig == 'WordPress') {
471 if (defined('WPMS_ON') && WPMS_ON) 471 if (defined('WPMS_ON') && WPMS_ON)
@@ -473,10 +473,10 @@ function wp_mail_smtp_mail_from_name ($orig) { @@ -473,10 +473,10 @@ function wp_mail_smtp_mail_from_name ($orig) {
473 elseif ( get_option('mail_from_name') != "" && is_string(get_option('mail_from_name')) ) 473 elseif ( get_option('mail_from_name') != "" && is_string(get_option('mail_from_name')) )
474 return get_option('mail_from_name'); 474 return get_option('mail_from_name');
475 } 475 }
476 - 476 +
477 // If in doubt, return the original value 477 // If in doubt, return the original value
478 return $orig; 478 return $orig;
479 - 479 +
480 } // End of wp_mail_smtp_mail_from_name() function definition 480 } // End of wp_mail_smtp_mail_from_name() function definition
481 endif; 481 endif;
482 482
@@ -512,7 +512,7 @@ add_filter('wp_mail_from_name','wp_mail_smtp_mail_from_name'); @@ -512,7 +512,7 @@ add_filter('wp_mail_from_name','wp_mail_smtp_mail_from_name');
512 load_plugin_textdomain('wp_mail_smtp', false, dirname(plugin_basename(__FILE__)) . '/langs'); 512 load_plugin_textdomain('wp_mail_smtp', false, dirname(plugin_basename(__FILE__)) . '/langs');
513 513
514 if ( ! function_exists( 'wp_set_auth_cookie' ) ) : 514 if ( ! function_exists( 'wp_set_auth_cookie' ) ) :
515 - 515 +
516 /** 516 /**
517 * Sets the authentication cookies based on user ID. 517 * Sets the authentication cookies based on user ID.
518 * 518 *
@@ -641,7 +641,7 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) { @@ -641,7 +641,7 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) {
641 if ( ! apply_filters( 'send_auth_cookies', true ) ) { 641 if ( ! apply_filters( 'send_auth_cookies', true ) ) {
642 return; 642 return;
643 } 643 }
644 - 644 +
645 $php_version = explode( '.', \phpversion() ); 645 $php_version = explode( '.', \phpversion() );
646 646
647 $same_site_as_option = intval( $php_version[0] ) > 7 // Support for PHP 8 647 $same_site_as_option = intval( $php_version[0] ) > 7 // Support for PHP 8
@@ -651,7 +651,7 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) { @@ -651,7 +651,7 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) {
651 setcookie( $auth_cookie_name, $auth_cookie, array( "expires" => $expire, "path" => PLUGINS_COOKIE_PATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) ); 651 setcookie( $auth_cookie_name, $auth_cookie, array( "expires" => $expire, "path" => PLUGINS_COOKIE_PATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
652 setcookie( $auth_cookie_name, $auth_cookie, array( "expires" => $expire, "path" => ADMIN_COOKIE_PATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) ); 652 setcookie( $auth_cookie_name, $auth_cookie, array( "expires" => $expire, "path" => ADMIN_COOKIE_PATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
653 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array( "expires" => $expire, "path" => COOKIEPATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) ); 653 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array( "expires" => $expire, "path" => COOKIEPATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
654 - 654 +
655 if ( COOKIEPATH != SITECOOKIEPATH ) { 655 if ( COOKIEPATH != SITECOOKIEPATH ) {
656 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array( "expires" => $expire, "path" => SITECOOKIEPATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) ); 656 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array( "expires" => $expire, "path" => SITECOOKIEPATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
657 } 657 }
@@ -660,11 +660,11 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) { @@ -660,11 +660,11 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) {
660 setcookie( $auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true ); 660 setcookie( $auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
661 setcookie( $auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true ); 661 setcookie( $auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
662 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true ); 662 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
663 - 663 +
664 if ( COOKIEPATH != SITECOOKIEPATH ) { 664 if ( COOKIEPATH != SITECOOKIEPATH ) {
665 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true ); 665 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
666 } 666 }
667 } 667 }
668 } 668 }
669 669
670 -endif;  
  670 +endif;