mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
php clean-up, logon fix
This commit is contained in:
@@ -8,20 +8,11 @@
|
||||
#--------------------------------------------------------------------------- -->
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if(array_search('login', $_SESSION) != FALSE)
|
||||
{
|
||||
if ($_SESSION["login"] != 1)
|
||||
{
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
require 'php/templates/header.php';
|
||||
require 'php/templates/graph.php';
|
||||
require 'php/server/util.php';
|
||||
|
||||
|
||||
// check permissions
|
||||
$dbPath = "../db/pialert.db";
|
||||
|
||||
Reference in New Issue
Block a user