// Domain class $server_name = $_SERVER['SERVER_NAME']; $http_host = $_SERVER['HTTP_HOST']; $s = explode('.', $server_name); $h = explode('.', $http_host); preg_match("/^(http:\/\/)?([^\/]+)/i", $http_host, $matches); $host = $matches[2]; // get host name from URL preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches); $domain = $matches[0]; // get last two segments of host name if ($server_name !== $domain){$domain_class = $s[0];} ?>
Honlapunk a TÁMOP-3.2.4/09/1/KMR – 2010-0022 projekt a „Tudásdepó - Expressz” – A könyvtári hálózat nem formális és informális szerepének erősítése az élethosszig tartó tanulás érdekében című pályázat keretében valósult meg.
Ön a 1658078. látogatónk!