Connected web interface with vesta.conf

This commit is contained in:
Serghey Rodin 2014-10-05 14:47:55 +03:00
commit cc062abfc3
24 changed files with 55 additions and 81 deletions

View file

@ -1,5 +1,12 @@
<?php
// Check system settiongs
if ((!isset($_SESSION['VERSION'])) && (!defined('NO_AUTH_REQUIRED'))) {
session_destroy();
header("Location: /login/");
exit;
}
// Check user session
if ((!isset($_SESSION['user'])) && (!defined('NO_AUTH_REQUIRED'))) {
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];