mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
Merge pull request #607 from wrongecho/headers
Add X-Frame-Options to login pages & client portal
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
header("X-Frame-Options: DENY");
|
||||||
|
|
||||||
if (!file_exists('config.php')) {
|
if (!file_exists('config.php')) {
|
||||||
header("Location: setup.php");
|
header("Location: setup.php");
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ if (!isset($_SESSION)) {
|
|||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$_SESSION['client_logged_in']) {
|
if (!isset($_SESSION['client_logged_in']) || !$_SESSION['client_logged_in']) {
|
||||||
header("Location: login.php");
|
header("Location: login.php");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
* Landing / Home page for the client portal
|
* Landing / Home page for the client portal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
header("X-Frame-Options: DENY");
|
||||||
|
|
||||||
$session_company_id = 1;
|
$session_company_id = 1;
|
||||||
require_once('../config.php');
|
require_once('../config.php');
|
||||||
require_once('../functions.php');
|
require_once('../functions.php');
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
* Client Portal
|
* Client Portal
|
||||||
* HTML Header
|
* HTML Header
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
header("X-Frame-Options: DENY");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
Reference in New Issue
Block a user