Compare commits

...

2 Commits

Author SHA1 Message Date
MAY
b2bfe93693 Dopolnjen "spremembe" fajl.
Dejansko pozabil, kaj vse sem že popravljal :-)
2023-01-23 20:16:11 +01:00
MAY
e955fd976f Popravljanje http na httpS 2023-01-23 20:12:09 +01:00
21 changed files with 97 additions and 97 deletions

View File

@ -6,7 +6,12 @@
## Varnostne posodobitve ## Varnostne posodobitve
- migriral PHPPowerPoint (letnik 2009) na PHPOffice/PHPPresentation (letnik 2021, stable release) - migriral PHPPowerPoint (letnik 2009) na PHPOffice/PHPPresentation (letnik 2021, stable release)
- popravil vse random funkcije na kriptografsko primerne
- odstranil vsa hardkodana gesla
- olepšal zunanje klice (uporablja httpS, kjer je možno)
- popravil kodo, kjer je nevarnost SQL injectionov
## Ostalo ## Ostalo
- nekoliko prečiščen ppt izvoz (oblikovanje kode) - nekoliko prečiščen ppt izvoz (oblikovanje kode)
- eval modul ukinjen (varnost)

View File

@ -589,7 +589,7 @@ class SurveyAdmin
} }
// GDPR popup za prejemanje obvestil - force ce ga se ni izpolnil - SAMO NA www.1ka.si, test.1ka.si in virtualkah // GDPR popup za prejemanje obvestil - force ce ga se ni izpolnil - SAMO NA www.1ka.si, test.1ka.si in virtualkah
if ( ($site_url == 'http://test.1ka.si/' if ( ($site_url == 'https://test.1ka.si/'
|| isWWW() || isWWW()
|| isAAI() || isAAI()
|| ($cookie_domain == '.1ka.si' && isVirtual())) || ($cookie_domain == '.1ka.si' && isVirtual()))
@ -6008,7 +6008,7 @@ class SurveyAdmin
if (SurveyInfo::getInstance()->checkSurveyModule('uporabnost')) { if (SurveyInfo::getInstance()->checkSurveyModule('uporabnost')) {
SurveySetting::getInstance()->Init($this->anketa); SurveySetting::getInstance()->Init($this->anketa);
$link = SurveySetting::getInstance()->getSurveyMiscSetting('uporabnost_link_' . $grupa); $link = SurveySetting::getInstance()->getSurveyMiscSetting('uporabnost_link_' . $grupa);
if ($link == '') $link = 'http://'; if ($link == '') $link = 'https://';
echo ' Link: <input style="width:300px" type="text" id="uporabnost_link_' . $grupa . '" name="uporabnost_link" value="' . $link . '" onblur="save_edit_uporabnost_link(\'' . $row['id'] . '\', $(this).val());" />'; echo ' Link: <input style="width:300px" type="text" id="uporabnost_link_' . $grupa . '" name="uporabnost_link" value="' . $link . '" onblur="save_edit_uporabnost_link(\'' . $row['id'] . '\', $(this).val());" />';
} }
} }

View File

@ -4375,7 +4375,7 @@ class SurveyAdminSettings {
echo '<form action="index.php?anketa=' . $this->anketa . '&a=uporabnost" name="settingsanketa_'.$this->anketa.'" method="post">'; echo '<form action="index.php?anketa=' . $this->anketa . '&a=uporabnost" name="settingsanketa_'.$this->anketa.'" method="post">';
if ($row['uporabnost_link'] == '') if ($row['uporabnost_link'] == '')
$row['uporabnost_link'] = 'http://'; $row['uporabnost_link'] = 'https://';
echo '<p class="bottom16">'.$lang['srv_vrsta_survey_note_4_3b'].'</p>'; echo '<p class="bottom16">'.$lang['srv_vrsta_survey_note_4_3b'].'</p>';
@ -4413,7 +4413,7 @@ class SurveyAdminSettings {
while ($rowg = mysqli_fetch_array($sqlg)) { while ($rowg = mysqli_fetch_array($sqlg)) {
$link = SurveySetting::getInstance()->getSurveyMiscSetting('uporabnost_link_'.$rowg['id']); $link = SurveySetting::getInstance()->getSurveyMiscSetting('uporabnost_link_'.$rowg['id']);
if ($link == '') if ($link == '')
$link = 'http://'; $link = 'https://';
echo '<div class="setting_holder">'; echo '<div class="setting_holder">';
echo '<p>'.$rowg['naslov'].':</p>'; echo '<p>'.$rowg['naslov'].':</p>';

View File

@ -17,7 +17,7 @@ $api_url = 'https://www.1ka.si/admin/survey/api/api.php';
$identifier = '3ccc9cbc90493d09'; $identifier = '3ccc9cbc90493d09';
$private_key = 'b8dbeceed3d0d7f80ca5d82ba352d9696c1804ff9b9d45272b8e99ea0a4987d6'; $private_key = 'b8dbeceed3d0d7f80ca5d82ba352d9696c1804ff9b9d45272b8e99ea0a4987d6';
/*$api_url = 'http://localhost/admin/survey/api/api.php'; /*$api_url = 'https://localhost/admin/survey/api/api.php';
$identifier = '0d712128f7fe5707'; $identifier = '0d712128f7fe5707';
$private_key = 'd0ea50f1deabe2d9d9082c4c2a25c7db3648cab59f7a19939c808f602bdbc1be';*/ $private_key = 'd0ea50f1deabe2d9d9082c4c2a25c7db3648cab59f7a19939c808f602bdbc1be';*/

View File

@ -13,7 +13,7 @@ define({
"generator": { "generator": {
"name": "apidoc", "name": "apidoc",
"time": "2019-09-13T10:02:30.341Z", "time": "2019-09-13T10:02:30.341Z",
"url": "http://apidocjs.com", "url": "https://apidocjs.com",
"version": "0.17.6" "version": "0.17.6"
} }
}); });

View File

@ -13,7 +13,7 @@
"generator": { "generator": {
"name": "apidoc", "name": "apidoc",
"time": "2019-09-13T10:02:30.341Z", "time": "2019-09-13T10:02:30.341Z",
"url": "http://apidocjs.com", "url": "https://apidocjs.com",
"version": "0.17.6" "version": "0.17.6"
} }
} }

View File

@ -1198,7 +1198,7 @@ class Common {
public static function getHelpUrl($subdomain, $podstran){ public static function getHelpUrl($subdomain, $podstran){
// Default help url // Default help url
$help_url = 'http://www.1ka.si/d/sl/pomoc'; $help_url = 'https://www.1ka.si/d/sl/pomoc';
// Angleški vmesnik - usmerimo na english.1ka.si help // Angleški vmesnik - usmerimo na english.1ka.si help
if($subdomain == 'english'){ if($subdomain == 'english'){
@ -1343,19 +1343,19 @@ class Common {
// Napredni moduli // Napredni moduli
else if ($_GET['a'] == A_TELEPHONE) { else if ($_GET['a'] == A_TELEPHONE) {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/advanced-modules/telephone-survey'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/advanced-modules/telephone-survey';
} }
else if ($_GET['a'] == 'uporabnost') { else if ($_GET['a'] == 'uporabnost') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/advanced-modules/website-evaluation-split-screen'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/advanced-modules/website-evaluation-split-screen';
} }
else if ($_GET['a'] == 'vnos') { else if ($_GET['a'] == 'vnos') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/advanced-modules/administrative-data-input'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/advanced-modules/administrative-data-input';
} }
else if ($_GET['a'] == 'kviz') { else if ($_GET['a'] == 'kviz') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/quiz'; $help_url = 'https://www.1ka.si/d/en/help/manuals/quiz';
} }
else if ($_GET['a'] == 'slideshow') { else if ($_GET['a'] == 'slideshow') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/advanced-modules/slideshow'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/advanced-modules/slideshow';
} }
else if ($_GET['a'] == 'social_network') { else if ($_GET['a'] == 'social_network') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/social-networks'; $help_url = 'https://www.1ka.si/d/en/help/manuals/social-networks';
@ -1363,7 +1363,7 @@ class Common {
// Oblika // Oblika
else if ($_GET['a'] == 'tema') { else if ($_GET['a'] == 'tema') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/edit/design'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/edit/design';
} }
else if ($_GET['a'] == 'theme-editor') { else if ($_GET['a'] == 'theme-editor') {
if($_GET['t'] == 'css'){ if($_GET['t'] == 'css'){
@ -1419,25 +1419,25 @@ class Common {
// Komentarji // Komentarji
else if ($_GET['a'] == 'komentarji' || $_GET['a'] == 'komentarji_anketa') { else if ($_GET['a'] == 'komentarji' || $_GET['a'] == 'komentarji_anketa') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing/comments'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing/comments';
} }
// Testiranje // Testiranje
else if ($_GET['a'] == 'testiranje') { else if ($_GET['a'] == 'testiranje') {
if ($_GET['m'] == 'diagnostika') { if ($_GET['m'] == 'diagnostika') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing/diagnostics'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing/diagnostics';
} }
else if ($_GET['m'] == 'testnipodatki') { else if ($_GET['m'] == 'testnipodatki') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing/automatic-entries'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing/automatic-entries';
} }
else if ($_GET['m'] == 'predvidenicas') { else if ($_GET['m'] == 'predvidenicas') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing/diagnostics'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing/diagnostics';
} }
else if ($_GET['m'] == 'cas') { else if ($_GET['m'] == 'cas') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing/diagnostics'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing/diagnostics';
} }
else { else {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing/diagnostics'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing/diagnostics';
} }
} }
@ -1452,24 +1452,24 @@ class Common {
else if ($_GET['a'] == 'invitations') { else if ($_GET['a'] == 'invitations') {
if ($_GET['m'] == 'add_recipients_view') { if ($_GET['m'] == 'add_recipients_view') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations';
} else if ($_GET['m'] == 'view_recipients') { } else if ($_GET['m'] == 'view_recipients') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations';
} else if ($_GET['m'] == 'view_message') { } else if ($_GET['m'] == 'view_message') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations';
} else if ($_GET['m'] == 'send_message') { } else if ($_GET['m'] == 'send_message') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations';
} else if ($_GET['m'] == 'view_archive') { } else if ($_GET['m'] == 'view_archive') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/invitation-archives'; $help_url = 'https://www.1ka.si/d/en/help/manuals/invitation-archives';
} else { } else {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/publish/1ka-invitations';
} }
} }
// Podatki // Podatki
else if ($_GET['a'] == 'data') { else if ($_GET['a'] == 'data') {
if ($_GET['m'] == 'quick_edit') { if ($_GET['m'] == 'quick_edit') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/data/browse'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/data/browse';
} else if ($_GET['m'] == 'calculation') { } else if ($_GET['m'] == 'calculation') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/computed-values'; $help_url = 'https://www.1ka.si/d/en/help/manuals/computed-values';
} else if ($_GET['m'] == 'coding') { } else if ($_GET['m'] == 'coding') {
@ -1483,7 +1483,7 @@ class Common {
} else if ($_GET['m'] == 'merge') { } else if ($_GET['m'] == 'merge') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/merging-data'; $help_url = 'https://www.1ka.si/d/en/help/manuals/merging-data';
} else { } else {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/data/browse'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/data/browse';
} }
} }
// Izvoz podatkov // Izvoz podatkov
@ -1504,16 +1504,16 @@ class Common {
// Analiza // Analiza
else if ($_GET['a'] == 'analysis' && (in_array($_GET['m'], array('', 'sumarnik', 'ttest', 'para')))) { else if ($_GET['a'] == 'analysis' && (in_array($_GET['m'], array('', 'sumarnik', 'ttest', 'para')))) {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/analysis/statistics'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/analysis/statistics';
} }
else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'charts') { else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'charts') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/analysis/charts'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/analysis/charts';
} }
else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'anal_arch') { else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'anal_arch') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/analysis-archives'; $help_url = 'https://www.1ka.si/d/en/help/manuals/analysis-archives';
} }
else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'analysis_links') { else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'analysis_links') {
$help_url = 'http://www.1ka.si/d/en/help/user-guide/analysis/reports'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/analysis/reports';
} }
else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'analysis_creport') { else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'analysis_creport') {
$help_url = 'https://www.1ka.si/d/en/help/manuals/custom-reports'; $help_url = 'https://www.1ka.si/d/en/help/manuals/custom-reports';
@ -1606,25 +1606,25 @@ class Common {
else { else {
switch ($podstran) { switch ($podstran) {
case NAVI_UREJANJE: case NAVI_UREJANJE:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/edit'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/edit';
break; break;
case NAVI_OBJAVA: case NAVI_OBJAVA:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/publish'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/publish';
break; break;
case NAVI_RESULTS: case NAVI_RESULTS:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/data'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/data';
break; break;
case NAVI_ANALYSIS: case NAVI_ANALYSIS:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/analysis'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/analysis';
break; break;
case NAVI_TESTIRANJE: case NAVI_TESTIRANJE:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/testing'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/testing';
break; break;
case NAVI_STATUS: case NAVI_STATUS:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/dashboard'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/dashboard';
break; break;
case NAVI_ADVANCED: case NAVI_ADVANCED:
$help_url = 'http://www.1ka.si/d/en/help/user-guide/advanced-modules'; $help_url = 'https://www.1ka.si/d/en/help/user-guide/advanced-modules';
break; break;
default: default:
//$help_url = 'https://www.1ka.si/d/en/help/my-surveys'; //$help_url = 'https://www.1ka.si/d/en/help/my-surveys';
@ -1787,19 +1787,19 @@ class Common {
// STATUS in podstrani // STATUS in podstrani
elseif($_GET['a']== 'reporti'){ elseif($_GET['a']== 'reporti'){
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/povzetek/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/povzetek/?from1ka=1';
}elseif($_GET['a']== 'para_graph'){ }elseif($_GET['a']== 'para_graph'){
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/parapodatki/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/parapodatki/?from1ka=1';
}elseif($_GET['a']== 'nonresponse_graph'){ }elseif($_GET['a']== 'nonresponse_graph'){
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/neodgovor-spremenljivke/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/neodgovor-spremenljivke/?from1ka=1';
}elseif($_GET['a']== 'usable_resp'){ }elseif($_GET['a']== 'usable_resp'){
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/uporabni-respondenti/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/uporabni-respondenti/?from1ka=1';
}elseif($_GET['a']== 'speeder_index'){ }elseif($_GET['a']== 'speeder_index'){
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/indeks-hitrosti/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/indeks-hitrosti/?from1ka=1';
}elseif($_GET['a']== 'text_analysis'){ }elseif($_GET['a']== 'text_analysis'){
$help_url = ''; $help_url = '';
}elseif($_GET['a']== 'geoip_location'){ }elseif($_GET['a']== 'geoip_location'){
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/ip-lokacija/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/ip-lokacija/?from1ka=1';
} }
// Obvescanje // Obvescanje
@ -1814,19 +1814,19 @@ class Common {
// Napredni moduli // Napredni moduli
else if ($_GET['a'] == A_TELEPHONE) { else if ($_GET['a'] == A_TELEPHONE) {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/telefonska-anketa/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/telefonska-anketa/?from1ka=1';
} }
else if ($_GET['a'] == 'uporabnost') { else if ($_GET['a'] == 'uporabnost') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/evalvacija-strani/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/evalvacija-strani/?from1ka=1';
} }
else if ($_GET['a'] == 'vnos') { else if ($_GET['a'] == 'vnos') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/vnos-vprasalnikov/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/vnos-vprasalnikov/?from1ka=1';
} }
else if ($_GET['a'] == 'kviz') { else if ($_GET['a'] == 'kviz') {
$help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/kviz'; $help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/kviz';
} }
else if ($_GET['a'] == 'slideshow') { else if ($_GET['a'] == 'slideshow') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/prezentacija/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/prezentacija/?from1ka=1';
} }
else if ($_GET['a'] == 'social_network') { else if ($_GET['a'] == 'social_network') {
$help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/socialna-omrezja'; $help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/socialna-omrezja';
@ -1834,7 +1834,7 @@ class Common {
// Oblika // Oblika
else if ($_GET['a'] == 'tema') { else if ($_GET['a'] == 'tema') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/urejanje/oblika/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/urejanje/oblika/?from1ka=1';
} }
else if ($_GET['a'] == 'theme-editor') { else if ($_GET['a'] == 'theme-editor') {
if($_GET['t'] == 'css'){ if($_GET['t'] == 'css'){
@ -1847,45 +1847,45 @@ class Common {
// Komentarji // Komentarji
else if ($_GET['a'] == 'komentarji' || $_GET['a'] == 'komentarji_anketa') { else if ($_GET['a'] == 'komentarji' || $_GET['a'] == 'komentarji_anketa') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/komentarji/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/komentarji/?from1ka=1';
} }
// Testiranje // Testiranje
else if ($_GET['a'] == 'testiranje') { else if ($_GET['a'] == 'testiranje') {
if ($_GET['m'] == 'diagnostika') { if ($_GET['m'] == 'diagnostika') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1';
} }
else if ($_GET['m'] == 'testnipodatki') { else if ($_GET['m'] == 'testnipodatki') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/avtomatski-vnosi/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/avtomatski-vnosi/?from1ka=1';
} }
else if ($_GET['m'] == 'predvidenicas') { else if ($_GET['m'] == 'predvidenicas') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1';
} }
else if ($_GET['m'] == 'cas') { else if ($_GET['m'] == 'cas') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1';
} }
else { else {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/diagnostika/?from1ka=1';
} }
} }
// Vabila // Vabila
else if ($_GET['a'] == 'vabila') { else if ($_GET['a'] == 'vabila') {
if($_GET['m'] == 'url') { if($_GET['m'] == 'url') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/povezava-url/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/povezava-url/?from1ka=1';
}else{ }else{
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/nastavitve-objave/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/nastavitve-objave/?from1ka=1';
} }
} }
else if ($_GET['a'] == 'invitations') { else if ($_GET['a'] == 'invitations') {
if ($_GET['m'] == 'add_recipients_view') { if ($_GET['m'] == 'add_recipients_view') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1';
} else if ($_GET['m'] == 'view_recipients') { } else if ($_GET['m'] == 'view_recipients') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1';
} else if ($_GET['m'] == 'view_message') { } else if ($_GET['m'] == 'view_message') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1';
} else if ($_GET['m'] == 'send_message') { } else if ($_GET['m'] == 'send_message') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/1ka-vabila/?from1ka=1';
} else if ($_GET['m'] == 'view_archive') { } else if ($_GET['m'] == 'view_archive') {
$help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/arhivi-vabil'; $help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/arhivi-vabil';
} else { } else {
@ -1896,9 +1896,9 @@ class Common {
// Podatki // Podatki
else if ($_GET['a'] == 'data') { else if ($_GET['a'] == 'data') {
if ($_GET['m'] == 'quick_edit') { if ($_GET['m'] == 'quick_edit') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/pregledovanje/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/pregledovanje/?from1ka=1';
} else if ($_GET['m'] == 'calculation') { } else if ($_GET['m'] == 'calculation') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/izracuni/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/izracuni/?from1ka=1';
} else if ($_GET['m'] == 'coding') { } else if ($_GET['m'] == 'coding') {
$help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/rocno-kodiranje'; $help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/rocno-kodiranje';
} else if ($_GET['m'] == 'coding_auto') { } else if ($_GET['m'] == 'coding_auto') {
@ -1910,7 +1910,7 @@ class Common {
} else if ($_GET['m'] == 'merge') { } else if ($_GET['m'] == 'merge') {
$help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/zdruzevanje-podatkov'; $help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/zdruzevanje-podatkov';
} else { } else {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/pregledovanje/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/pregledovanje/?from1ka=1';
} }
} }
// Izvoz podatkov // Izvoz podatkov
@ -1931,10 +1931,10 @@ class Common {
// Analiza // Analiza
else if ($_GET['a'] == 'analysis' && (in_array($_GET['m'], array('', 'sumarnik', 'ttest', 'para')))) { else if ($_GET['a'] == 'analysis' && (in_array($_GET['m'], array('', 'sumarnik', 'ttest', 'para')))) {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/analize/statistike/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/analize/statistike/?from1ka=1';
} }
else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'charts') { else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'charts') {
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/analize/grafi/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/analize/grafi/?from1ka=1';
} }
else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'anal_arch') { else if ($_GET['a'] == 'analysis' && $_GET['m'] == 'anal_arch') {
$help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/arhivi-analiz'; $help_url = 'https://www.1ka.si/d/sl/pomoc/prirocniki/arhivi-analiz';
@ -2029,28 +2029,28 @@ class Common {
else { else {
switch ($podstran) { switch ($podstran) {
case NAVI_STATUS; case NAVI_STATUS;
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/povzetek/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/povzetek/?from1ka=1';
break; break;
case NAVI_UREJANJE: case NAVI_UREJANJE:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/urejanje/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/urejanje/?from1ka=1';
break; break;
case NAVI_OBJAVA: case NAVI_OBJAVA:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/objava/?from1ka=1';
break; break;
case NAVI_RESULTS: case NAVI_RESULTS:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/podatki/?from1ka=1';
break; break;
case NAVI_ANALYSIS: case NAVI_ANALYSIS:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/analize/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/analize/?from1ka=1';
break; break;
case NAVI_TESTIRANJE: case NAVI_TESTIRANJE:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/testiranje/?from1ka=1';
break; break;
case NAVI_STATUS: case NAVI_STATUS:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/status/?from1ka=1';
break; break;
case NAVI_ADVANCED: case NAVI_ADVANCED:
$help_url = 'http://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/?from1ka=1'; $help_url = 'https://www.1ka.si/d/sl/pomoc/vodic-za-uporabnike/napredni-moduli/?from1ka=1';
break; break;
default: default:
//$help_url = 'https://www.1ka.si/d/sl/pomoc/moje-ankete'; //$help_url = 'https://www.1ka.si/d/sl/pomoc/moje-ankete';

View File

@ -1860,7 +1860,7 @@ class GDPR{
$content .= 'Oddana prošnja se nanaša na naslednje osebne podatke:<br /><b>'.$note.'</b>'; $content .= 'Oddana prošnja se nanaša na naslednje osebne podatke:<br /><b>'.$note.'</b>';
$content .= '</p>'; $content .= '</p>';
$content .= '<p>Prosimo, da <b>v roku enega meseca</b> izvršite zahtevo in o tem obvestite respondenta na zgoraj navedeni elektronski naslov respondenta (<a href="http://eur-lex.europa.eu/legal-content/SL/TXT/?uri=uriserv:OJ.L_.2016.119.01.0001.01.SLV&toc=OJ:L:2016:119:FULL" target="_blank">Člen 19 uredbe GDPR</a>).</p>'; $content .= '<p>Prosimo, da <b>v roku enega meseca</b> izvršite zahtevo in o tem obvestite respondenta na zgoraj navedeni elektronski naslov respondenta (<a href="https://eur-lex.europa.eu/legal-content/SL/TXT/?uri=uriserv:OJ.L_.2016.119.01.0001.01.SLV&toc=OJ:L:2016:119:FULL" target="_blank">Člen 19 uredbe GDPR</a>).</p>';
$content .= '<p>V primeru, da tega po enem mesecu ne boste izvršili, vas bomo ponovno obvestili. Če se zahteva ne izvrši, si pridržujemo pravico, da anketo izbrišemo.</p>'; $content .= '<p>V primeru, da tega po enem mesecu ne boste izvršili, vas bomo ponovno obvestili. Če se zahteva ne izvrši, si pridržujemo pravico, da anketo izbrišemo.</p>';

View File

@ -161,7 +161,6 @@ class SurveyAapor {
echo '<br /><br/>'; echo '<br /><br/>';
echo 'Povezave:<br/>'; echo 'Povezave:<br/>';
// echo '<a href="http://www.aapor.org/For_Researchers/4683.htm" target="_blank">';
echo '<a href="https://www.esomar.org/what-we-do/code-guidelines/AAPOR-Standard-Definitions-Final-Dispositions-of-Case-Codes-and-Outcome-Rates-for-Surveys" target="_blank">'; echo '<a href="https://www.esomar.org/what-we-do/code-guidelines/AAPOR-Standard-Definitions-Final-Dispositions-of-Case-Codes-and-Outcome-Rates-for-Surveys" target="_blank">';
echo 'Standard Definitions Final Dispositions of Case Codes and Outcome Rates for Surveys (PDF)'; echo 'Standard Definitions Final Dispositions of Case Codes and Outcome Rates for Surveys (PDF)';
echo '</a>'; echo '</a>';

View File

@ -761,23 +761,23 @@ class SurveyList {
switch ($_GET['a']) { switch ($_GET['a']) {
case 'pregledovanje': case 'pregledovanje':
$help_url = 'http://' .$subdomain .'.1ka.si/c/790/Moja_anketa/?preid=795&from1ka=1'; $help_url = 'https://' .$subdomain .'.1ka.si/c/790/Moja_anketa/?preid=795&from1ka=1';
break; break;
case 'diagnostics': case 'diagnostics':
if ($_GET['t'] == 'uporabniki') { if ($_GET['t'] == 'uporabniki') {
$help_url = 'http://' .$subdomain .'.1ka.si/c/904/Uporabniki/?preid=795&from1ka=1'; $help_url = 'https://' .$subdomain .'.1ka.si/c/904/Uporabniki/?preid=795&from1ka=1';
} else { } else {
$help_url = 'http://' .$subdomain .'.1ka.si/c/795/Aktivnost/?preid=790&from1ka=1'; $help_url = 'https://' .$subdomain .'.1ka.si/c/795/Aktivnost/?preid=790&from1ka=1';
} }
break; break;
case 'knjiznica': case 'knjiznica':
$help_url = 'http://' .$subdomain .'.1ka.si/c/796/Knjiznica/?preid=795&from1ka=1'; $help_url = 'https://' .$subdomain .'.1ka.si/c/796/Knjiznica/?preid=795&from1ka=1';
break; break;
case 'nastavitve': case 'nastavitve':
$help_url = 'http://' .$subdomain .'.1ka.si/c/797/Nastavitve/?preid=796&from1ka=1'; $help_url = 'https://' .$subdomain .'.1ka.si/c/797/Nastavitve/?preid=796&from1ka=1';
break; break;
default: default:
$help_url = 'http://' .$subdomain .'.1ka.si/c/790/Moja_anketa/?preid=795&from1ka=1'; $help_url = 'https://' .$subdomain .'.1ka.si/c/790/Moja_anketa/?preid=795&from1ka=1';
break; break;
} }

View File

@ -513,10 +513,6 @@ class SurveyPostProcess {
function ajax_edit_data_question() { function ajax_edit_data_question() {
global $lang; global $lang;
/*?>
<link rel="stylesheet" href="http://localhost/fdv/cms2/main/survey/skins/Modern.css" type="text/css" media="screen" />
<?*/
$spr_id = $_POST['spr_id']; $spr_id = $_POST['spr_id'];
$usr_id = $_POST['usr_id']; $usr_id = $_POST['usr_id'];

View File

@ -473,7 +473,7 @@ class HTMLPurifier_Config
if (!$optimized) { if (!$optimized) {
if (!is_null($this->get($type . '.DefinitionID'))) { if (!is_null($this->get($type . '.DefinitionID'))) {
if ($this->chatty) { if ($this->chatty) {
$this->triggerError("Due to a documentation error in previous version of HTML Purifier, your definitions are not being cached. If this is OK, you can remove the %$type.DefinitionRev and %$type.DefinitionID declaration. Otherwise, modify your code to use maybeGetRawDefinition, and test if the returned value is null before making any edits (if it is null, that means that a cached version is available, and no raw operations are necessary). See <a href='http://htmlpurifier.org/docs/enduser-customize.html#optimized'>Customize</a> for more details", E_USER_WARNING); $this->triggerError("Due to a documentation error in previous version of HTML Purifier, your definitions are not being cached. If this is OK, you can remove the %$type.DefinitionRev and %$type.DefinitionID declaration. Otherwise, modify your code to use maybeGetRawDefinition, and test if the returned value is null before making any edits (if it is null, that means that a cached version is available, and no raw operations are necessary). See <a href='https://htmlpurifier.org/docs/enduser-customize.html#optimized'>Customize</a> for more details", E_USER_WARNING);
} else { } else {
$this->triggerError("Useless DefinitionID declaration", E_USER_WARNING); $this->triggerError("Useless DefinitionID declaration", E_USER_WARNING);
} }

View File

@ -10,7 +10,7 @@ DEFAULT: false
</p> </p>
<p> <p>
This directive enables YouTube video embedding in HTML Purifier. Check This directive enables YouTube video embedding in HTML Purifier. Check
<a href="http://htmlpurifier.org/docs/enduser-youtube.html">this document <a href="https://htmlpurifier.org/docs/enduser-youtube.html">this document
on embedding videos</a> for more information on what this filter does. on embedding videos</a> for more information on what this filter does.
</p> </p>
--# vim: et sw=4 sts=4 --# vim: et sw=4 sts=4

View File

@ -7,7 +7,7 @@ class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter
public function preFilter($html, $config, $context) { public function preFilter($html, $config, $context) {
$pre_regex = '#<object[^>]+>.+?'. $pre_regex = '#<object[^>]+>.+?'.
'http://www.youtube.com/((?:v|cp)/[A-Za-z0-9\-_=]+).+?</object>#s'; 'https://www.youtube.com/((?:v|cp)/[A-Za-z0-9\-_=]+).+?</object>#s';
$pre_replace = '<span class="youtube-embed">\1</span>'; $pre_replace = '<span class="youtube-embed">\1</span>';
return preg_replace($pre_regex, $pre_replace, $html); return preg_replace($pre_regex, $pre_replace, $html);
} }
@ -24,10 +24,10 @@ class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter
protected function postFilterCallback($matches) { protected function postFilterCallback($matches) {
$url = $this->armorUrl($matches[1]); $url = $this->armorUrl($matches[1]);
return '<object width="425" height="350" type="application/x-shockwave-flash" '. return '<object width="425" height="350" type="application/x-shockwave-flash" '.
'data="http://www.youtube.com/'.$url.'">'. 'data="https://www.youtube.com/'.$url.'">'.
'<param name="movie" value="http://www.youtube.com/'.$url.'"></param>'. '<param name="movie" value="https://www.youtube.com/'.$url.'"></param>'.
'<!--[if IE]>'. '<!--[if IE]>'.
'<embed src="http://www.youtube.com/'.$url.'"'. '<embed src="https://www.youtube.com/'.$url.'"'.
'type="application/x-shockwave-flash"'. 'type="application/x-shockwave-flash"'.
'wmode="transparent" width="425" height="350" />'. 'wmode="transparent" width="425" height="350" />'.
'<![endif]-->'. '<![endif]-->'.

View File

@ -30,7 +30,7 @@ class HTMLPurifier_HTMLModule_SafeObject extends HTMLPurifier_HTMLModule
'height' => 'Pixels#' . $max, 'height' => 'Pixels#' . $max,
'data' => 'URI#embedded', 'data' => 'URI#embedded',
'codebase' => new HTMLPurifier_AttrDef_Enum(array( 'codebase' => new HTMLPurifier_AttrDef_Enum(array(
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0')), 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0')),
) )
); );
$object->attr_transform_post[] = new HTMLPurifier_AttrTransform_SafeObject(); $object->attr_transform_post[] = new HTMLPurifier_AttrTransform_SafeObject();

View File

@ -1238,7 +1238,7 @@ if (!class_exists('QRcode', false)) {
if (QR_FIND_FROM_RANDOM !== false) { if (QR_FIND_FROM_RANDOM !== false) {
$howManuOut = 8 - (QR_FIND_FROM_RANDOM % 9); $howManuOut = 8 - (QR_FIND_FROM_RANDOM % 9);
for ($i = 0; $i < $howManuOut; ++$i) { for ($i = 0; $i < $howManuOut; ++$i) {
$remPos = rand (0, count($checked_masks)-1); $remPos = random_int (0, count($checked_masks)-1);
unset($checked_masks[$remPos]); unset($checked_masks[$remPos]);
$checked_masks = array_values($checked_masks); $checked_masks = array_values($checked_masks);
} }

View File

@ -2766,7 +2766,7 @@
$howManuOut = 8-(QR_FIND_FROM_RANDOM % 9); $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9);
for ($i = 0; $i < $howManuOut; $i++) { for ($i = 0; $i < $howManuOut; $i++) {
$remPos = rand (0, count($checked_masks)-1); $remPos = random_int (0, count($checked_masks)-1);
unset($checked_masks[$remPos]); unset($checked_masks[$remPos]);
$checked_masks = array_values($checked_masks); $checked_masks = array_values($checked_masks);
} }

View File

@ -294,7 +294,7 @@
$howManuOut = 8-(QR_FIND_FROM_RANDOM % 9); $howManuOut = 8-(QR_FIND_FROM_RANDOM % 9);
for ($i = 0; $i < $howManuOut; $i++) { for ($i = 0; $i < $howManuOut; $i++) {
$remPos = rand (0, count($checked_masks)-1); $remPos = random_int (0, count($checked_masks)-1);
unset($checked_masks[$remPos]); unset($checked_masks[$remPos]);
$checked_masks = array_values($checked_masks); $checked_masks = array_values($checked_masks);
} }

View File

@ -255,7 +255,7 @@
global $keep_domain; global $keep_domain;
if ($originating_domain != '' && $keep_domain != '') { if ($originating_domain != '' && $keep_domain != '') {
return str_replace ($originating_domain, $keep_domain, str_replace ("https://" .$originating_domain, "http://" .$keep_domain, $buffer)); return str_replace ($originating_domain, $keep_domain, str_replace ("https://" .$originating_domain, "https://" .$keep_domain, $buffer));
} }
return $buffer; return $buffer;

View File

@ -187,7 +187,7 @@ echo "Na ossfet " .$this->arr_radio[$a][0] ." nastavljam vrednost " .$this->arr_
for ($a = 0; $a < sizeof($this->arr_checkbox); $a++) { for ($a = 0; $a < sizeof($this->arr_checkbox); $a++) {
// Obkljukamo nakljucno kljukic // Obkljukamo nakljucno kljukic
$kljukic = rand (1, sizeof($this->arr_checkbox[$a])); $kljukic = random_int(1, sizeof($this->arr_checkbox[$a]));
for ($b = 0; $b < $kljukic; $b++) { for ($b = 0; $b < $kljukic; $b++) {
$checks .= "&" .$this->arr_checkbox[$a][0] ."=" .$this->arr_checkbox[$a][random_int(1, sizeof($this->arr_checkbox[$a])-1)]; $checks .= "&" .$this->arr_checkbox[$a][0] ."=" .$this->arr_checkbox[$a][random_int(1, sizeof($this->arr_checkbox[$a])-1)];

View File

@ -87,7 +87,7 @@
$salt = ""; $salt = "";
for ($l = 0; $l<256; $l++) { for ($l = 0; $l<256; $l++) {
$salt .= $nabor[rand (0, sizeof ($nabor)-1)]; $salt .= $nabor[random_int (0, sizeof ($nabor)-1)];
} }
echo '<font face="courier" size="2">' .$salt .'</font>'; echo '<font face="courier" size="2">' .$salt .'</font>';