﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title>V.I.C. - Was ist die V.I.C.?</title>
			<?php
				require_once("country.php");
				require_once("DomainLibrary.php");
			?>
	</head>
	
	<body>
		<?php
		//overhand language
			$lang = "de";	
			if (isset($_GET["language"]))
			{
				$lang = $_GET["language"];
			}	
			$_SESSION["language"] = $lang;
			
		//Datenbank-Anbindung DomainManager
			
			require_once("DomainLibrary.php");
			
			$domain_list = domainmanager::readDomainList();
			
			if ($lang == "de")
			{
				echo '<h1>Wer ist dabei?</h1>';
				echo '<p>Hier eine grobe Übersicht aller Domänen die mitmachen. Um nähere Informationen über die einzelnen Domänen zu bekommen einfach auf die Länder oder Domänen klicken.</p>';
				
				$country_list = $country_list_de;
			}
			else
			{
				echo '<h1>Who is member?</h1>';
				echo '<p>Here are some information about the german domains. To get closer information about the single domains, please click on the countries of each domain.</p>';
				
				$country_list = $country_list_en;
			}
			
			echo '<ul>';
			for ($i=0; $i<count($country_list); $i++)
			{
				//at the moment no hungary
				if ($i==5) {
					continue;
				}
				echo '<li>';
					echo $country_list[$i];
				echo '</li>';

				$country_id = $i;
				echo '<ul>';
				domain_lister_without_links($country_id, $lang);
				echo '</ul>';
			}
			echo '</ul>';
		?>
	</body>
</html>