mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-10-22 08:08:52 +00:00
Added redirect feature depends on language.
This commit is contained in:
1 parent
cb19bd9d4a
commit
6d0f0f9ab7
3 files changed
+43
-2
No files matched your search
+7
-1
@@ -4,7 +4,13 @@
|
||||
header('Content-type: text/html; charset=' . $g_config['charset']);
|
||||
|
||||
GetQuery(); // Что бы определился язык сайта
|
||||
|
||||
$redirectUrl = GetRedirectURL(); // Check redirect
|
||||
if ($redirectUrl != NULL)
|
||||
{
|
||||
header("HTTP/1.1 301 Moved Permanently");
|
||||
header("Location: $redirectUrl");
|
||||
exit();
|
||||
}
|
||||
// Подключаем все языковые файлы из автозагруки
|
||||
$dirs = array_unique(
|
||||
array(
|
||||
|
||||
Reference in new issue
Block a user