Files
VestaCP/web/index.php
ZonD80 c8e0ca45fb 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.
2013-01-25 13:54:01 +04:00

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/");
}
?>