From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- frontend/simple/index.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'frontend/simple/index.php') diff --git a/frontend/simple/index.php b/frontend/simple/index.php index e95588b..c8ff81a 100644 --- a/frontend/simple/index.php +++ b/frontend/simple/index.php @@ -8,7 +8,7 @@ include_once('classes/DisplayController.php'); - + // Preverimo ce imamo uvozeno bazo in ce ne ponudbimo uvoz $import_db = new ImportDB(); @@ -16,6 +16,10 @@ global $site_url; header('Location: '.$site_url.'frontend/install'); } + + + // Preprecimo vkljucevanje v iframe + header('X-Frame-Options: SAMEORIGIN'); // Inicializiramo razred za prikaz @@ -34,19 +38,21 @@ /********** BODY **********/ - echo ''; + if(isset($_GET['a']) && $_GET['a'] != '' && in_array($_GET['a'], array('landing_page', 'login', 'register', 'login_noEmail', 'reset_password', 'gdpr'))) + $body_class = $_GET['a']; + else + $body_class = 'landing_page body-2'; + echo ''; - echo '
'; - + echo '
'; // Glava echo '
'; $dc->displayHeader(); echo '
'; - + // Vsebina strani - global $aai_instalacija; echo '
'; echo '
'; @@ -64,6 +70,10 @@ echo '
'; echo ''; + + + // Cookie notice + $dc->displayCookieNotice(); echo '
'; -- cgit v1.2.3