mirror of https://github.com/itflow-org/itflow
Add X-Frame-Options to login pages & client portal
This commit is contained in:
parent
8bcd759444
commit
e8c9e63a7b
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
header("X-Frame-Options: DENY");
|
||||
|
||||
if (!file_exists('config.php')) {
|
||||
header("Location: setup.php");
|
||||
exit;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
* Client Portal
|
||||
* HTML Header
|
||||
*/
|
||||
|
||||
header("X-Frame-Options: DENY");
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue