diff --git a/admin/survey/SurveyAdmin.php b/admin/survey/SurveyAdmin.php
index 3f1f29f5f..98a31edc4 100644
--- a/admin/survey/SurveyAdmin.php
+++ b/admin/survey/SurveyAdmin.php
@@ -3279,7 +3279,7 @@ class SurveyAdmin
}
// GDPR popup za prejemanje obvestil - force ce ga se ni izpolnil - SAMO NA www.1ka.si, test.1ka.si in virtualkah
- if (($site_url == 'https://www.1ka.si/' || $site_url == 'http://test.1ka.si/' || ($cookie_domain == '.1ka.si' && $virtual_domain == true))
+ if (($site_url == 'https://www.1ka.si/' || $site_url == 'http://test.1ka.si/' || $site_url == 'https://1ka.arnes.si/' || ($cookie_domain == '.1ka.si' && $virtual_domain == true))
&& User::getInstance()->getSetting($setting='gdpr_agree') == '-1') {
// Avtomatsko prikazemo po loadu
diff --git a/admin/survey/classes/class.Notifications.php b/admin/survey/classes/class.Notifications.php
index 601175ad8..fac5802af 100644
--- a/admin/survey/classes/class.Notifications.php
+++ b/admin/survey/classes/class.Notifications.php
@@ -379,14 +379,19 @@ class Notifications {
}
public function ajax_viewGDPRMessage(){
- global $lang, $global_user_id;
+ global $lang, $global_user_id, $aai_instalacija;
echo '
'.$lang['srv_notifications_unread'].'
';
echo '';
echo '- ';
-
- echo ''.$lang['srv_gdpr_notification_title'].'';
+
+ if(isset($aai_instalacija) && $aai_instalacija == true){
+ echo ''.$lang['srv_gdpr_notification_title_aai'].'';
+ }
+ else{
+ echo ''.$lang['srv_gdpr_notification_title'].'';
+ }
echo '
';
diff --git a/frontend/payments/classes/class.UserNarocilaPaypal.php b/frontend/payments/classes/class.UserNarocilaPaypal.php
index e8a855400..7b89c6594 100644
--- a/frontend/payments/classes/class.UserNarocilaPaypal.php
+++ b/frontend/payments/classes/class.UserNarocilaPaypal.php
@@ -124,6 +124,7 @@ class UserNarocilaPaypal{
// Posljemo podatke za placilo paypalu
private function paypalCreateOrder($orderDetails){
global $site_url;
+ global $lang;
$response = array();
@@ -132,6 +133,15 @@ class UserNarocilaPaypal{
$request->prefer('return=representation');
//$request->headers["prefer"] = "return=representation";
+ if($lang['id'] == '2'){
+ $drupal_url_confirm = $site_url.'/d/en/paypal-purchase/success?narocilo_id='.$orderDetails['narocilo_id'];
+ $drupal_url_cancel = $site_url.'/d/en/paypal-purchase/cancel?narocilo_id='.$orderDetails['narocilo_id'];
+ }
+ else{
+ $drupal_url_confirm = $site_url.'/d/narocilo/paypal?narocilo_id='.$orderDetails['narocilo_id'];
+ $drupal_url_cancel = $site_url.'/d/narocilo/paypal-cancel?narocilo_id='.$orderDetails['narocilo_id'];
+ }
+
$request->body = [
"intent" => "CAPTURE",
"purchase_units" => [[
@@ -144,8 +154,8 @@ class UserNarocilaPaypal{
]
]],
"application_context" => [
- "cancel_url" => $site_url . '/d/narocilo/paypal-cancel?narocilo_id='.$orderDetails['narocilo_id'],
- "return_url" => $site_url . '/d/narocilo/paypal?narocilo_id='.$orderDetails['narocilo_id'],
+ "cancel_url" => $drupal_url_cancel,
+ "return_url" => $drupal_url_confirm,
'brand_name' => '1KA'
]
diff --git a/function.php b/function.php
index 1f859269b..cb34a8e4e 100644
--- a/function.php
+++ b/function.php
@@ -413,7 +413,7 @@ function login()
else {
$r = mysqli_fetch_row($result);
- if ($cookie_pass == base64_encode((hash(SHA256, base64_decode($r[0]) . $pass_salt)))) {
+ if ($cookie_pass == base64_encode((hash('SHA256', base64_decode($r[0]) . $pass_salt)))) {
$is_meta = 1;
$admin_type = "0";
diff --git a/lang/1.php b/lang/1.php
index 10059c9b9..33e5dca21 100644
--- a/lang/1.php
+++ b/lang/1.php
@@ -7747,6 +7747,7 @@ $lang = array (
'users_gdpr0' => 'Ne',
'users_gdpr-1' => 'Brez potrditve',
'srv_gdpr_notification_title' => "Spoštovani uporabnik/-ca orodja 1KA,",
+ 'srv_gdpr_notification_title_aai' => "Spoštovani uporabnik/-ca orodja 1KA.ARNES.SI,",
'srv_gdpr_notification_text1' => "V okviru razvoja orodja 1KA nenehno izboljšujemo obstoječe funkcionalnosti in razvijamo nove. Verjamemo, da so nove funkcionalnosti za vas zanimive in želite biti o njih obveščeni, prav tako o letnem dogodku Dan spletnega anketiranja.",
'srv_gdpr_notification_question' => "Ali se strinjate, da vam na elektronski naslov, s katerim ste se registrirali, enkrat letno pošljemo pomembna obvestila (informacije o novostih 1KA, vabilo na dogodek)?",
'srv_gdpr_notification_da' => "DA, strinjam se s prejemanjem obvestil enkrat letno (od prejemanja obvestil se lahko kadarkoli odjavite)",
diff --git a/lang/2.php b/lang/2.php
index f961822c2..0343bd0ab 100644
--- a/lang/2.php
+++ b/lang/2.php
@@ -7640,6 +7640,7 @@ GDPR introduction preview",
'srv_gdpr_drupal_check' => 'Želim, da me avtor obvesti o izvedeni zahtevi na zgoraj navedeni elektronski naslov.',
'srv_gdpr_drupal_end' => 'By clicking Submit, your request will be sent to the author of the survey.',
'srv_gdpr_notification_title' => "Dear user of 1KA tool,",
+ 'srv_gdpr_notification_title_aai' => "Dear user of 1KA.ARNES.SI tool,",
'srv_gdpr_notification_text1' => "As part of the development process of 1KA tool, we continually improve existing functionalities and develop new ones. We believe that new functionalities are interesting to you and you want to be informed about them, also about our annual event, the Web Survey Day.",
'srv_gdpr_notification_question' => "Do you agree to receive important news to the email address with which you registered? (Information about 1KA novelties, invitation to the event)?",
'srv_gdpr_notification_da' => "YES, I agree to receive notifications once a year (you can unsubscribe from notification anytime)",