session_start(); include $_SERVER[DOCUMENT_ROOT] . "/common/conf/config.inc.php"; if(!$_SESSION[$_SITE["DOMAIN"]]["SESSIONID"]){ $_SESSION[$_SITE["DOMAIN"]]["SESSIONID"] = md5(rand().microtime());//쇼핑몰 고유 세션 아이디 } //하루에 한번만 로그를 기록함 include $_SERVER[DOCUMENT_ROOT] . "/module/log/log.lib.php"; if($_COOKIE[websight_log_count]!="1"){ setcookie("websight_log_count", "1", time()+(86400), "/", $_SITE["DOMAIN"]); $dblink = SetConn($_conf_db["main_db"]); insertLog(); } if ($handle = opendir($_SERVER[DOCUMENT_ROOT] . "/images/")) { $cc=0; while (false !== ($sns_file = readdir($handle))) { if (strpos($sns_file, 'sns_link') !== false) { $sns_icon = $sns_file; } } } ?>