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:
@@ -1,14 +1,4 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
// Turn off php errors
|
||||
error_reporting(0);
|
||||
|
||||
if ($_SESSION["login"] != 1)
|
||||
{
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
require 'php/templates/header.php';
|
||||
require 'php/server/db.php';
|
||||
|
||||
Reference in New Issue
Block a user