mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Added redirect feature depends on language.
This commit is contained in:
@@ -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