<commit_before><?php
	require_once(dirname(__FILE__) . '/../constants.php');
	require_once(dirname(__FILE__) . '/../common.php');
	require_once(dirname(__FILE__) . '/../multilanguage.php');
	require_once(dirname(__FILE__) . '/../idna_convert.class.php');
	require_once(dirname(__FILE__) . '/../stripslashes.php');
	
	$languageId = DEFAULT_LANGUAGE_ID;
	if ((isset($_GET['lang'])) && (isset($translationMap[$_GET['lang']])))
	{
		$languageId = $_GET['lang'];
	}
	
	$permalinkId = 0;
	$permalinkView = 0;
	$permalinkDomain = '';
	if ((isset($_GET['id'])) && (isset($_GET['time'])) && (isset($_GET['view'])) && (in_array($_GET['view'], array('basic', 'advanced'))))
	{
		$testId = intval($_GET['id']);
		$testTime = intval($_GET['time']);
		
		$query = "SELECT id, domain FROM tests WHERE id = $testId AND UNIX_TIMESTAMP(begin) = $testTime";
		$result = null;
		$status = DatabasePackage::query($query, $result);
		if ((true === $status) && (1 == count($result)))
		{
			$permalinkId = intval($result[0]['id']);
			
			$IDN = new idna_convert();
			$permalinkDomain = $IDN->decode($result[0]['domain']);
			
			$permalinkView = (('basic' == $_GET['view']) ? 1 : 2);
		}
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="_js/jquery-1.2.2.min.js"></script>
<script type="text/javascript" src="_js/DNSCheck.js?20080218_1622"></script>
<script type="text/javascript">
	var domainDoesNotExistHeader = "<?php echo(translate("Domain doesn't exist"));?>";
	var domainDoesNotExistLabel = "<?php echo(translate("The domain you entered doesn't seem to be registered"));?>";
	var loadingHeader = "<?php echo(translate("Loading"));?>";
	var loadingLabel = "<?php echo(translate("Waiting for the test results to be loaded"));?>";
	var okHeader = "<?php echo(translate("All tests are ok"));?>";
	var warningHeader = "<?php echo(translate("Warnings found in test"));?>";
	var errorHeader = "<?php echo(translate("Errors found in test"));?>";
	var languageId = "<?php echo($languageId)?>";
	var permalinkId = <?php echo((0 < $permalinkId) ? $permalinkId : 'null');?>;
	var permalinkView = <?php echo($permalinkView)?>;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DNSCheck</title>
<link href="_css/dnscheck.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="wrapper">

	<div id="top">
		<h1 id="logo_dnscheck"><a href="#dnscheck">DNSCheck</a></h1><commit_msg>More informative message during testing in GUI.<commit_after><?php
	require_once(dirname(__FILE__) . '/../constants.php');
	require_once(dirname(__FILE__) . '/../common.php');
	require_once(dirname(__FILE__) . '/../multilanguage.php');
	require_once(dirname(__FILE__) . '/../idna_convert.class.php');
	require_once(dirname(__FILE__) . '/../stripslashes.php');
	
	$languageId = DEFAULT_LANGUAGE_ID;
	if ((isset($_GET['lang'])) && (isset($translationMap[$_GET['lang']])))
	{
		$languageId = $_GET['lang'];
	}
	
	$permalinkId = 0;
	$permalinkView = 0;
	$permalinkDomain = '';
	if ((isset($_GET['id'])) && (isset($_GET['time'])) && (isset($_GET['view'])) && (in_array($_GET['view'], array('basic', 'advanced'))))
	{
		$testId = intval($_GET['id']);
		$testTime = intval($_GET['time']);
		
		$query = "SELECT id, domain FROM tests WHERE id = $testId AND UNIX_TIMESTAMP(begin) = $testTime";
		$result = null;
		$status = DatabasePackage::query($query, $result);
		if ((true === $status) && (1 == count($result)))
		{
			$permalinkId = intval($result[0]['id']);
			
			$IDN = new idna_convert();
			$permalinkDomain = $IDN->decode($result[0]['domain']);
			
			$permalinkView = (('basic' == $_GET['view']) ? 1 : 2);
		}
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="_js/jquery-1.2.2.min.js"></script>
<script type="text/javascript" src="_js/DNSCheck.js?20080218_1622"></script>
<script type="text/javascript">
	var domainDoesNotExistHeader = "<?php echo(translate("Domain doesn't exist"));?>";
	var domainDoesNotExistLabel = "<?php echo(translate("The domain you entered doesn't seem to be registered"));?>";
	var loadingHeader = "<?php echo(translate("Testing"));?>";
	var loadingLabel = "<?php echo(translate("Testing your domain, please wait!"));?>";
	var okHeader = "<?php echo(translate("All tests are ok"));?>";
	var warningHeader = "<?php echo(translate("Warnings found in test"));?>";
	var errorHeader = "<?php echo(translate("Errors found in test"));?>";
	var languageId = "<?php echo($languageId)?>";
	var permalinkId = <?php echo((0 < $permalinkId) ? $permalinkId : 'null');?>;
	var permalinkView = <?php echo($permalinkView)?>;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DNSCheck</title>
<link href="_css/dnscheck.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="wrapper">

	<div id="top">
		<h1 id="logo_dnscheck"><a href="#dnscheck">DNSCheck</a></h1>
{'fraction_non_alphanumeric': 0.22844323058915333, 'fraction_numerical': 0.01443620756925478, 'mean_word_length': 5.581514762516046, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1977339', 'n_tokens_mistral': 1906, 'n_tokens_neox': 1789, 'n_words': 352}