Merge pull request #607 from wrongecho/headers

Add X-Frame-Options to login pages & client portal
This commit is contained in:
Johnny 2023-02-05 15:46:22 -05:00 committed by GitHub
commit b433cdb7e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<?php
header("X-Frame-Options: DENY");
if (!file_exists('config.php')) {
header("Location: setup.php");
exit;

View File

@ -15,7 +15,7 @@ if (!isset($_SESSION)) {
session_start();
}
if (!$_SESSION['client_logged_in']) {
if (!isset($_SESSION['client_logged_in']) || !$_SESSION['client_logged_in']) {
header("Location: login.php");
die;
}

View File

@ -4,6 +4,8 @@
* Landing / Home page for the client portal
*/
header("X-Frame-Options: DENY");
$session_company_id = 1;
require_once('../config.php');
require_once('../functions.php');

View File

@ -3,6 +3,8 @@
* Client Portal
* HTML Header
*/
header("X-Frame-Options: DENY");
?>
<!DOCTYPE html>