mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Automatic language detection
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.
This commit is contained in:
parent
def0f35141
commit
c8e0ca45fb
7 changed files with 79 additions and 28 deletions
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
define('NO_AUTH_REQUIRED',true);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
|
||||
if (isset($_SESSION['user'])) {
|
||||
header("Location: /list/user");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue