diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /frontend/simple/index.php | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to '')
-rw-r--r-- | frontend/simple/index.php | 22 |
1 files changed, 16 insertions, 6 deletions
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 '<body class="'.($_GET['a'] == '' ? 'landing_page' : $_GET['a']).'">';
+ 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 '<body class="'.$body_class.'">';
- echo '<div id="content" '.($aai_instalacija ? 'class="aai"' : '').'>';
-
+ echo '<div id="content" '.(isAAI() ? 'class="aai"' : '').'>';
// Glava
echo '<header>';
$dc->displayHeader();
echo '</header>';
-
+
// Vsebina strani
- global $aai_instalacija;
echo '<div id="main">';
echo '<div class="main_content">';
@@ -64,6 +70,10 @@ echo '</div>';
echo '</footer>';
+
+
+ // Cookie notice
+ $dc->displayCookieNotice();
echo '</div>';
|