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 --- admin/survey/index.php | 71 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 20 deletions(-) (limited to 'admin/survey/index.php') diff --git a/admin/survey/index.php b/admin/survey/index.php index 27fc206..1132b41 100644 --- a/admin/survey/index.php +++ b/admin/survey/index.php @@ -5,6 +5,10 @@ header('Cache-Control: no-cache'); header('Pragma: no-cache'); + // Preprecimo vkljucevanje v iframe + header('X-Frame-Options: SAMEORIGIN'); + + include_once 'definition.php'; include_once '../../function.php'; include_once '../../vendor/autoload.php'; @@ -21,7 +25,7 @@ } - global $site_url, $global_user_id, $app_settings; + global $site_url, $global_user_id; $surveySkin = 0; @@ -85,8 +89,8 @@ $rowv = mysqli_fetch_array($sqlv); // Custom head title - if(isset($app_settings['head_title_custom']) && $app_settings['head_title_custom'] == 1){ - echo ''.$app_settings['head_title_text'].'' . "\n"; + if(AppSettings::getInstance()->getSetting('app_settings-head_title_custom')){ + echo ''.AppSettings::getInstance()->getSetting('app_settings-head_title_text').'' . "\n"; } // Default head title else{ @@ -103,6 +107,7 @@ // ZAMENJAMO UREJEVALNIK ZA CKEDITOR echo ''; echo ''; } - elseif($_GET['a'] == 'narocila' || $_GET['t'] == 'uporabniki'){ + elseif((isset($_GET['a']) && $_GET['a'] == 'narocila') || (isset($_GET['t']) && $_GET['t'] == 'uporabniki')){ echo ''; } else{ @@ -137,7 +142,8 @@ } // Fonts - echo ''; + echo ''; + ?> =0) ) { + if ( ((($admin_type <= $SurveyDostop && $SurveyDostop<3) || ($SurveyDostop==3)) && ($admin_type>=0)) + || isDemoSurvey($anketa) + ) { $s = new SurveyAdmin(); $s->display(); } -- cgit v1.2.3