HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/frameMyrskyNew/header.php.bak
<?php
//p#17 @lushixin @2010-4-27
include_once("customer_tracking_wp.php");
handle_customer_tracking_wp();
// Creating the doctype
thematic_create_doctype();
echo " ";
language_attributes();
echo ">\n";

// Creating the head profile
thematic_head_profile();

// Creating the doc title
thematic_doctitle();

// Creating the content type
thematic_create_contenttype();

// Creating the description
thematic_show_description();

// Creating the robots tags
thematic_show_robots();

// Creating the canonical URL
thematic_canonical_url();

// Loading the stylesheet
thematic_create_stylesheet();

// Creating the internal RSS links
thematic_show_rss();

// Creating the comments RSS links
thematic_show_commentsrss();

// Creating the pingback adress
thematic_show_pingback();

// Enables comment threading
thematic_show_commentreply();

// Calling WordPress' header action hook
wp_head();
?>
<script
	type="text/javascript"
	src="<?php bloginfo('stylesheet_directory');?>/js/led.js"></script>
<script
	type="text/javascript"
	src="<?php bloginfo('stylesheet_directory');?>/js/jquery1.7.2.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/easySlider.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/common.js"></script>
<script>
$(function(){
	$("#phone").mouseover(function(){var offset = $(this).offset();$("#phone_img").css('top',offset.top+30).css('left',offset.left-250).fadeIn();}).mouseout(function(){$("#phone_img").fadeOut();})})
</script>
<?php
//Bug #7485 lxq 2012-09-28 myrsky添加google头。
include_once("config.php");
global $servers;
if(!$servers["is_test_web"]){ ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1423049-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<?php } ?>
<style>
	.contact_type{margin:2px;}
</style>
</head>

<body class="html">
<?
$crm_url_link = CRM_URL;
if(empty($crm_url_link)){
	$crm_url_link = "http://".$_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT'];
}

if(get_page_by_title("login")){
	//$login_link = get_page_link(get_page_by_title("login")->ID);
	$login_link = $crm_url_link."/login/";
}elseif(get_page_by_title("Login")){
	//$login_link = get_page_link(get_page_by_title("Login")->ID);
	$login_link = $crm_url_link."/Login/";
}elseif(get_page_by_title("客户登录")){
	//$login_link = get_page_link(get_page_by_title("Login")->ID);
	$login_link = $crm_url_link."/客户登录/";
}else{
	$login_link = $crm_url_link."/ERP/signin.php";
}
if(get_page_by_title("register")){
	//$register_link = get_page_link(get_page_by_title("register")->ID);
	$register_link = $crm_url_link."/register/";
}elseif(get_page_by_title("Register")){
	//$register_link = get_page_link(get_page_by_title("Register")->ID);
	$register_link = $crm_url_link."/Register/";
}elseif(get_page_by_title("用户注册")){
	//$register_link = get_page_link(get_page_by_title("Register")->ID);
	$register_link = $crm_url_link."/用户注册/";
}else{
	$register_link =$crm_url_link."/ERP/register/register_new_user.php?from=".$_SERVER['SERVER_NAME'];
}
?>	 
	<div class="main">
		<div class="logo">
			<a href="http://<? echo $_SERVER['SERVER_NAME'];?>" style="text-decoration: none;">
				<div style="cursor: pointer;">
					<h2></h2>
				</div>
			</a>
			<!-- <p><a rel="nofollow" class="logo_btn_reg" href="<? echo $register_link;?>"></a></p>
			<p><a class="logo_btn_login"  rel="nofollow" href="<? echo $login_link;?>"></a></p> -->
			<p>
			<button class="btn-hover btn-small color-9" style="margin-bottom:5px;"><a  href="<? echo $login_link;?>" style="font-weight: bold;color: #fff;">登录</a></button><br>
			<button class="btn-hover btn-small color-9"><a  href="<? echo $register_link;?>" style="font-weight: bold;color: #fff;">注册</a></button>
			</p>
			<p style="margin:20px 15px 0 0 ;padding: 0 0 0 0;"></p>
			<p align="right" style="display:none">
				<!-- livezilla.net PLACE WHERE YOU WANT TO SHOW GRAPHIC BUTTON -->
				<a href="javascript:void(window.open('//chat.myrsky.com.cn:8090/chat.php?hfk=MQ__','','width=400,height=600,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))" class="lz_cbl"><span class="onlineservice"  alt="LiveZilla Live Chat Software"></span></a>
				<!-- livezilla.net PLACE WHERE YOU WANT TO SHOW GRAPHIC BUTTON -->

				<!-- livezilla.net PLACE SOMEWHERE IN BODY -->
				<div id="lvztr_04d" style="display:none"></div><script id="lz_r_scr_75d6b9975ef4f62e221cefec725671e5" type="text/javascript" defer>lz_code_id="75d6b9975ef4f62e221cefec725671e5";var script = document.createElement("script");script.async=true;script.type="text/javascript";var src = "//chat.myrsky.com.cn:8090/server.php?rqst=track&output=jcrpt&hfk=MQ__&nse="+Math.random();script.src=src;document.getElementById('lvztr_04d').appendChild(script);</script>
				<!-- livezilla.net PLACE SOMEWHERE IN BODY -->			
			</p>
			<p style="padding-right:0px;display:none">
				<img class="contact_type" style="CURSOR: pointer;padding-right:8px;" onclick="javascript:window.open('tencent://message/?uin=892893540&amp;Site=www.myrsky.com.cn&amp;Menu=yes');" border="0" src="http://wpa.qq.com/pa?p=2:892893540:4" /><br>
				<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=rob33:kancy357&site=cntaobao&s=2&charset=utf-8">
					<img class="contact_type" src="http://amos.im.alisoft.com/online.aw?v=2&uid=rob33:kancy357&site=cntaobao&s=2&charset=utf-8" alt="点击这里给我发消息"/>
				</a><br>
				<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=rob33:chengnian&site=cntaobao&s=2&charset=utf-8">
					<img class="contact_type" src="http://amos.im.alisoft.com/online.aw?v=2&uid=rob33:chengnian&site=cntaobao&s=2&charset=utf-8" alt="点击这里给我发消息" />
				</a>
			</p>
			<p align="left">
			<? _e("") ?>
				<br />
				<? _e("手机:17723900900") ?>
				<br /> <a href="mailto:scb@cqfusjy.com "><? _e("scb@cqfusjy.com") ?>
				</a> <br />
			</p>
			<p style="padding-top: 10px;padding-right: 20px;">
				<button class="btn-hover color-4"><a href ="/url_check.php?url=<?php echo urlencode($crm_url_link."/电路板下单/线路板报价-2");?>" style="font-size: 21px;font-weight: bold;color: #fff;">立即询价</a></button>
				 <!-- <a class="logo_btn_online" href ="/url_check.php?url=<?php echo urlencode($crm_url_link."/电路板下单/线路板报价-2");?>"></a> -->
			</p>
			<p class="logo_font" style="float:left;top:18px;left:-33px;">
				<label class="logo_font_maintitile">富世嘉业电子科技有限公司</label>
				<!--<label class="logo_font_subtitle">Myrsky Electronic Science and Technology (Tianjin) Inc.</label>-->
			</p>
		</div>
	</div>
	<div style="clear: both;"></div>
	<!-- <div style="width:auto;height: 3px;background-color: #7F7F7F;"></div> -->
	<div class="head_menu">
		<div style="width:960px;margin:0 auto;">
		<ul class="sf-menu sf-js-enabled">
			<img src="<?php bloginfo('stylesheet_directory');?>/images/phone.jpg"
				id="phone_img"
				style="position: absolute; z-index: 1000; display: none;">
				<?
				//$config_path = getcwd()."/config.php";
				$config_path = dirname(__FILE__)."/config.php";
				$config_path = str_replace("\\","/",$config_path);
				if(file_exists($config_path))include_once($config_path);
				global $not_in_menu;
				if(!is_array($not_in_menu)) $not_in_menu = array();
				$pages = get_pages('sort_column=menu_order');
				foreach($pages as $page){
					if(in_array($page->post_title,$not_in_menu)) continue;
					if(in_array($page->post_title,array("客户登录","用户注册","购物车","产品展示","设备展示","ISO认证","PCB询价","PCBA询价",'购物车','product-list','product-detail',"网站地图","今日特价","今日特价信息"))) continue;
					if($page->post_parent == 0){
						$title_array["$page->ID"][0] = $page->post_title;
					}else{
						if(get_page($page->post_parent)->post_parent == 0)
						$title_array["$page->post_parent"]["$page->ID"] = $page->post_title;
						//echo $title_array['$page->post_parent'] = $page->ID;
						//echo "<li><a href='".get_page_link($page->post_parent)."'><span>".$page->post_title."</span></a><ul>";
						//echo "</ul></li>";
					}
				}
				//var_dump($title_array);
				foreach($title_array as $key => $value){
					if(count($value) == 1){
						if(strtoupper($title_array[$key][0])=="MY CART"){
							$cart_key = $key;
							//echo "<li><a href='".get_page_link($key)."' style='color:#ff9933'><span>".$title_array[$key][0]."</span></a></li>";
						}else{
							echo "<li><a href='".format_by_crm(get_page_link($key),$title_array[$key][0])."'><span>".$title_array[$key][0]."</span></a></li>";
						}
					}elseif(count($value) > 1){
						echo "<li><a href='".format_by_crm(get_page_link($key),$title_array[$key][0])."'><span>".$title_array[$key][0]."</span></a><ul class=\"sub-menu\">";
						foreach($value as $key2 => $temp){
							if($key2 != 0){
								echo "<li><a href='".format_by_crm(get_page_link($key2),$temp)."'>".$temp."</a></li>";
							}
						}
						echo "</ul></li>";
					}

				}
				
				function format_by_crm($url,$title){
					$crm_page = getCRMPage();
					$crm_url = CRM_URL;
					if(empty($crm_url)||empty($crm_page)){
						return $url;
					}
					$home_url = get_option('home');
					if(in_array($title,$crm_page)){
						$url = str_ireplace($home_url,$crm_url,$url);
						$url = $home_url.'/url_check.php?url='.urlencode($url);
					}
					return $url;
				}
				?>
			<div class="head_search">
				<form method="get" id="searchform"
					action="<?php bloginfo('home'); ?>">
					<div width="240" style="    background: #1890ff;width: 186px;height: 100%;border-top-right-radius: 3px;border-bottom-right-radius: 3px;border:1px #ccc solid;">
						<input type="text" style="vertical-align:top;width: 152px;float: left;" value="" name="s" id="s" />
						<input type="submit" id="searchsubmit" value="" style="cursor: pointer;"/>
						
					</div>
				</form>
			</div>

		</ul>
		</div>
		<div class="clear"></div>
	</div>
	<?php $page_id=get_the_ID(); 
	if($page_id==2){
	?>
	<span class="ifocus_bg"></span>
	<?php } ?>
	<div class="contents">