mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Connected web interface with vesta.conf
This commit is contained in:
parent
8082315e59
commit
cc062abfc3
24 changed files with 55 additions and 81 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue