aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-07-06 16:55:20 +0000
committerRomain d'Alverny <rda@mageia.org>2011-07-06 16:55:20 +0000
commit1a0f7746667c91bb81ef8c0c391943ff8bc8781a (patch)
tree26f8ac04b4d997ae3e105b68971cf4234ae8e066 /langs.inc.php
parent629f4e8a6d122cffc3eb9a1ac2f5d02d29d66170 (diff)
downloadwww-1a0f7746667c91bb81ef8c0c391943ff8bc8781a.tar
www-1a0f7746667c91bb81ef8c0c391943ff8bc8781a.tar.gz
www-1a0f7746667c91bb81ef8c0c391943ff8bc8781a.tar.bz2
www-1a0f7746667c91bb81ef8c0c391943ff8bc8781a.tar.xz
www-1a0f7746667c91bb81ef8c0c391943ff8bc8781a.zip
catch /?fromtld=$tld requests: new tld_redirect()
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php15
1 files changed, 15 insertions, 0 deletions
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