作者 ZhengBing He

修改文案

... ... @@ -213,7 +213,7 @@ require_once('./admin-header.php');
<div class="wrap">
<?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') : ?>
<?php else: ?>
<?php if ( $notice ) : ?>
<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')
<li class="acf_108 current"> - 网站形象 - </li>
<li class="acf_48"> - 关于我们 - </li>
<li class="acf_42"> - 联系方式 - </li>
<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<li class="aiosp">未授权域名!请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权</li>
<?php endif; ?>
<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权</li>
<?php endif; ?>
</ul>
<div id="acf_42_show"></div>
<div id="acf_45_show"></div>
... ... @@ -526,12 +526,12 @@ $('#aiosp').appendTo('#aiosp_show')
<li class="acf_430 current"> - 页面设置 - </li>
<li class="pageparentdiv" style="display:none"> - 页面属性 - </li>
<li class="aiosp"><font color="red"> - SEO设置 - </font></li>
<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<li class="aiosp">未授权域名!请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权</li>
<?php endif; ?>
<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权</li>
<?php endif; ?>
</ul>
<div id="acf_430_show"></div>
<div id="pageparentdiv_show"></div>
<div id="aiosp_show"></div>
... ... @@ -555,7 +555,7 @@ $('#aiosp').appendTo('#aiosp_show')
.edit-detail-tabs li,.edit-detail-tabs li a{color:#fff;}
.edit-detail-tabs li.current{background:#42586f;}
.edit-detail-tabs li.current,.edit-detail-tabs li.current a{color:#fff;}
#acf_29{margin-top:-10px;}
#acf_29{margin-top:-10px;}
#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;}
#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;}
#postdivrich{margin-top:20px;}
... ... @@ -615,16 +615,16 @@ $('#tagsdiv-post_tag').appendTo('#tagsdiv-post_tag_show')
<li class="postdivrich"> - 产品描述 [简易版] - </li>
<?php }?>
<li class="acf_1193"> - 产品描述 [可视化] - </li>
<!-- <li class="acf_113">新增描述项</li>
<!-- <li class="acf_113">新增描述项</li>
<li class="aiosp"> - SEO设置 - </li>-->
<li class="acf_347"> - 相关产品 - </li>
<li class="tagsdiv-post_tag"><font color="red"> - SEO关键词 - </font></li>
<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">谷道科技</a>进行域名授权</li>
<?php endif; ?>
<?php if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<li class="aiosp">未授权域名!请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权</li>
<?php endif; ?>
</ul>
<div id="postdivrich_show"></div>
<div id="postimagediv_show"></div>
<div id="combination_sale_box_show"></div>
... ...
... ... @@ -80,7 +80,7 @@ include('./admin-header-notop.php');
<?php
function google_api_to_array($apino) {
$nowdate = date("Y-m-d");
$nowdate = date("Y-m-d");
$startDate = date("Y-m-d",strtotime("-2 day"));
$endDate = date("Y-m-d",strtotime("-1 day")); //昨天
$url = "http://www.quanqiusou.cn/google-rank/data_json/".$nowdate."/".$apino."_".$startDate."_".$endDate.".json";
... ... @@ -89,14 +89,14 @@ function google_api_to_array($apino) {
$datas = json_decode($json_data, true);
$k=A;
$list_arr=array();
if(is_array($datas)){
if(is_array($datas)){
foreach($datas as $val){
foreach($val as $key=>$v){
if(is_array($v)){
$s[$key][$k]['change']=intval($v['change']);
$s[$key][$k]['class']=$v['class'];
$s[$key][$k]['position']=intval($v['position']);
}
}
}
$k++;
$list_arr=$s;
... ... @@ -113,7 +113,7 @@ $wpcf7_contact_form_num = $wpcf7_contact[0]->count + $wpcf7_contact_price[0]->co
$nowdate = date('Y-m-d');
$endDate = date("Y-m-d",strtotime("-1 day")); //昨天
$info_api = get_post_meta(32,'api_id');
$apino = $info_api[0];
$apino = $info_api[0];
//$apino = '3676604';
$rank_home_num = $rank_10days_num = $rank_all_num = $rank_third_num = 0;
$list_arr_d = google_api_to_array($apino);
... ... @@ -128,7 +128,7 @@ if($list_arr_d){
if(($value['position']<100||$value['position']==100)&&$value['position']>0){
$rank_10days_num++;
}
$rank_all_num++;
$rank_all_num++;
}
}
... ... @@ -267,7 +267,7 @@ if($list_arr_d){
</ul>
</div>
</div>
</section>
</section>
<!-- 谷道科技技术服务中心 -->
<section class="gd-col-3 gd-col-contact">
<div class="gd-panel">
... ... @@ -276,7 +276,7 @@ if($list_arr_d){
</header>
<div class="gd-panel-bd">
<ul class="gd-contact-info">
<li><i class="ct-ico-company"></i>成都谷道科技有限公司(总部)</li>
<li><i class="ct-ico-company"></i>创贸科技(深圳)集团有限公司成都技术(总部)</li>
<li><i class="ct-ico-address"></i>成都市金牛区三泰魔方写字楼C2栋9层</li>
<li><i class="ct-ico-tel"></i>028-87291080</li>
<li><i class="ct-ico-tel"></i>4008625660</li>
... ... @@ -381,7 +381,7 @@ if($list_arr_d){
<!--// 弹窗结束 -->
... ... @@ -428,7 +428,7 @@ var isIE = ua.indexOf("msie")>-1;
var safariVersion;
if(isIE){
safariVersion = ua.match(/msie ([\d.]+)/)[1];
if(safariVersion > DEFAULT_VERSION ){
if(safariVersion > DEFAULT_VERSION ){
createWaveFile()
}
}else{
... ... @@ -447,4 +447,4 @@ if(isIE){
</div>
</body>
</html>
\ No newline at end of file
</html>
... ...
... ... @@ -15,7 +15,7 @@
<body>
<!-- header -->
<div class="admin-head">
<div class="admin-logo"><a href="http://www.goodao.cn/"></a></div>
<div class="admin-logo"><a href="http://www.globalso.com/"></a></div>
<div class="nav-bar">
<ul class="left-nav">
... ... @@ -39,7 +39,7 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=cf7-data" target="main-frame">客户询盘</a></li>
<li><a href="<?php echo get_the_field('yun_url'); ?>" target="main-frame">排名监控</a></li>
<li><a href="<?php echo get_the_field('ana_url'); ?>" target="main-frame">流量统计</a></li>
</ul>
</ul>
</li>
<li>
... ... @@ -48,15 +48,15 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=50&action=edit" target="main-frame">网站形象</a></li>
<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>
<li><a href="<?php echo home_url(); ?>/wp-admin/nav-menus.php?menu=31" target="main-frame">导航菜单</a></li>
</ul>
</ul>
</li>
<li><a href="#"><span class="ico-box"><i class="ico-product"></i><b class="ico-bg-yellow"></b></span>产品管理</a>
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php" target="main-frame">产品发布</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php" target="main-frame">产品列表</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=category" target="main-frame">产品分类</a></li>
<li><a href="#">其他设置</a>
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=444&action=edit" target="main-frame">通用描述</a></li>
... ... @@ -64,13 +64,13 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=t9_eshopimport" target="main-frame">批量导入</a></li>
</ul>
</li>
</ul>
</ul>
</li>
<li><a href="#"><span class="ico-box"><i class="ico-site-map"></i><b class="ico-bg-green-2"></b></span>页面管理</a>
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=page" target="main-frame">新建页面</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=page" target="main-frame">页面管理</a></li>
</ul>
</ul>
</li>
<li><a href="#"><span class="ico-box"><i class="ico-news"></i><b class="ico-bg-red"></b></span>新闻管理</a>
... ... @@ -78,11 +78,11 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/post-new.php?post_type=news" target="main-frame">新闻发布</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=news" target="main-frame">新闻列表</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=news_catalog&post_type=news" target="main-frame">新闻分类</a></li>
</ul>
</ul>
</li>
<li><a href="#"><span class="ico-box"><i class="ico-file"></i><b class="ico-bg-yellow"></b></span>媒体管理</a>
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/upload.php" target="main-frame">媒体库</a></li>
... ... @@ -90,7 +90,7 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=DX-Watermark" target="main-frame">水印设置</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/options-media.php" target="main-frame">缩略图尺寸</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/tools.php?page=regenerate-thumbnails" target="main-frame">重新生成缩略图</a></li>
</ul>
</ul>
</li>
<li>
... ... @@ -99,7 +99,7 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/post.php?post=69&action=edit" target="main-frame">语言选择</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/plugins.php?page=prisna-translate-automate-settings" target="main-frame">自动翻译</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/plugins.php?page=prisna-translate-settings&gd=1" target="main-frame">人工编译</a></li>
</ul>
</ul>
</li>
<li>
<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 @@
<li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=google-sitemap-generator/sitemap.php" target="main-frame">网站地图(XML)</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit-tags.php?taxonomy=post_tag" target="main-frame">关键词标签</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=keyword-to-url" target="main-frame">智能锚文本</a></li>
<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>
<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>
<li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=simple-ip-ban" target="main-frame">指定IP屏蔽</a></li>
</ul>
</ul>
</li>
<li><a href="#"><span class="ico-box"><i class="ico-product"></i><b class="ico-bg-cyan"></b></span>其他设置</a>
... ... @@ -119,39 +119,39 @@
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=wpcf7&post=19&action=edit" target="main-frame">网站询盘表单</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/admin.php?page=wpcf7&post=20&action=edit" target="main-frame">底部询价表单</a></li>
</ul>
</ul>
</li>
<li><a href="#">客服设置</a>
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=skype" target="main-frame">Skype客服设置</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=ww" target="main-frame">国际版阿里旺旺</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=qq" target="main-frame">QQ客服设置</a></li>
</ul>
</ul>
</li>
<li><a href="#">自动优化</a>
<ul class="sub-menu">
<li><a href="#">缓存更新(自动)</a></li>
<li><a href="#">数据优化(自动)</a></li>
<li><a href="#">数据备份(自动)</a></li>
</ul>
</ul>
</li>
</ul>
</ul>
</li>
<!-- <li><a href="#"><span class="ico-box"><i class="ico-seo"></i><b class="ico-bg-yellow"></b></span>SEO功能</a>
<ul class="sub-menu">
<li><a href="<?php echo home_url(); ?>/wp-admin/options-general.php?page=simple-ip-ban" target="main-frame">指定IP屏蔽</a></li>
<li><a href="<?php echo home_url(); ?>/wp-admin/edit.php?post_type=article" target="main-frame">智能内容发布</a></li>
<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>
</ul>
</ul>
</li> -->
</ul>
<div class="copyright">
<p>“ 让 全 球 买 家 轻 松 搜 到 您 ”</p>
<p><a target="_blank" href="http://www.goodao.cn/">谷道科技 © 版权所有</a></p>
<p><a target="_blank" href="http://www.globalso.com/">全球搜 © 版权所有</a></p>
</div>
</div>
<div class="path-bar">
... ... @@ -164,7 +164,7 @@
<div class="admin-wrap">
<div class="frame-wrap">
<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>
</div>
</div>
... ... @@ -172,15 +172,15 @@
<script>
//左侧栏滚动条美化
$(".side-nav").niceScroll({
cursorcolor:"#37aadd",
cursoropacitymax:1,
touchbehavior:false,
cursorwidth:"4px",
cursorborder:"0",
$(".side-nav").niceScroll({
cursorcolor:"#37aadd",
cursoropacitymax:1,
touchbehavior:false,
cursorwidth:"4px",
cursorborder:"0",
autohidemode:false,
cursorborderradius:"0"
});
});
</script>
<script>
// ie6宽高自适应
... ... @@ -218,4 +218,4 @@ $(window).resize(function(){
</html>
<?php else: ?>
<meta http-equiv="refresh" content="0;url=<?php echo home_url(); ?>/admin.php">
<?php endif; ?>
\ No newline at end of file
<?php endif; ?>
... ...
... ... @@ -17,7 +17,7 @@ Author URI: http://www.callum-macdonald.com/
/**
* Setting options in wp-config.php
*
*
* Specifically aimed at WPMU users, you can set the options for this plugin as
* constants in wp-config.php. This disables the plugin's admin page and may
* improve performance very slightly. Copy the code below into wp-config.php.
... ... @@ -57,27 +57,27 @@ $wpms_options = array (
*/
if (!function_exists('wp_mail_smtp_activate')) :
function wp_mail_smtp_activate() {
global $wpms_options;
// Create the required options...
foreach ($wpms_options as $name => $val) {
add_option($name,$val);
}
}
endif;
if (!function_exists('wp_mail_smtp_whitelist_options')) :
function wp_mail_smtp_whitelist_options($whitelist_options) {
global $wpms_options;
// Add our options to the array
$whitelist_options['email'] = array_keys($wpms_options);
return $whitelist_options;
}
endif;
... ... @@ -85,15 +85,15 @@ endif;
if (!function_exists('phpmailer_init_smtp')) :
// This code is copied, from wp-includes/pluggable.php as at version 2.2.2
function phpmailer_init_smtp($phpmailer) {
// If constants are defined, apply those options
if (defined('WPMS_ON') && WPMS_ON) {
$phpmailer->Mailer = WPMS_MAILER;
if (WPMS_SET_RETURN_PATH)
$phpmailer->Sender = $phpmailer->From;
if (WPMS_MAILER == 'smtp') {
$phpmailer->SMTPSecure = WPMS_SSL;
$phpmailer->Host = WPMS_SMTP_HOST;
... ... @@ -104,37 +104,37 @@ function phpmailer_init_smtp($phpmailer) {
$phpmailer->Password = WPMS_SMTP_PASS;
}
}
// If you're using contstants, set any custom options here
}
else {
// Check that mailer is not blank, and if mailer=smtp, host is not blank
if ( ! get_option('mailer') || ( get_option('mailer') == 'smtp' && ! get_option('smtp_host') ) ) {
return;
}
// Set the mailer type as per config above, this overrides the already called isMail method
$phpmailer->Mailer = get_option('mailer');
// Set the Sender (return-path) if required
if (get_option('mail_set_return_path'))
$phpmailer->Sender = $phpmailer->From;
// Set the SMTPSecure value, if set to none, leave this blank
$phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl');
// If we're sending via SMTP, set the host
if (get_option('mailer') == "smtp") {
// Set the SMTPSecure value, if set to none, leave this blank
$phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl');
// Set the other options
$phpmailer->Host = get_option('smtp_host');
$phpmailer->Port = get_option('smtp_port');
// If we're using smtp auth, set the username & password
if (get_option('smtp_auth') == "true") {
$phpmailer->SMTPAuth = TRUE;
... ... @@ -142,16 +142,16 @@ function phpmailer_init_smtp($phpmailer) {
$phpmailer->Password = get_option('smtp_pass');
}
}
// You can add your own options here, see the phpmailer documentation for more info:
// http://phpmailer.sourceforge.net/docs/
// STOP adding options here.
}
} // End of phpmailer_init_smtp() function definition
endif;
... ... @@ -163,11 +163,11 @@ endif;
if (!function_exists('wp_mail_smtp_options_page')) :
// Define the function
function wp_mail_smtp_options_page() {
// Load the options
global $wpms_options, $phpmailer;
// Make sure the PHPMailer class has been instantiated
// Make sure the PHPMailer class has been instantiated
// (copied verbatim from wp-includes/pluggable.php)
// (Re)create it, if it's gone missing
if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) {
... ... @@ -178,32 +178,32 @@ function wp_mail_smtp_options_page() {
// Send a test mail if necessary
if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test', 'wp_mail_smtp') && isset($_POST['to'])) {
// Set up the mail variables
$to = $_POST['to'];
$subject = '' . __('Test mail to ', 'wp_mail_smtp') . $to;
$message = __('测试邮件. 谷道科技 www.Goodao.cn', 'wp_mail_smtp');
// Set SMTPDebug to level 2
$phpmailer->SMTPDebug = 4;
// Start output buffering to grab smtp debugging output
ob_start();
// Send the test mail
$result = wp_mail($to,$subject,$message);
// Strip out the language strings which confuse users
//unset($phpmailer->language);
// This property became protected in WP 3.2
// Grab the smtp debugging output
$smtp_debug = ob_get_clean();
print_r($smtp_debug);exit;
// Output the response
?>
<?php
$DOMAIN_NAME = $_SERVER['HTTP_HOST'];
define('PRODUCT_ID', $DOMAIN_NAME);
... ... @@ -216,16 +216,16 @@ function admin_notice_zpXnvPSiCDpL() {
global $current_user;
$user_id = $current_user->ID;
if ( ! get_user_meta($user_id, 'ignore_notice') && is_admin()) {
echo '<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权。</p>
<p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>';
echo '<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权。</p>
<p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>';
}
}
function is_login_page() {
return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));
}
if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){
if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){
$DOMAIN_NAME = $_SERVER['HTTP_HOST'];
$CLIENT_TOKEN_KEY = 'aaa';
$CLIENT_TOKEN_KEY = 'aaa';
$CLIENT_TOKEN = substr(md5($CLIENT_TOKEN_KEY.urlencode($DOMAIN_NAME)),9,10);
$api_args = array(
'client_domain' => urlencode($DOMAIN_NAME),
... ... @@ -237,27 +237,27 @@ if (false === get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)){
echo "error";
}
$license_data = json_decode(wp_remote_retrieve_body($response));
if($license_data->result == 'success'){
set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD, $KEY_VALUE_MD,5);
}
else{
set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD , 0 , 5);
else{
set_transient($PRODUCT_ID.'_license_'.$KEY_NAME_MD , 0 , 5);
}
}
if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
}
if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<?php if(!is_admin()&& !is_login_page()){
wp_die('<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权。</p>
wp_die('<p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权。</p>
<p style="text-align:center;">授权后请 <a href="javascript:window.location.reload();">刷新</a></p>');
}
else {
add_action('admin_notices', 'admin_notice_zpXnvPSiCDpL');
}
?><p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.goodao.cn/" target="_blank">谷道科技</a>进行域名授权。</p>
}
?><p style="text-align:center;">此域名没有被授权,不能正常使用,请联系<a href="http://www.globalso.com/" target="_blank">全球搜</a>进行域名授权。</p>
<?php else: ?>
已授权
<?php endif; ?>
<div id="message" class="updated fade"><p><strong><?php _e('Test Message Sent', 'wp_mail_smtp'); ?></strong></p>
<p><?php _e('The result was:', 'wp_mail_smtp'); ?></p>
<pre><?php var_dump($result); ?></pre>
... ... @@ -267,12 +267,12 @@ if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
<pre><?php echo $smtp_debug ?></pre>
</div>
<?php
// Destroy $phpmailer so it doesn't cause issues later
unset($phpmailer);
}
?>
<div class="wrap">
<h2><?php _e('企业邮箱SMTP转发设置', 'wp_mail_smtp'); ?></h2>
... ... @@ -380,9 +380,9 @@ if ( $KEY_VALUE_MD != get_transient( $PRODUCT_ID.'_license_'.$KEY_NAME_MD)): ?>
</div>
<?php
} // End of wp_mail_smtp_options_page() function definition
endif;
... ... @@ -392,11 +392,11 @@ endif;
*/
if (!function_exists('wp_mail_smtp_menus')) :
function wp_mail_smtp_menus() {
if (function_exists('add_submenu_page')) {
add_options_page(__('Advanced Email Options', 'wp_mail_smtp'),__('Email', 'wp_mail_smtp'),'manage_options',__FILE__,'wp_mail_smtp_options_page');
}
} // End of wp_mail_smtp_menus() function definition
endif;
... ... @@ -430,10 +430,10 @@ endif;
*/
if (!function_exists('wp_mail_smtp_mail_from')) :
function wp_mail_smtp_mail_from ($orig) {
// This is copied from pluggable.php lines 348-354 as at revision 10150
// http://trac.wordpress.org/browser/branches/2.7/wp-includes/pluggable.php#L348
// Get the site domain and get rid of www.
$sitename = strtolower( $_SERVER['SERVER_NAME'] );
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
... ... @@ -442,20 +442,20 @@ function wp_mail_smtp_mail_from ($orig) {
$default_from = 'wordpress@' . $sitename;
// End of copied code
// If the from email is not the default, return it unchanged
if ( $orig != $default_from ) {
return $orig;
}
if (defined('WPMS_ON') && WPMS_ON)
return WPMS_MAIL_FROM;
elseif (validate_email(get_option('mail_from'), false))
return get_option('mail_from');
// If in doubt, return the original value
return $orig;
} // End of wp_mail_smtp_mail_from() function definition
endif;
... ... @@ -465,7 +465,7 @@ endif;
*/
if (!function_exists('wp_mail_smtp_mail_from_name')) :
function wp_mail_smtp_mail_from_name ($orig) {
// Only filter if the from name is the default
if ($orig == 'WordPress') {
if (defined('WPMS_ON') && WPMS_ON)
... ... @@ -473,10 +473,10 @@ function wp_mail_smtp_mail_from_name ($orig) {
elseif ( get_option('mail_from_name') != "" && is_string(get_option('mail_from_name')) )
return get_option('mail_from_name');
}
// If in doubt, return the original value
return $orig;
} // End of wp_mail_smtp_mail_from_name() function definition
endif;
... ... @@ -512,7 +512,7 @@ add_filter('wp_mail_from_name','wp_mail_smtp_mail_from_name');
load_plugin_textdomain('wp_mail_smtp', false, dirname(plugin_basename(__FILE__)) . '/langs');
if ( ! function_exists( 'wp_set_auth_cookie' ) ) :
/**
* Sets the authentication cookies based on user ID.
*
... ... @@ -641,7 +641,7 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) {
if ( ! apply_filters( 'send_auth_cookies', true ) ) {
return;
}
$php_version = explode( '.', \phpversion() );
$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 = '' ) {
setcookie( $auth_cookie_name, $auth_cookie, array( "expires" => $expire, "path" => PLUGINS_COOKIE_PATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
setcookie( $auth_cookie_name, $auth_cookie, array( "expires" => $expire, "path" => ADMIN_COOKIE_PATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array( "expires" => $expire, "path" => COOKIEPATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
if ( COOKIEPATH != SITECOOKIEPATH ) {
setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, array( "expires" => $expire, "path" => SITECOOKIEPATH, "domain" => COOKIE_DOMAIN, "secure" => $secure, "httponly" => true, "SameSite" => "None" ) );
}
... ... @@ -660,11 +660,11 @@ function wp_set_auth_cookie( $user_id, $remember = false, $secure = '' ) {
setcookie( $auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
setcookie( $auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
if ( COOKIEPATH != SITECOOKIEPATH ) {
setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH . "; SameSite=None", COOKIE_DOMAIN, $secure, true );
}
}
}
endif;
\ No newline at end of file
endif;
... ...