if($logcorp_xml_send != true){ $ptc = strstr($_SERVER['SERVER_PROTOCOL'],"HTTPS") ? "https://" : "http://"; if(!isset($_SESSION)) @session_start(); $logsrid = $_COOKIE['logsrid']; if($logsrid == ""){ $microtime = split("\.", microtime(true)); $logsrid = substr(md5(session_id()),0,26)."-".date("Ymd") . substr($microtime[0], -5). substr($microtime[1], 0, 2); } if(session_id()){ $_SESSION['logsid']=md5(session_id()); $_SESSION['logref']=urlencode($_SERVER['HTTP_REFERER']); $logcorp_pV = "logra=".$_SERVER['REMOTE_ADDR']."&logsid=".md5(session_id())."&logsrid=".$logsrid."&logua=".urlencode($_SERVER['HTTP_USER_AGENT'])."&logha=".urlencode($_SERVER['HTTP_ACCEPT'])."&logref=".urlencode($_SERVER['HTTP_REFERER'])."&logurl=".urlencode($ptc.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])."&cdkey=kote0908&asp=suite"; $logcorp_headers = "GET /jserverjp.php?".$logcorp_pV." HTTP/1.0\r\nHost: j1.log-marketing.jp\r\nConnection: Close\r\n\r\n"; $logcorp_fp = @fsockopen("j1.log-marketing.jp", 80, $errno, $errstr,0.2); if($logcorp_fp) { fwrite($logcorp_fp, $logcorp_headers); fclose($logcorp_fp); } $logcorp_xml_send = True; setcookie("logsrid", $logsrid, time()+259200000, "/",str_replace("www.","",$_SERVER['SERVER_NAME'])); } } ?>