mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-06-19 19:41:29 +02:00
Added automatic language detection based on HTTP_ACCEPT_LANGUAGE header. New function _translate, that translates string to required language. New file: setlang.php?l=language_code - sets session language.
15 lines
227 B
PHP
15 lines
227 B
PHP
<?php
|
|
session_start();
|
|
|
|
define('NO_AUTH_REQUIRED',true);
|
|
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
|
|
if (isset($_SESSION['user'])) {
|
|
header("Location: /list/user");
|
|
} else {
|
|
header("Location: /login/");
|
|
}
|
|
?>
|