*/?> @media screen and (max-width: 849px) { .feedback-btn { display:none; } } */?>
'; //print_r($domains); $data = $keyword = $og_description = ''; $vs_ok = true; foreach($domains as $domain){ $www = explode('.', $domain); if($www[0] == 'www'){ $domain = substr($domain, 4); } $stmt = $db->prepare("SELECT * FROM site WHERE part = 0 AND domain = ?"); $stmt->execute([$domain]); $row = $stmt->fetch(); $is_exist = true; if(empty($row['domain'])){ //$row['moditime'] $is_exist = false; } if(!$is_exist){ $result = $extract->parse($domain); if(!$result->isValidDomain()){ //도메인 형식이 맞는지 확인 //echo 'FAIL_1:'.$domain; exit; $vs_ok = false; }else{ $domain = $result->getRegistrableDomain(); } if(!checkdnsrr($domain, 'A')){ //API 쿼리, DB 자원 소모전 DNS 체크 //echo 'FAIL_1:'.$domain; exit; //dns 에 없으면 exit $vs_ok = false; } } $keyword .= $domain.", "; $og_description .= $domain.' and '; $data .= ucfirst($domain)." vs "; } $og_description = substr($og_description , 0, -5).''; $data = ''.substr($data , 0, -4).''; $title = $data.''; $description = $data; } else{ $title = 'Web Statistics and Analysis and Comparison - SiteWarz'; } ?>