diff options
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>';
|