From 1a0f7746667c91bb81ef8c0c391943ff8bc8781a Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 6 Jul 2011 16:55:20 +0000 Subject: catch /?fromtld=$tld requests: new tld_redirect() --- langs.inc.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index 7409f5b9d..db65777de 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -48,6 +48,21 @@ $domains_lang = array( * Redirect to a localized path, depending on incoming TLD. * Only manages redirections to main home path. * + * @param string $tld + * @param array $domains_lang + * @param string $vhost + * + * @return void +*/ +function tld_redirect($tld, $domains_lang, $vhost) +{ + domain_redirect('mageia.' . $tld, $domains_lang, $vhost); +} + +/** + * Redirect to a localized path, depending on incoming full domain. + * Only manages redirections to main home path. + * * @param string $host * @param array $domains_lang * @param string $vhost -- cgit v1.2.1