$referer = $_SERVER['HTTP_REFERER']; if (preg_match('/export/i', $referer)) header('Location: export.php'); else if (preg_match('/harakiri|mayrhofen/i', $referer)) header('Location: http://semtracking.uibk.ac.at/Harakiri2010/'); else if (preg_match('/montafon|m3/i', $referer)) header('Location: http://semtracking.uibk.ac.at/Montafon2010/'); else if (preg_match('/semel02/i', $_SERVER['HTTP_HOST'])) header('Location: http://semtracking.uibk.ac.at/'); ?>