WP DSGVO Tools - Version 2.2.14

Version Description

  • stability updates
  • bugfixes at sar and unsubscribe
Download this release

Release Info

Developer shapepress
Plugin Icon 128x128 WP DSGVO Tools
Version 2.2.14
Comparing to
See all releases

Code changes from version 2.2.13 to 2.2.14

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Shapepress
3
  Donate link: https://wp-dsgvo.eu
4
  Tags: gdpr, dsgvo, datenschutz, wordpress, compliance, data, privacy, woocommerce,
5
  Requires at least: 3.0.1
6
- Tested up to: 5.1.0
7
- Stable tag: 2.2.13
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -30,7 +30,7 @@ Features
30
  * Catalog to list data processing activities
31
  * Tipps & Help
32
  * Free Updates
33
- * PHP 7.2 compatibility
34
 
35
  **Blog Edition**
36
  * All features of Free Edition
@@ -80,6 +80,10 @@ Important: Disable other cookie notice plugins and Google Analytics or FB Pixel
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  = 2.2.13 =
84
  * cookie check improved
85
 
3
  Donate link: https://wp-dsgvo.eu
4
  Tags: gdpr, dsgvo, datenschutz, wordpress, compliance, data, privacy, woocommerce,
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.2.0
7
+ Stable tag: 2.2.14
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
30
  * Catalog to list data processing activities
31
  * Tipps & Help
32
  * Free Updates
33
+ * PHP 7.3 compatibility
34
 
35
  **Blog Edition**
36
  * All features of Free Edition
80
 
81
  == Changelog ==
82
 
83
+ = 2.2.14 =
84
+ * stability updates
85
+ * bugfixes at sar and unsubscribe
86
+
87
  = 2.2.13 =
88
  * cookie check improved
89
 
admin/class-sp-dsgvo-admin.php CHANGED
@@ -283,6 +283,24 @@ class SPDSGVOAdmin{
283
 
284
  printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
285
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  }
287
-
288
  }
283
 
284
  printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
285
  }
286
+
287
+ if (isPremiumEdition() && SPDSGVOSettings::get('show_invalid_license_notice') != '0')
288
+ {
289
+ $class = 'notice notice-warning is-dismissible license-invalid-notice';
290
+ $message = __( 'Attention. Your license is not valid any more. Please check WP DSGVO Tools settings to extend your license or visit <a href="URL_HERE" target="_blank">https://wp-dsgvo.eu/shop</a> to extend it.', 'shapepress-dsgvo' );
291
+ $message = str_replace('URL_HERE', getExtensionProductUrl(), $message);
292
+
293
+ printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
294
+ }
295
+
296
+ if (isPremiumEdition() && SPDSGVOSettings::get('show_revoke_license_notice') === '1')
297
+ {
298
+ $class = 'notice notice-warning is-dismissible license-revoke-notice';
299
+ $message = __( 'Attention. Your license is going to get invalid in a few days. Please check WP DSGVO Tools settings to extend your license or visit <a href="URL_HERE" target="_blank">https://wp-dsgvo.eu/shop</a> to extend it.', 'shapepress-dsgvo' );
300
+ $message = str_replace('URL_HERE', getExtensionProductUrl(), $message);
301
+
302
+ printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
303
+ }
304
  }
305
+
306
  }
admin/js/sp-dsgvo-admin.js CHANGED
@@ -94,6 +94,24 @@
94
  });
95
 
96
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
  });
99
  })( jQuery );
94
  });
95
 
96
  });
97
+
98
+ $('.license-invalid-notice').on('click tap', function() {
99
+
100
+ $.post( args.ajaxurl, {
101
+ action: 'notice-action',
102
+ id: 'license-invalid-notice'
103
+ });
104
+
105
+ });
106
+
107
+ $('.license-revoke-notice').on('click tap', function() {
108
+
109
+ $.post( args.ajaxurl, {
110
+ action: 'notice-action',
111
+ id: 'license-revoke-notice'
112
+ });
113
+
114
+ });
115
 
116
  });
117
  })( jQuery );
admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php CHANGED
@@ -81,11 +81,30 @@ class SPDSGVOCommonSettingsActivateAction extends SPDSGVOAjaxAction
81
 
82
  if ($body !== false)
83
  {
84
- $data = json_decode( $body );
85
- SPDSGVOSettings::set('licence_activated_on', $data->activation_date);
86
- SPDSGVOSettings::set('licence_valid_to', $data->expiration_date);
87
-
88
- SPDSGVOSettings::set('licence_details_fetched', '1');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
  }
91
  }
81
 
82
  if ($body !== false)
83
  {
84
+ if ($body !== false)
85
+ {
86
+ SPDSGVOSettings::set('licence_details_fetched', '1');
87
+ SPDSGVOSettings::set('licence_details_fetched_new', '1');
88
+ SPDSGVOSettings::set('licence_details_fetched_on', date("D M d, Y G:i"));
89
+ SPDSGVOSettings::set('show_invalid_license_notice', '0');
90
+ SPDSGVOSettings::set('show_revoke_license_notice', '0');
91
+
92
+ $data = json_decode( $body );
93
+ SPDSGVOSettings::set('licence_activated_on', $data->activation_date);
94
+ SPDSGVOSettings::set('licence_valid_to', $data->expiration_date);
95
+ SPDSGVOSettings::set('licence_number_use_remaining', $data->number_use_remaining);
96
+ SPDSGVOSettings::set('licence_status', $data->license_status);
97
+
98
+ if (isPremiumEdition() && strtotime($data->expiration_date) < strtotime('today'))
99
+ {
100
+ SPDSGVOSettings::set('show_invalid_license_notice', '1');
101
+ }
102
+
103
+ if (isPremiumEdition() && strtotime($data->expiration_date) <= strtotime('today -14 days'))
104
+ {
105
+ SPDSGVOSettings::set('show_revoke_license_notice', '1');
106
+ }
107
+ }
108
  }
109
  }
110
  }
admin/tabs/common-settings/class-sp-dsgvo-common-settings-validate-license-action.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SPDSGVOCommonSettingsValidateLicenseAction extends SPDSGVOAjaxAction
4
+ {
5
+
6
+ protected $action = 'admin-common-settings-validate-license';
7
+
8
+ protected function run()
9
+ {
10
+ $this->requireAdmin();
11
+ error_log('admin-common-settings-validate-license');
12
+
13
+ $licActivated = SPDSGVOSettings::get('license_activated');
14
+ $licenceKey = SPDSGVOSettings::get('dsgvo_licence');
15
+ $oldLicenseStatus = SPDSGVOSettings::get('licence_status');
16
+
17
+ if ($licenceKey !== '' && SPDSGVOSettings::get('license_activated') === '1') {
18
+
19
+ error_log('validating licence '.$licenceKey);
20
+
21
+ $url = 'https://wp-dsgvo.eu/spdsgvo-bin/licensedetails.php';
22
+ $url .= '?license_key=' .$licenceKey;
23
+
24
+ $request = wp_remote_get($url);
25
+
26
+ if( is_wp_error( $request ) ) {
27
+
28
+ error_log(__('error during license validation: ', 'shapepress-dsgvo').$request); // Bail early
29
+ } else {
30
+
31
+ $body = wp_remote_retrieve_body( $request );
32
+ error_log('body: '.$body);
33
+
34
+ if ($body !== false)
35
+ {
36
+ SPDSGVOSettings::set('licence_details_fetched', '1');
37
+ SPDSGVOSettings::set('licence_details_fetched_new', '1');
38
+ SPDSGVOSettings::set('licence_details_fetched_on', date("D M d, Y G:i"));
39
+ SPDSGVOSettings::set('show_invalid_license_notice', '0');
40
+ SPDSGVOSettings::set('show_revoke_license_notice', '0');
41
+
42
+ $data = json_decode( $body );
43
+ SPDSGVOSettings::set('licence_activated_on', $data->activation_date);
44
+ SPDSGVOSettings::set('licence_valid_to', $data->expiration_date);
45
+ SPDSGVOSettings::set('licence_number_use_remaining', $data->number_use_remaining);
46
+ SPDSGVOSettings::set('licence_status', $data->license_status);
47
+
48
+ if (isPremiumEdition() && isLicenceValid() === false)
49
+ {
50
+ error_log("WP DSGVO Tools (GDPR) license is invalid.");
51
+ SPDSGVOSettings::set('show_invalid_license_notice', '1');
52
+ }
53
+
54
+ if (licenseIsGoingToRunningOut())
55
+ {
56
+ error_log("WP DSGVO Tools (GDPR) license is going to running out in a few days");
57
+ SPDSGVOSettings::set('show_revoke_license_notice', '1');
58
+ }
59
+
60
+ if (hasValidLicenseStatus($oldLicenseStatus, $licActivated)=== true
61
+ && hasValidLicenseStatus($data->license_status, $licActivated) === false)
62
+ {
63
+ error_log("WP DSGVO Tools (GDPR) license got invalid now. sending email to ".SPDSGVOSettings::get('admin_email'));
64
+ wp_mail(SPDSGVOSettings::get('admin_email'),
65
+ __('WP DSGVO Tools (GPDR) License Error','shapepress-dsgvo').': '. parse_url(home_url(), PHP_URL_HOST),
66
+ __('Your license has expired. Please renew it according to the hint at the plugin settings page.','shapepress-dsgvo'));
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ $this->returnBack();
73
+ }
74
+
75
+ public function doAction()
76
+ {
77
+ $this->run();
78
+ }
79
+ }
80
+
81
+ SPDSGVOCommonSettingsValidateLicenseAction::listen();
admin/tabs/common-settings/page.php CHANGED
@@ -1,37 +1,67 @@
1
- <form method="post" action="<?= admin_url('/admin-ajax.php'); ?>">
2
- <input type="hidden" name="action" value="admin-common-settings-activate">
3
 
4
  <h1><?php _e('Activate Blog/Premium','shapepress-dsgvo')?></h1>
5
 
6
  <table class="form-table">
7
  <tr>
8
- <th scope="row"><?php _e('License','shapepress-dsgvo')?></th>
9
- <td><label for="dsgvo_licence"> <input name="dsgvo_licence"
10
- type="text" id="dsgvo_licence" style="width: 200px"
11
- value="<?= SPDSGVOSettings::get('dsgvo_licence'); ?>">
12
- </label>
13
- <?php if(SPDSGVOSettings::get('license_activated') === '1'): ?>
14
- <span class="info-text">
15
- <?php if(isPremiumEdition()): ?>
16
- <?= isValidPremiumEdition() ? _e('Premium version has been activated','shapepress-dsgvo') : _e('Invalid or expired license.','shapepress-dsgvo'); ?>
17
- <?php endif; ?>
18
- <?php if(isBlogEdition()): ?>
19
- <?= isValidBlogEdition() ? _e('Blog version has been activated','shapepress-dsgvo') : _e('Invalid license.','shapepress-dsgvo'); ?>
20
- <?php endif; ?>
21
- </span>
22
- <?php if(isPremiumEdition() && SPDSGVOSettings::get('licence_details_fetched') === '1'): ?>
23
- <span class="info-text"><?php _e('Activated on:','shapepress-dsgvo'); ?> <?= date("d.m.Y", strtotime(SPDSGVOSettings::get('licence_activated_on'))); ?>
24
- <?php _e('Valid to:','shapepress-dsgvo'); ?> <?= date("d.m.Y", strtotime(SPDSGVOSettings::get('licence_valid_to'))); ?></span>
25
- <?php endif; ?>
26
- <?php submit_button(__('Deactivate license','shapepress-dsgvo')); ?>
27
- <?php else: ?>
28
- <span class="info-text"><?php _e('Activating the license unlocks more features.','shapepress-dsgvo'); ?></span>
29
- <?php submit_button(__('Activate license','shapepress-dsgvo')); ?>
30
- <?php endif; ?>
31
- </td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  </tr>
33
  </table>
34
- </form>
35
 
36
  <form method="post" action="<?= admin_url('/admin-ajax.php'); ?>">
37
  <input type="hidden" name="action" value="admin-common-settings">
 
 
1
 
2
  <h1><?php _e('Activate Blog/Premium','shapepress-dsgvo')?></h1>
3
 
4
  <table class="form-table">
5
  <tr>
6
+ <th scope="row"><?php _e('License','shapepress-dsgvo')?></th>
7
+ <td>
8
+ <form method="post" action="<?= admin_url('/admin-ajax.php'); ?>" style="display: inline">
9
+ <input type="hidden" name="action" value="admin-common-settings-activate">
10
+ <label for="dsgvo_licence"> <input name="dsgvo_licence"
11
+ type="text" id="dsgvo_licence" style="width: 200px"
12
+ value="<?= SPDSGVOSettings::get('dsgvo_licence'); ?>">
13
+ </label>
14
+ <?php if(SPDSGVOSettings::get('license_activated') === '1'): ?>
15
+ <input type="submit" class="button button-primary" value="<?= __('Deactivate license','shapepress-dsgvo')?>" />
16
+ <?php else: ?>
17
+ <input type="submit" class="button button-primary" value="<?= __('Activate license','shapepress-dsgvo')?>" />
18
+ <span class="info-text"><?php _e('Activating the license unlocks more features.','shapepress-dsgvo'); ?></span>
19
+ <?php endif; ?>
20
+ </form>
21
+ <form method="post" action="<?= admin_url('/admin-ajax.php'); ?>" style="display: inline">
22
+ <input type="hidden" name="action" value="admin-common-settings-validate-license">
23
+ <input type="submit" class="button button-secondary" value="<?= __('Refresh license','shapepress-dsgvo')?>" />
24
+ </form>
25
+ <?php if(licenseIsGoingToRunningOut()): ?>
26
+ <a href="<?= getExtensionProductUrl();?>" class="button button-secondary" style="background-color: #aed581;" target="_blank" ><?= __('Extend license now and gain discount','shapepress-dsgvo')?></a>
27
+ <?php endif; ?>
28
+ </td>
29
+ </tr>
30
+ <tr>
31
+ <th></th>
32
+ <td>
33
+ <?php if(SPDSGVOSettings::get('license_activated') === '1'): ?>
34
+ <div style="font-weight:500">
35
+ <?php if(isPremiumEdition()): ?>
36
+ <?= isValidPremiumEdition() ? _e('Premium version has been activated','shapepress-dsgvo') : ('<span style ="color: red;">'. __('Invalid or expired license.','shapepress-dsgvo'). "</span>"); ?>
37
+ <?php endif; ?>
38
+ <?php if(isBlogEdition()): ?>
39
+ <?= isValidBlogEdition() ? _e('Blog version has been activated','shapepress-dsgvo') : _e('Invalid license.','shapepress-dsgvo'); ?>
40
+ <?php endif; ?>
41
+ </div>
42
+
43
+ <?php if(isPremiumEdition() && SPDSGVOSettings::get('licence_details_fetched') === '1'): ?>
44
+ <div><div style="font-weight:500; width: 150px; float:left;"><?php _e('Activated on:','shapepress-dsgvo'); ?></div> <?= date("d.m.Y", strtotime(SPDSGVOSettings::get('licence_activated_on'))); ?></div>
45
+ <div><div style="font-weight:500; width: 150px; float:left;"><?php _e('Status:','shapepress-dsgvo'); ?></div> <?= SPDSGVOSettings::get('licence_status'); ?></div>
46
+ <?php if (isUnlimitedLicense(SPDSGVOSettings::get('dsgvo_licence')) == false) :?>
47
+ <div><div style="font-weight:500; width: 150px; float:left;"><?php _e('Valid to:','shapepress-dsgvo'); ?></div> <?= date("d.m.Y", strtotime(SPDSGVOSettings::get('licence_valid_to'))); ?></div>
48
+ <?php endif; ?>
49
+ <?php if( SPDSGVOSettings::get('licence_details_fetched_new') === '1'): ?>
50
+ <div><div style="font-weight:500; width: 150px; float:left;"><?php _e('Last validation:','shapepress-dsgvo'); ?></div> <?= date_i18n("d.m.Y H:i", strtotime(SPDSGVOSettings::get('licence_details_fetched_on'))); ?></div>
51
+ <div><div style="font-weight:500; width: 150px; float:left;"><?php _e('Remaining activations:','shapepress-dsgvo'); ?></div> <?= SPDSGVOSettings::get('licence_number_use_remaining'); ?></div>
52
+ <?php endif; ?>
53
+ <?php endif; ?>
54
+ <?php else: ?>
55
+ <span class="info-text"><?php _e('Activating the license unlocks more features.','shapepress-dsgvo'); ?></span>
56
+ <?php endif; ?>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <th></th>
61
+ <td></td>
62
  </tr>
63
  </table>
64
+
65
 
66
  <form method="post" action="<?= admin_url('/admin-ajax.php'); ?>">
67
  <input type="hidden" name="action" value="admin-common-settings">
admin/tabs/subject-access-request/class-sp-dsgvo-subject-access-request-action.php CHANGED
@@ -7,16 +7,20 @@ Class SPDSGVOAdminSubjectAccessRequestAction extends SPDSGVOAjaxAction{
7
  protected function run(){
8
  $this->requireAdmin();
9
 
10
- SPDSGVOSettings::set('sar_cron', $this->get('sar_cron', '0'));
11
- if (isValidPremiumEdition())
12
  {
13
- SPDSGVOSettings::set('sar_email_notification', $this->get('sar_email_notification', '0'));
14
- }
15
 
16
- SPDSGVOSettings::set('sar_dsgvo_accepted_text', $this->get('sar_dsgvo_accepted_text', ''));
17
-
18
- if($this->has('sar_page')){
19
- SPDSGVOSettings::set('sar_page', $this->get('sar_page'));
 
 
 
 
 
 
 
20
  }
21
 
22
  if($this->has('process')){
7
  protected function run(){
8
  $this->requireAdmin();
9
 
10
+ if ($this->has('process') == false && $this->get('all') != '1')
 
11
  {
 
 
12
 
13
+ SPDSGVOSettings::set('sar_cron', $this->get('sar_cron', '0'));
14
+ if (isValidPremiumEdition())
15
+ {
16
+ SPDSGVOSettings::set('sar_email_notification', $this->get('sar_email_notification', '0'));
17
+ }
18
+
19
+ SPDSGVOSettings::set('sar_dsgvo_accepted_text', $this->get('sar_dsgvo_accepted_text', ''));
20
+
21
+ if($this->has('sar_page')){
22
+ SPDSGVOSettings::set('sar_page', $this->get('sar_page'));
23
+ }
24
  }
25
 
26
  if($this->has('process')){
admin/tabs/super-unsubscribe/class-sp-dsgvo-super-unsubscribe-action.php CHANGED
@@ -7,27 +7,30 @@ Class SPDSGVOSuperUnsubscribeAction extends SPDSGVOAjaxAction{
7
  protected function run(){
8
  $this->requireAdmin();
9
 
10
- // unsubscribe_auto_delete
11
- SPDSGVOSettings::set('unsubscribe_auto_delete', $this->get('unsubscribe_auto_delete', '0'));
12
- if (isValidPremiumEdition())
13
  {
14
- SPDSGVOSettings::set('su_email_notification', $this->get('su_email_notification', '0'));
15
- SPDSGVOSettings::set('su_woo_data_action', $this->get('su_woo_data_action', 'ignore'));
16
- SPDSGVOSettings::set('su_bbpress_data_action', $this->get('su_bbpress_data_action', 'ignore'));
17
- SPDSGVOSettings::set('su_buddypress_data_action', $this->get('su_buddypress_data_action', 'ignore'));
18
- SPDSGVOSettings::set('su_cf7_data_action', $this->get('su_cf7_data_action', 'ignore'));
19
- }
20
- SPDSGVOSettings::set('su_dsgvo_accepted_text', $this->get('su_dsgvo_accepted_text', ''));
21
-
22
- // unsubscribe auto delete tme
23
- SPDSGVOSettings::set('su_auto_del_time', $this->get('su_auto_del_time', '0'));
24
-
25
- // Set super_unsubscribe_page
26
- if($this->has('super_unsubscribe_page')){
27
- SPDSGVOSettings::set('super_unsubscribe_page', $this->get('super_unsubscribe_page'));
 
 
 
 
 
 
28
  }
29
 
30
-
31
  // Unsubscribe single user
32
  if($this->has('process')){
33
  $unsubscriber = SPDSGVOUnsubscriber::find($this->get('process'));
7
  protected function run(){
8
  $this->requireAdmin();
9
 
10
+ if ($this->has('process') == false && $this->get('all') != '1')
 
 
11
  {
12
+
13
+ // unsubscribe_auto_delete
14
+ SPDSGVOSettings::set('unsubscribe_auto_delete', $this->get('unsubscribe_auto_delete', '0'));
15
+ if (isValidPremiumEdition())
16
+ {
17
+ SPDSGVOSettings::set('su_email_notification', $this->get('su_email_notification', '0'));
18
+ SPDSGVOSettings::set('su_woo_data_action', $this->get('su_woo_data_action', 'ignore'));
19
+ SPDSGVOSettings::set('su_bbpress_data_action', $this->get('su_bbpress_data_action', 'ignore'));
20
+ SPDSGVOSettings::set('su_buddypress_data_action', $this->get('su_buddypress_data_action', 'ignore'));
21
+ SPDSGVOSettings::set('su_cf7_data_action', $this->get('su_cf7_data_action', 'ignore'));
22
+ }
23
+ SPDSGVOSettings::set('su_dsgvo_accepted_text', $this->get('su_dsgvo_accepted_text', ''));
24
+
25
+ // unsubscribe auto delete tme
26
+ SPDSGVOSettings::set('su_auto_del_time', $this->get('su_auto_del_time', '0'));
27
+
28
+ // Set super_unsubscribe_page
29
+ if($this->has('super_unsubscribe_page')){
30
+ SPDSGVOSettings::set('super_unsubscribe_page', $this->get('super_unsubscribe_page'));
31
+ }
32
  }
33
 
 
34
  // Unsubscribe single user
35
  if($this->has('process')){
36
  $unsubscriber = SPDSGVOUnsubscriber::find($this->get('process'));
includes/class-sp-dsgvo-settings.php CHANGED
@@ -39,8 +39,13 @@ class SPDSGVOSettings{
39
  'license_key_error' => '1',
40
  'license_activated' => '0',
41
  'licence_activated_on' => '2018-05-01',
42
- 'licence_valid_to' => '2018-05-05',
43
  'licence_details_fetched' => '0',
 
 
 
 
 
44
  'api_key' => '',
45
  'admin_email' => '',
46
  'use_wpml_strings' => '0',
39
  'license_key_error' => '1',
40
  'license_activated' => '0',
41
  'licence_activated_on' => '2018-05-01',
42
+ 'licence_valid_to' => '',
43
  'licence_details_fetched' => '0',
44
+ 'licence_details_fetched_new' => '0',
45
+ 'show_invalid_license_notice' => '0',
46
+ 'show_revoke_license_notice' => '0',
47
+ 'licence_number_use_remaining' => '0',
48
+ 'licence_status' => '',
49
  'api_key' => '',
50
  'admin_email' => '',
51
  'use_wpml_strings' => '0',
includes/class-sp-dsgvo.php CHANGED
@@ -118,6 +118,7 @@ class SPDSGVO{
118
  //======================================================================
119
  SPDSGVO::pluginDir('includes/cron/do-subject-access-request.php'),
120
  SPDSGVO::pluginDir('includes/cron/do-delete-data-request.php'),
 
121
 
122
 
123
  //======================================================================
@@ -200,7 +201,8 @@ class SPDSGVO{
200
  SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-tab.php'),
201
  SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-action.php'),
202
  SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php'),
203
-
 
204
  // Cookie Notice
205
  SPDSGVO::pluginDir('admin/tabs/cookie-notice/class-sp-dsgvo-cookie-notice-tab.php'),
206
  SPDSGVO::pluginDir('admin/tabs/cookie-notice/class-sp-dsgvo-cookie-notice-action.php'),
@@ -245,6 +247,7 @@ class SPDSGVO{
245
  * @access private
246
  */
247
  private function defineAdminHooks(){
 
248
  $admin = new SPDSGVOAdmin();
249
  $this->loader->add_action('init', $admin, 'adminInit');
250
  $this->loader->add_action('admin_enqueue_scripts', $admin, 'enqueue_styles');
118
  //======================================================================
119
  SPDSGVO::pluginDir('includes/cron/do-subject-access-request.php'),
120
  SPDSGVO::pluginDir('includes/cron/do-delete-data-request.php'),
121
+ SPDSGVO::pluginDir('includes/cron/do-validate-license.php'),
122
 
123
 
124
  //======================================================================
201
  SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-tab.php'),
202
  SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-action.php'),
203
  SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php'),
204
+ SPDSGVO::pluginDir('admin/tabs/common-settings/class-sp-dsgvo-common-settings-validate-license-action.php'),
205
+
206
  // Cookie Notice
207
  SPDSGVO::pluginDir('admin/tabs/cookie-notice/class-sp-dsgvo-cookie-notice-tab.php'),
208
  SPDSGVO::pluginDir('admin/tabs/cookie-notice/class-sp-dsgvo-cookie-notice-action.php'),
247
  * @access private
248
  */
249
  private function defineAdminHooks(){
250
+
251
  $admin = new SPDSGVOAdmin();
252
  $this->loader->add_action('init', $admin, 'adminInit');
253
  $this->loader->add_action('admin_enqueue_scripts', $admin, 'enqueue_styles');
includes/cron/do-validate-license.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ Class DoValidateLicense extends SPDSGVOCron{
4
+
5
+ public $interval = array(
6
+ 'days' => 1,
7
+ );
8
+
9
+ public function handle(){
10
+ error_log("DoValidateLicense called");
11
+ $licActivated = SPDSGVOSettings::get('license_activated');
12
+ $licenceKey = SPDSGVOSettings::get('dsgvo_licence');
13
+ $oldLicenseStatus = SPDSGVOSettings::get('licence_status');
14
+
15
+ if($licActivated === '1' && $licenceKey !== ''){
16
+
17
+ error_log("DoValidateLicense starting");
18
+
19
+ error_log('validating licence '.$licenceKey);
20
+
21
+ $url = 'https://wp-dsgvo.eu/spdsgvo-bin/licensedetails.php';
22
+ $url .= '?license_key=' .$licenceKey;
23
+
24
+ $request = wp_remote_get($url);
25
+
26
+ if( is_wp_error( $request ) ) {
27
+
28
+ error_log(__('error during license validation: ', 'shapepress-dsgvo').$request); // Bail early
29
+ } else {
30
+
31
+ $body = wp_remote_retrieve_body( $request );
32
+ error_log('body: '.$body);
33
+
34
+ if ($body !== false)
35
+ {
36
+ SPDSGVOSettings::set('licence_details_fetched', '1');
37
+ SPDSGVOSettings::set('licence_details_fetched_new', '1');
38
+ SPDSGVOSettings::set('licence_details_fetched_on', date("D M d, Y G:i"));
39
+ SPDSGVOSettings::set('show_invalid_license_notice', '0');
40
+ SPDSGVOSettings::set('show_revoke_license_notice', '0');
41
+
42
+ $data = json_decode( $body );
43
+ SPDSGVOSettings::set('licence_activated_on', $data->activation_date);
44
+ SPDSGVOSettings::set('licence_valid_to', $data->expiration_date);
45
+ SPDSGVOSettings::set('licence_number_use_remaining', $data->number_use_remaining);
46
+ SPDSGVOSettings::set('licence_status', $data->license_status);
47
+
48
+ if (isPremiumEdition() && isLicenceValid() === false)
49
+ {
50
+ error_log("WP DSGVO Tools (GDPR) license is invalid.");
51
+ SPDSGVOSettings::set('show_invalid_license_notice', '1');
52
+ }
53
+
54
+ if (licenseIsGoingToRunningOut())
55
+ {
56
+ error_log("WP DSGVO Tools (GDPR) license is going to running out in a few days");
57
+ SPDSGVOSettings::set('show_revoke_license_notice', '1');
58
+ }
59
+
60
+ if (hasValidLicenseStatus($oldLicenseStatus, $licActivated)=== true
61
+ && hasValidLicenseStatus($data->license_status, $licActivated) === false)
62
+ {
63
+ error_log("WP DSGVO Tools (GDPR) license got invalid now. sending email to ".SPDSGVOSettings::get('admin_email'));
64
+ wp_mail(SPDSGVOSettings::get('admin_email'),
65
+ __('WP DSGVO Tools (GPDR) License Error','shapepress-dsgvo').': '. parse_url(home_url(), PHP_URL_HOST),
66
+ __('Your license has expired. Please renew it according to the hint at the plugin settings page.','shapepress-dsgvo'));
67
+ }
68
+
69
+ }
70
+ }
71
+
72
+ error_log("DoValidateLicense finished");
73
+ }
74
+ }
75
+ }
76
+
77
+ DoValidateLicense::register();
includes/helpers.php CHANGED
@@ -196,17 +196,25 @@ if (! function_exists('isLicenceValid')) {
196
 
197
  function isLicenceValid()
198
  {
 
 
 
 
 
 
199
  if (isBlogEdition())
200
  {
201
- return SPDSGVOSettings::get('dsgvo_licence') !== '' &&
202
- // && SPDSGVOSettings::get('license_key_error') === '0'
203
- SPDSGVOSettings::get('license_activated') === '1';
204
  } else
205
  {
206
- return SPDSGVOSettings::get('dsgvo_licence') !== '' &&
207
- // && SPDSGVOSettings::get('license_key_error') === '0'
208
- SPDSGVOSettings::get('license_activated') === '1'
209
- && (strtotime('today') <= strtotime(SPDSGVOSettings::get('licence_valid_to')));
 
 
 
 
210
  }
211
 
212
  }
@@ -228,6 +236,86 @@ if (! function_exists('isValidPremiumEdition')) {
228
  }
229
  }
230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  if (! function_exists('createLog')) {
232
 
233
  function createLog($content)
196
 
197
  function isLicenceValid()
198
  {
199
+ $licenseKey = SPDSGVOSettings::get('dsgvo_licence');
200
+ $licenseStatus = SPDSGVOSettings::get('licence_status');
201
+ $licenseActivated = SPDSGVOSettings::get('license_activated');
202
+
203
+ if ($licenseKey === '') return false;
204
+
205
  if (isBlogEdition())
206
  {
207
+ return hasValidLicenseStatus($licenseStatus, $licenseActivated);
 
 
208
  } else
209
  {
210
+ if (isUnlimitedLicense($licenseKey))
211
+ {
212
+ return hasValidLicenseStatus($licenseStatus, $licenseActivated);
213
+ } else
214
+ {
215
+ return hasValidLicenseStatus($licenseStatus, $licenseActivated)
216
+ && (strtotime('today') <= strtotime(SPDSGVOSettings::get('licence_valid_to')));
217
+ }
218
  }
219
 
220
  }
236
  }
237
  }
238
 
239
+ if (! function_exists('isUnlimitedLicense')) {
240
+
241
+ function isUnlimitedLicense($license)
242
+ {
243
+ if ($license === '' || strlen($license) < 2) return false;
244
+
245
+ return substr( $license, 0, 6 ) === "PR_XX_" //
246
+ || substr( $license, 0, 6 ) === "PP_XX" // plus
247
+ || substr( $license, 0, 6 ) === "PD_XX" // dev
248
+ || substr( $license, 0, 3 ) === "PB_"; // blog
249
+ }
250
+ }
251
+
252
+ if (! function_exists('hasValidLicenseStatus')) {
253
+
254
+ function hasValidLicenseStatus($licenseStatus, $licenseActivated)
255
+ {
256
+ if ($licenseStatus === '' || strlen($licenseStatus) < 2) {
257
+
258
+ return SPDSGVOSettings::get('licence_details_fetched_new') === '0'; // true if not fetched, otherwise false
259
+ }
260
+
261
+ if ($licenseActivated === '0') return false;
262
+
263
+ if (strtolower($licenseStatus) === 'returned') return false;
264
+ if (strtolower($licenseStatus) === 'expired') return false;
265
+
266
+ return true;
267
+ }
268
+ }
269
+
270
+ if (! function_exists('licenseIsGoingToRunningOut')) {
271
+
272
+ function licenseIsGoingToRunningOut()
273
+ {
274
+ $licenseKey = SPDSGVOSettings::get('dsgvo_licence');
275
+ if (isUnlimitedLicense($licenseKey)) return false;
276
+
277
+ $licenseValidtoDate = SPDSGVOSettings::get('licence_valid_to');
278
+
279
+ return isPremiumEdition() && strtotime($licenseValidtoDate) <= strtotime('today +14 days');
280
+ }
281
+ }
282
+
283
+ if (! function_exists('getExtensionProductUrl')) {
284
+
285
+ function getExtensionProductUrl()
286
+ {
287
+ $license = SPDSGVOSettings::get('dsgvo_licence');
288
+ if ($license === '' || strlen($license) < 2) return '';
289
+
290
+ $baseUrl = "https://wp-dsgvo.eu";
291
+ $newUrl = $baseUrl;
292
+
293
+ if (spDsgvoGetLocale() === 'de_DE')
294
+ {
295
+
296
+ switch (substr( $license, 0, 2 ))
297
+ {
298
+ case 'PR': $newUrl .='/shop/verlaengerung/wp-dsgvo-tools-premium-verlaengerung/'; break;
299
+ case 'PP': $newUrl .='/shop/verlaengerung/wp-dsgvo-tools-premium-plus-new-verlaengerung/'; break;
300
+ case 'PD': $newUrl .='/shop/verlaengerung/wp-dsgvo-tools-premium-developer-verlaengerung/'; break;
301
+ default: return '';
302
+ }
303
+ } else
304
+ {
305
+ switch (substr( $license, 0, 2 ))
306
+ {
307
+ case 'PR': $newUrl .='/en/shop/renewal/wp-dsgvo-tools-premium-renewal/'; break;
308
+ case 'PP': $newUrl .='/en/shop/renewal/wp-dsgvo-tools-premium-plus-renewal/'; break;
309
+ case 'PD': $newUrl .='/en/shop/renewal/wp-dsgvo-tools-premium-developer-renewal/'; break;
310
+ default: return '';
311
+ }
312
+ }
313
+
314
+ $newUrl .= "?lic=".$license;
315
+ return $newUrl;
316
+ }
317
+ }
318
+
319
  if (! function_exists('createLog')) {
320
 
321
  function createLog($content)
languages/shapepress-dsgvo-de_DE.mo CHANGED
Binary file
languages/shapepress-dsgvo-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2019-02-22 13:41+0100\n"
5
- "PO-Revision-Date: 2019-02-22 14:15+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: de_DE\n"
@@ -223,6 +223,29 @@ msgstr ""
223
  "Änderungen (Änderungen für Google) zu erhalten. Benutzen Sie dazu den Button "
224
  "\"... Template laden\" in den Datenschutzeinstellungen."
225
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
  #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php:28
227
  #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php:50
228
  msgid "error during license activation: "
@@ -233,106 +256,146 @@ msgid "error during license details: "
233
  msgstr "Fehler während der Lizenzabfrage: "
234
 
235
  #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-tab.php:11
236
- #: admin/tabs/common-settings/page.php:41
237
  msgid "Common Settings"
238
  msgstr "Allgemeine Einstellungen"
239
 
240
- #: admin/tabs/common-settings/page.php:4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  msgid "Activate Blog/Premium"
242
  msgstr "Blog/Premium Edition freischalten"
243
 
244
- #: admin/tabs/common-settings/page.php:8
245
  msgid "License"
246
  msgstr "Lizenz"
247
 
248
- #: admin/tabs/common-settings/page.php:16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  msgid "Premium version has been activated"
250
  msgstr "Die Premium Edition ist aktiviert."
251
 
252
- #: admin/tabs/common-settings/page.php:16
253
  msgid "Invalid or expired license."
254
  msgstr "Ungültige oder abgelaufene Lizenz."
255
 
256
- #: admin/tabs/common-settings/page.php:19
257
  msgid "Blog version has been activated"
258
  msgstr "Die Blog Edition ist aktiviert."
259
 
260
- #: admin/tabs/common-settings/page.php:19
261
  msgid "Invalid license."
262
  msgstr "Ungültige Lizenz."
263
 
264
- #: admin/tabs/common-settings/page.php:23
265
  msgid "Activated on:"
266
  msgstr "Aktiviert am:"
267
 
268
- #: admin/tabs/common-settings/page.php:24
 
 
 
 
269
  msgid "Valid to:"
270
  msgstr "Gültig bis:"
271
 
272
- #: admin/tabs/common-settings/page.php:26
273
- msgid "Deactivate license"
274
- msgstr "Lizenz deaktivieren"
275
 
276
- #: admin/tabs/common-settings/page.php:28
277
- msgid "Activating the license unlocks more features."
278
- msgstr "Aktivieren der Lizenz schaltet weitere Funktionen frei."
279
 
280
- #: admin/tabs/common-settings/page.php:29
281
- msgid "Activate license"
282
- msgstr "Lizenz aktivieren"
283
-
284
- #: admin/tabs/common-settings/page.php:45
285
  msgid "Admin Email"
286
  msgstr "Admin Email"
287
 
288
- #: admin/tabs/common-settings/page.php:49
289
  msgid "Used by sending emails."
290
  msgstr "Wird bei Emails verwendet."
291
 
292
- #: admin/tabs/common-settings/page.php:53
293
  msgid "Use WPML Strings"
294
  msgstr "WPML Strings verwenden"
295
 
296
- #: admin/tabs/common-settings/page.php:58
297
  msgid ""
298
  "Use WPML String Translation for text inputs. (E.g. Checkbox for comments.)"
299
  msgstr ""
300
  "WPML String Übersetzungen für Eingabefelder verwenden. (z.B. bei der "
301
  "Checkbox für Kommentare)"
302
 
303
- #: admin/tabs/common-settings/page.php:64
304
- #: admin/tabs/common-settings/page.php:66
305
  msgid "Comments"
306
  msgstr "Kommentare"
307
 
308
- #: admin/tabs/common-settings/page.php:66
309
  msgid "Customizing possible with Blog/Premium edition."
310
  msgstr "Anpassung ab der Blog/Premium Edition möglich."
311
 
312
- #: admin/tabs/common-settings/page.php:67
313
  msgid "Click here to get a license."
314
  msgstr "Hier klicken um eine Lizenz anzufordern."
315
 
316
- #: admin/tabs/common-settings/page.php:72
317
  msgid "Checkbox for comments:"
318
  msgstr "Checkbox bei Kommentaren:"
319
 
320
- #: admin/tabs/common-settings/page.php:77
321
  msgid ""
322
  "Displays at checkbox which requires confirmation when creating a comment."
323
  msgstr ""
324
  "Zeigt eine Checkbox bei Kommentaren an welche die Zustimmung zu den DSGVO "
325
  "Bestimmungen fordert."
326
 
327
- #: admin/tabs/common-settings/page.php:78
328
  msgid "Important: Not compatible in combination with Jetpack comment form."
329
  msgstr "Wichtig: Nicht kompatibel mit der Kommentarfunktion von Jetpack."
330
 
331
- #: admin/tabs/common-settings/page.php:84
332
  msgid "Replace CF7 Acceptance text"
333
  msgstr "CF7 Acceptance Text ersetzen"
334
 
335
- #: admin/tabs/common-settings/page.php:91
336
  msgid ""
337
  "Replaces the text of CF7 Acceptance Checkboxes with following text. (Add to "
338
  "your form: [acceptance dsgvo] Text[/acceptance])"
@@ -341,23 +404,24 @@ msgstr ""
341
  "nachfolgendem Text. (Im Formular erg&auml;nzen: [acceptance dsgvo] Text[/"
342
  "acceptance])"
343
 
344
- #: admin/tabs/common-settings/page.php:95 admin/tabs/cookie-notice/page.php:638
 
345
  msgid "Text"
346
  msgstr "Text"
347
 
348
- #: admin/tabs/common-settings/page.php:97
349
  msgid "Message text:"
350
  msgstr "Meldungstext:"
351
 
352
- #: admin/tabs/common-settings/page.php:103
353
  msgid "Info text:"
354
  msgstr "Hinweistext:"
355
 
356
- #: admin/tabs/common-settings/page.php:111
357
  msgid "Confirmation text"
358
  msgstr "Zustimmungstext"
359
 
360
- #: admin/tabs/common-settings/page.php:120
361
  #: admin/tabs/cookie-notice/page.php:144 admin/tabs/imprint/page.php:45
362
  #: admin/tabs/privacy-policy/page.php:68
363
  msgid ""
@@ -367,11 +431,11 @@ msgstr ""
367
  "<strong>Wichtiger Hinweis:</strong> Falls Sie WPML verwenden, können sie mit "
368
  "Hilfe der WPML String Translations diese Texte übersetzen."
369
 
370
- #: admin/tabs/common-settings/page.php:125
371
  msgid "Company data"
372
  msgstr "Unternehmensdaten"
373
 
374
- #: admin/tabs/common-settings/page.php:126
375
  msgid ""
376
  "The following input fields represent the basic data necessary for the "
377
  "creation of GDPR compliant data protection regulations and an imprint.<br /"
@@ -384,80 +448,80 @@ msgstr ""
384
  "automatisch in das vom WP DSGVO Tools (GDPR) Plugin generierten "
385
  "Datenschutzbestimmungen sowie Impressum verwendet."
386
 
387
- #: admin/tabs/common-settings/page.php:130
388
  msgid "Company name:"
389
  msgstr "Name des Unternehmens:"
390
 
391
- #: admin/tabs/common-settings/page.php:137
392
  msgid "Street:"
393
  msgstr "Straße:"
394
 
395
- #: admin/tabs/common-settings/page.php:144
396
  msgid "ZIP + Location:"
397
  msgstr "PLZ + Ort:"
398
 
399
- #: admin/tabs/common-settings/page.php:151
400
  msgid "Commercial book no.:"
401
  msgstr "Firmenbuch Nr.:"
402
 
403
- #: admin/tabs/common-settings/page.php:158
404
  msgid "§11 Place of Jurisdiction:"
405
  msgstr "Gerichtsstand:"
406
 
407
- #: admin/tabs/common-settings/page.php:165
408
  msgid "VAT No.:"
409
  msgstr "USt. Id:"
410
 
411
- #: admin/tabs/common-settings/page.php:172
412
  msgid "Legal representatives:"
413
  msgstr "Gesetzlicher Vertreter:"
414
 
415
- #: admin/tabs/common-settings/page.php:176
416
  msgid "The person who legally represents the company."
417
  msgstr "Die Person die das Unternehmen gesetzlich vertritt."
418
 
419
- #: admin/tabs/common-settings/page.php:179
420
  msgid "Shareholder"
421
  msgstr "Gesellschafter"
422
 
423
- #: admin/tabs/common-settings/page.php:183
424
  msgid "In case of companies please contact all shareholders here."
425
  msgstr ""
426
  "Im Fall von Gesellschaften hier bitte alle Gesellschafter anf&uuml;hren."
427
 
428
- #: admin/tabs/common-settings/page.php:186
429
  msgid "Responsible for content:"
430
  msgstr "Verantwortlicher für Inhalt:"
431
 
432
- #: admin/tabs/common-settings/page.php:190
433
  msgid "The person responsible for the content on this website."
434
  msgstr ""
435
  "Die Person die f&uuml;r den Inhalt auf dieser Website verantwortlich ist."
436
 
437
- #: admin/tabs/common-settings/page.php:193
438
  msgid "Phone:"
439
  msgstr "Telefon:"
440
 
441
- #: admin/tabs/common-settings/page.php:200
442
  msgid "Email:"
443
  msgstr "Email:"
444
 
445
- #: admin/tabs/common-settings/page.php:207
446
  msgid "Newsletter service:"
447
  msgstr "Newsletter Service:"
448
 
449
- #: admin/tabs/common-settings/page.php:211
450
  msgid ""
451
  "Name of the shipping service provider with which the newsletters will be "
452
  "sent."
453
  msgstr ""
454
  "Name des Versanddienstleisters mit dem die Newsletter versendet werden."
455
 
456
- #: admin/tabs/common-settings/page.php:214
457
  msgid "URL Privacy Police of Newsletter Service:"
458
  msgstr "URL Datenschutz Newsletter Service:"
459
 
460
- #: admin/tabs/common-settings/page.php:218
461
  msgid "The URL to the terms of the newsletter service."
462
  msgstr "Die URL zu den AGB des Dienstes"
463
 
@@ -1066,7 +1130,7 @@ msgid "Show checkbox at WooCommerce checkout to confirm privacy policy"
1066
  msgstr "Datenschutz Checkbox bei Woo Checkout anzeigen"
1067
 
1068
  #: admin/tabs/privacy-policy/page.php:50
1069
- #: includes/class-sp-dsgvo-settings.php:181
1070
  msgid "I have read and accepted the Privacy Policy."
1071
  msgstr "Ich habe die Datenschutzbestimmungen gelesen und akzeptiert."
1072
 
@@ -1722,16 +1786,16 @@ msgstr ""
1722
  "for-organisations/data-protection-reform/overview-of-the-gdpr/\">DSGVO</a>), "
1723
  "spezialisiert auf &Ouml;sterreich und Deutschland."
1724
 
1725
- #: includes/class-sp-dsgvo-settings.php:48
1726
  msgid "I confirm"
1727
  msgstr "Ich akzeptiere"
1728
 
1729
- #: includes/class-sp-dsgvo-settings.php:49
1730
  msgid "The confirmation to GDPR is mandatory."
1731
  msgstr ""
1732
  "Die Checkbox für die Zustimmung zur Speicherung ist nach DSGVO zwingend."
1733
 
1734
- #: includes/class-sp-dsgvo-settings.php:50
1735
  msgid ""
1736
  "This form stores your name, email address and content so that we can "
1737
  "evaluate the comments on our site. For more information, visit our Privacy "
@@ -1741,30 +1805,30 @@ msgstr ""
1741
  "damit wir die Kommentare auf unsere Seite auswerten können. Weitere "
1742
  "Informationen finden Sie auf unserer Seite der Datenschutzbestimmungen."
1743
 
1744
- #: includes/class-sp-dsgvo-settings.php:75
1745
- #: includes/class-sp-dsgvo-settings.php:117
1746
  msgid ""
1747
  "I agree to the storage of the data for processing within the meaning of the "
1748
  "GDPR."
1749
  msgstr ""
1750
  "Ich stimme der Speicherung der Daten zur Verarbeitung im Sinne der DSGVO zu."
1751
 
1752
- #: includes/class-sp-dsgvo-settings.php:86
1753
- #: includes/class-sp-dsgvo-settings.php:246
1754
  msgid "We use cookies to analyze visitor behavior."
1755
  msgstr "Wir benutzen Cookies um das Besucherverhalten zu analysieren."
1756
 
1757
- #: includes/class-sp-dsgvo-settings.php:93
1758
- #: includes/class-sp-dsgvo-settings.php:253
1759
  msgid "Google Analytics is used to analyze website traffic."
1760
  msgstr "Google Analytics wird zum Anlayiseren des Websitetraffics verwendet."
1761
 
1762
- #: includes/class-sp-dsgvo-settings.php:100
1763
- #: includes/class-sp-dsgvo-settings.php:260
1764
  msgid "Facebook Pixel is used to analyze visitor behavior."
1765
  msgstr "Facebook Pixel wird zum Analysieren des Besucherverhaltens verwendet."
1766
 
1767
- #: includes/class-sp-dsgvo-settings.php:124
1768
  msgid ""
1769
  "This website uses cookies. By clicking 'accept' you are providing consent to "
1770
  "us using cookies on this browser."
@@ -1773,7 +1837,7 @@ msgstr ""
1773
  "Wenn Sie fortfahren, diese Seite zu verwenden, nehmen wir an, dass Sie damit "
1774
  "einverstanden sind."
1775
 
1776
- #: includes/class-sp-dsgvo-settings.php:132
1777
  msgid ""
1778
  "We use cookies to give you the best user experience. If you continue to use "
1779
  "this site, we assume that you agree."
@@ -1782,15 +1846,15 @@ msgstr ""
1782
  "Wenn Sie fortfahren, diese Seite zu verwenden, nehmen wir an, dass Sie damit "
1783
  "einverstanden sind."
1784
 
1785
- #: includes/class-sp-dsgvo-settings.php:134
1786
  msgid "OK"
1787
  msgstr "OK"
1788
 
1789
- #: includes/class-sp-dsgvo-settings.php:138
1790
  msgid "Deny"
1791
  msgstr "Ablehnen"
1792
 
1793
- #: includes/class-sp-dsgvo-settings.php:141
1794
  msgid "More information"
1795
  msgstr "Mehr Information"
1796
 
@@ -1986,23 +2050,23 @@ msgstr "Bestätigung der Datenlöschung"
1986
  msgid "updated their user permissions"
1987
  msgstr "hat die Berechtigungen geändert"
1988
 
1989
- #: public/class-sp-dsgvo-public.php:348 public/class-sp-dsgvo-public.php:378
1990
  msgid "More options"
1991
  msgstr "Mehr Optionen"
1992
 
1993
- #: public/class-sp-dsgvo-public.php:390
1994
  msgid "Accept"
1995
  msgstr "Akzeptieren"
1996
 
1997
- #: public/class-sp-dsgvo-public.php:694
1998
  msgid "Privacy Policy: "
1999
  msgstr "Datenschutzvereinbarungen"
2000
 
2001
- #: public/class-sp-dsgvo-public.php:736
2002
  msgid "Consent to the privacy policy is mandatory."
2003
  msgstr "Die Zustimmung zu den Datenschutzbestimmungen ist zwingend."
2004
 
2005
- #: public/class-sp-dsgvo-public.php:742
2006
  msgid "Privacy Policy accepted"
2007
  msgstr "Datenschutzbestimmungen akzeptiert"
2008
 
@@ -2269,6 +2333,13 @@ msgstr ""
2269
  "Wenn Sie dies nicht durchf&uuml;hren m&ouml;chten, k&ouml;nnen Sie dieses E-"
2270
  "Mail gnorieren."
2271
 
 
 
 
 
 
 
 
2272
  #, fuzzy
2273
  #~| msgid "Load German template"
2274
  #~ msgid "Load English template"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2019-04-10 19:34+0200\n"
5
+ "PO-Revision-Date: 2019-04-10 19:34+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: de_DE\n"
223
  "Änderungen (Änderungen für Google) zu erhalten. Benutzen Sie dazu den Button "
224
  "\"... Template laden\" in den Datenschutzeinstellungen."
225
 
226
+ #: admin/class-sp-dsgvo-admin.php:290
227
+ msgid ""
228
+ "Attention. Your license is not valid any more. Please check WP DSGVO Tools "
229
+ "settings to extend your license or visit <a href=\"URL_HERE\" target=\"_blank"
230
+ "\">https://wp-dsgvo.eu/shop</a> to extend it."
231
+ msgstr ""
232
+ "Achtung! Ihre WP DSGVO Tools (GDPR) Lizenz ist abgelaufen. Um Ihre Lizenz zu "
233
+ "verlängern rufen sie die WP DSGVO Tools (GDPR) Einstellungen auf oder "
234
+ "besuchen Sie unseren Shop unter <a href=\"URL_HERE\" target=\"_blank"
235
+ "\">https://wp-dsgvo.eu/shop</a>\n"
236
+ "."
237
+
238
+ #: admin/class-sp-dsgvo-admin.php:299
239
+ msgid ""
240
+ "Attention. Your license is going to get invalid in a few days. Please check "
241
+ "WP DSGVO Tools settings to extend your license or visit <a href=\"URL_HERE\" "
242
+ "target=\"_blank\">https://wp-dsgvo.eu/shop</a> to extend it."
243
+ msgstr ""
244
+ "Achtung! Ihre WP DSGVO Tools (GDPR) Lizenz wird in kürze ablaufen. Um Ihre "
245
+ "Lizenz zu verlängern, rufen sie die WP DSGVO Tools (GDPR) Einstellungen "
246
+ "auf, oder besuchen Sie unseren Shop unter <a href=\"URL_HERE\" target="
247
+ "\"_blank\">https://wp-dsgvo.eu/shop</a>"
248
+
249
  #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php:28
250
  #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-activate-action.php:50
251
  msgid "error during license activation: "
256
  msgstr "Fehler während der Lizenzabfrage: "
257
 
258
  #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-tab.php:11
259
+ #: admin/tabs/common-settings/page.php:71
260
  msgid "Common Settings"
261
  msgstr "Allgemeine Einstellungen"
262
 
263
+ #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-validate-license-action.php:28
264
+ #: includes/cron/do-validate-license.php:28
265
+ msgid "error during license validation: "
266
+ msgstr "Fehler während der Validierung: "
267
+
268
+ #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-validate-license-action.php:65
269
+ #: includes/cron/do-validate-license.php:65
270
+ msgid "WP DSGVO Tools (GPDR) License Error"
271
+ msgstr "WP DSGVO Tools (GDPR) Lizenzfehler"
272
+
273
+ #: admin/tabs/common-settings/class-sp-dsgvo-common-settings-validate-license-action.php:66
274
+ #: includes/cron/do-validate-license.php:66
275
+ msgid ""
276
+ "Your license has expired. Please renew it according to the hint at the "
277
+ "plugin settings page."
278
+ msgstr ""
279
+ "Ihre Lizenz ist abgelaufen. Bitte verlängern Sie diese mit Hilfe der "
280
+ "Anweisungen in den Allgemeinen Einstellungen des Plugins."
281
+
282
+ #: admin/tabs/common-settings/page.php:2
283
  msgid "Activate Blog/Premium"
284
  msgstr "Blog/Premium Edition freischalten"
285
 
286
+ #: admin/tabs/common-settings/page.php:6
287
  msgid "License"
288
  msgstr "Lizenz"
289
 
290
+ #: admin/tabs/common-settings/page.php:15
291
+ msgid "Deactivate license"
292
+ msgstr "Lizenz deaktivieren"
293
+
294
+ #: admin/tabs/common-settings/page.php:17
295
+ msgid "Activate license"
296
+ msgstr "Lizenz aktivieren"
297
+
298
+ #: admin/tabs/common-settings/page.php:18
299
+ #: admin/tabs/common-settings/page.php:55
300
+ msgid "Activating the license unlocks more features."
301
+ msgstr "Aktivieren der Lizenz schaltet weitere Funktionen frei."
302
+
303
+ #: admin/tabs/common-settings/page.php:23
304
+ msgid "Refresh license"
305
+ msgstr "Lizenz aktualisieren"
306
+
307
+ #: admin/tabs/common-settings/page.php:26
308
+ msgid "Extend license now and gain discount"
309
+ msgstr "Jetzt Lizenz verlängern"
310
+
311
+ #: admin/tabs/common-settings/page.php:36
312
  msgid "Premium version has been activated"
313
  msgstr "Die Premium Edition ist aktiviert."
314
 
315
+ #: admin/tabs/common-settings/page.php:36
316
  msgid "Invalid or expired license."
317
  msgstr "Ungültige oder abgelaufene Lizenz."
318
 
319
+ #: admin/tabs/common-settings/page.php:39
320
  msgid "Blog version has been activated"
321
  msgstr "Die Blog Edition ist aktiviert."
322
 
323
+ #: admin/tabs/common-settings/page.php:39
324
  msgid "Invalid license."
325
  msgstr "Ungültige Lizenz."
326
 
327
+ #: admin/tabs/common-settings/page.php:44
328
  msgid "Activated on:"
329
  msgstr "Aktiviert am:"
330
 
331
+ #: admin/tabs/common-settings/page.php:45
332
+ msgid "Status:"
333
+ msgstr "Status:"
334
+
335
+ #: admin/tabs/common-settings/page.php:47
336
  msgid "Valid to:"
337
  msgstr "Gültig bis:"
338
 
339
+ #: admin/tabs/common-settings/page.php:50
340
+ msgid "Last validation:"
341
+ msgstr "Letzte Überprüfung:"
342
 
343
+ #: admin/tabs/common-settings/page.php:51
344
+ msgid "Remaining activations:"
345
+ msgstr "Offene Aktivierungen:"
346
 
347
+ #: admin/tabs/common-settings/page.php:75
 
 
 
 
348
  msgid "Admin Email"
349
  msgstr "Admin Email"
350
 
351
+ #: admin/tabs/common-settings/page.php:79
352
  msgid "Used by sending emails."
353
  msgstr "Wird bei Emails verwendet."
354
 
355
+ #: admin/tabs/common-settings/page.php:83
356
  msgid "Use WPML Strings"
357
  msgstr "WPML Strings verwenden"
358
 
359
+ #: admin/tabs/common-settings/page.php:88
360
  msgid ""
361
  "Use WPML String Translation for text inputs. (E.g. Checkbox for comments.)"
362
  msgstr ""
363
  "WPML String Übersetzungen für Eingabefelder verwenden. (z.B. bei der "
364
  "Checkbox für Kommentare)"
365
 
366
+ #: admin/tabs/common-settings/page.php:94
367
+ #: admin/tabs/common-settings/page.php:96
368
  msgid "Comments"
369
  msgstr "Kommentare"
370
 
371
+ #: admin/tabs/common-settings/page.php:96
372
  msgid "Customizing possible with Blog/Premium edition."
373
  msgstr "Anpassung ab der Blog/Premium Edition möglich."
374
 
375
+ #: admin/tabs/common-settings/page.php:97
376
  msgid "Click here to get a license."
377
  msgstr "Hier klicken um eine Lizenz anzufordern."
378
 
379
+ #: admin/tabs/common-settings/page.php:102
380
  msgid "Checkbox for comments:"
381
  msgstr "Checkbox bei Kommentaren:"
382
 
383
+ #: admin/tabs/common-settings/page.php:107
384
  msgid ""
385
  "Displays at checkbox which requires confirmation when creating a comment."
386
  msgstr ""
387
  "Zeigt eine Checkbox bei Kommentaren an welche die Zustimmung zu den DSGVO "
388
  "Bestimmungen fordert."
389
 
390
+ #: admin/tabs/common-settings/page.php:108
391
  msgid "Important: Not compatible in combination with Jetpack comment form."
392
  msgstr "Wichtig: Nicht kompatibel mit der Kommentarfunktion von Jetpack."
393
 
394
+ #: admin/tabs/common-settings/page.php:114
395
  msgid "Replace CF7 Acceptance text"
396
  msgstr "CF7 Acceptance Text ersetzen"
397
 
398
+ #: admin/tabs/common-settings/page.php:121
399
  msgid ""
400
  "Replaces the text of CF7 Acceptance Checkboxes with following text. (Add to "
401
  "your form: [acceptance dsgvo] Text[/acceptance])"
404
  "nachfolgendem Text. (Im Formular erg&auml;nzen: [acceptance dsgvo] Text[/"
405
  "acceptance])"
406
 
407
+ #: admin/tabs/common-settings/page.php:125
408
+ #: admin/tabs/cookie-notice/page.php:638
409
  msgid "Text"
410
  msgstr "Text"
411
 
412
+ #: admin/tabs/common-settings/page.php:127
413
  msgid "Message text:"
414
  msgstr "Meldungstext:"
415
 
416
+ #: admin/tabs/common-settings/page.php:133
417
  msgid "Info text:"
418
  msgstr "Hinweistext:"
419
 
420
+ #: admin/tabs/common-settings/page.php:141
421
  msgid "Confirmation text"
422
  msgstr "Zustimmungstext"
423
 
424
+ #: admin/tabs/common-settings/page.php:150
425
  #: admin/tabs/cookie-notice/page.php:144 admin/tabs/imprint/page.php:45
426
  #: admin/tabs/privacy-policy/page.php:68
427
  msgid ""
431
  "<strong>Wichtiger Hinweis:</strong> Falls Sie WPML verwenden, können sie mit "
432
  "Hilfe der WPML String Translations diese Texte übersetzen."
433
 
434
+ #: admin/tabs/common-settings/page.php:155
435
  msgid "Company data"
436
  msgstr "Unternehmensdaten"
437
 
438
+ #: admin/tabs/common-settings/page.php:156
439
  msgid ""
440
  "The following input fields represent the basic data necessary for the "
441
  "creation of GDPR compliant data protection regulations and an imprint.<br /"
448
  "automatisch in das vom WP DSGVO Tools (GDPR) Plugin generierten "
449
  "Datenschutzbestimmungen sowie Impressum verwendet."
450
 
451
+ #: admin/tabs/common-settings/page.php:160
452
  msgid "Company name:"
453
  msgstr "Name des Unternehmens:"
454
 
455
+ #: admin/tabs/common-settings/page.php:167
456
  msgid "Street:"
457
  msgstr "Straße:"
458
 
459
+ #: admin/tabs/common-settings/page.php:174
460
  msgid "ZIP + Location:"
461
  msgstr "PLZ + Ort:"
462
 
463
+ #: admin/tabs/common-settings/page.php:181
464
  msgid "Commercial book no.:"
465
  msgstr "Firmenbuch Nr.:"
466
 
467
+ #: admin/tabs/common-settings/page.php:188
468
  msgid "§11 Place of Jurisdiction:"
469
  msgstr "Gerichtsstand:"
470
 
471
+ #: admin/tabs/common-settings/page.php:195
472
  msgid "VAT No.:"
473
  msgstr "USt. Id:"
474
 
475
+ #: admin/tabs/common-settings/page.php:202
476
  msgid "Legal representatives:"
477
  msgstr "Gesetzlicher Vertreter:"
478
 
479
+ #: admin/tabs/common-settings/page.php:206
480
  msgid "The person who legally represents the company."
481
  msgstr "Die Person die das Unternehmen gesetzlich vertritt."
482
 
483
+ #: admin/tabs/common-settings/page.php:209
484
  msgid "Shareholder"
485
  msgstr "Gesellschafter"
486
 
487
+ #: admin/tabs/common-settings/page.php:213
488
  msgid "In case of companies please contact all shareholders here."
489
  msgstr ""
490
  "Im Fall von Gesellschaften hier bitte alle Gesellschafter anf&uuml;hren."
491
 
492
+ #: admin/tabs/common-settings/page.php:216
493
  msgid "Responsible for content:"
494
  msgstr "Verantwortlicher für Inhalt:"
495
 
496
+ #: admin/tabs/common-settings/page.php:220
497
  msgid "The person responsible for the content on this website."
498
  msgstr ""
499
  "Die Person die f&uuml;r den Inhalt auf dieser Website verantwortlich ist."
500
 
501
+ #: admin/tabs/common-settings/page.php:223
502
  msgid "Phone:"
503
  msgstr "Telefon:"
504
 
505
+ #: admin/tabs/common-settings/page.php:230
506
  msgid "Email:"
507
  msgstr "Email:"
508
 
509
+ #: admin/tabs/common-settings/page.php:237
510
  msgid "Newsletter service:"
511
  msgstr "Newsletter Service:"
512
 
513
+ #: admin/tabs/common-settings/page.php:241
514
  msgid ""
515
  "Name of the shipping service provider with which the newsletters will be "
516
  "sent."
517
  msgstr ""
518
  "Name des Versanddienstleisters mit dem die Newsletter versendet werden."
519
 
520
+ #: admin/tabs/common-settings/page.php:244
521
  msgid "URL Privacy Police of Newsletter Service:"
522
  msgstr "URL Datenschutz Newsletter Service:"
523
 
524
+ #: admin/tabs/common-settings/page.php:248
525
  msgid "The URL to the terms of the newsletter service."
526
  msgstr "Die URL zu den AGB des Dienstes"
527
 
1130
  msgstr "Datenschutz Checkbox bei Woo Checkout anzeigen"
1131
 
1132
  #: admin/tabs/privacy-policy/page.php:50
1133
+ #: includes/class-sp-dsgvo-settings.php:186
1134
  msgid "I have read and accepted the Privacy Policy."
1135
  msgstr "Ich habe die Datenschutzbestimmungen gelesen und akzeptiert."
1136
 
1786
  "for-organisations/data-protection-reform/overview-of-the-gdpr/\">DSGVO</a>), "
1787
  "spezialisiert auf &Ouml;sterreich und Deutschland."
1788
 
1789
+ #: includes/class-sp-dsgvo-settings.php:53
1790
  msgid "I confirm"
1791
  msgstr "Ich akzeptiere"
1792
 
1793
+ #: includes/class-sp-dsgvo-settings.php:54
1794
  msgid "The confirmation to GDPR is mandatory."
1795
  msgstr ""
1796
  "Die Checkbox für die Zustimmung zur Speicherung ist nach DSGVO zwingend."
1797
 
1798
+ #: includes/class-sp-dsgvo-settings.php:55
1799
  msgid ""
1800
  "This form stores your name, email address and content so that we can "
1801
  "evaluate the comments on our site. For more information, visit our Privacy "
1805
  "damit wir die Kommentare auf unsere Seite auswerten können. Weitere "
1806
  "Informationen finden Sie auf unserer Seite der Datenschutzbestimmungen."
1807
 
1808
+ #: includes/class-sp-dsgvo-settings.php:80
1809
+ #: includes/class-sp-dsgvo-settings.php:122
1810
  msgid ""
1811
  "I agree to the storage of the data for processing within the meaning of the "
1812
  "GDPR."
1813
  msgstr ""
1814
  "Ich stimme der Speicherung der Daten zur Verarbeitung im Sinne der DSGVO zu."
1815
 
1816
+ #: includes/class-sp-dsgvo-settings.php:91
1817
+ #: includes/class-sp-dsgvo-settings.php:251
1818
  msgid "We use cookies to analyze visitor behavior."
1819
  msgstr "Wir benutzen Cookies um das Besucherverhalten zu analysieren."
1820
 
1821
+ #: includes/class-sp-dsgvo-settings.php:98
1822
+ #: includes/class-sp-dsgvo-settings.php:258
1823
  msgid "Google Analytics is used to analyze website traffic."
1824
  msgstr "Google Analytics wird zum Anlayiseren des Websitetraffics verwendet."
1825
 
1826
+ #: includes/class-sp-dsgvo-settings.php:105
1827
+ #: includes/class-sp-dsgvo-settings.php:265
1828
  msgid "Facebook Pixel is used to analyze visitor behavior."
1829
  msgstr "Facebook Pixel wird zum Analysieren des Besucherverhaltens verwendet."
1830
 
1831
+ #: includes/class-sp-dsgvo-settings.php:129
1832
  msgid ""
1833
  "This website uses cookies. By clicking 'accept' you are providing consent to "
1834
  "us using cookies on this browser."
1837
  "Wenn Sie fortfahren, diese Seite zu verwenden, nehmen wir an, dass Sie damit "
1838
  "einverstanden sind."
1839
 
1840
+ #: includes/class-sp-dsgvo-settings.php:137
1841
  msgid ""
1842
  "We use cookies to give you the best user experience. If you continue to use "
1843
  "this site, we assume that you agree."
1846
  "Wenn Sie fortfahren, diese Seite zu verwenden, nehmen wir an, dass Sie damit "
1847
  "einverstanden sind."
1848
 
1849
+ #: includes/class-sp-dsgvo-settings.php:139
1850
  msgid "OK"
1851
  msgstr "OK"
1852
 
1853
+ #: includes/class-sp-dsgvo-settings.php:143
1854
  msgid "Deny"
1855
  msgstr "Ablehnen"
1856
 
1857
+ #: includes/class-sp-dsgvo-settings.php:146
1858
  msgid "More information"
1859
  msgstr "Mehr Information"
1860
 
2050
  msgid "updated their user permissions"
2051
  msgstr "hat die Berechtigungen geändert"
2052
 
2053
+ #: public/class-sp-dsgvo-public.php:350 public/class-sp-dsgvo-public.php:380
2054
  msgid "More options"
2055
  msgstr "Mehr Optionen"
2056
 
2057
+ #: public/class-sp-dsgvo-public.php:392
2058
  msgid "Accept"
2059
  msgstr "Akzeptieren"
2060
 
2061
+ #: public/class-sp-dsgvo-public.php:700
2062
  msgid "Privacy Policy: "
2063
  msgstr "Datenschutzvereinbarungen"
2064
 
2065
+ #: public/class-sp-dsgvo-public.php:743
2066
  msgid "Consent to the privacy policy is mandatory."
2067
  msgstr "Die Zustimmung zu den Datenschutzbestimmungen ist zwingend."
2068
 
2069
+ #: public/class-sp-dsgvo-public.php:751
2070
  msgid "Privacy Policy accepted"
2071
  msgstr "Datenschutzbestimmungen akzeptiert"
2072
 
2333
  "Wenn Sie dies nicht durchf&uuml;hren m&ouml;chten, k&ouml;nnen Sie dieses E-"
2334
  "Mail gnorieren."
2335
 
2336
+ #~ msgid ""
2337
+ #~ "Attention. Your license is not valid any more. Please check WP DSGVO "
2338
+ #~ "Tools settings to extend your license."
2339
+ #~ msgstr ""
2340
+ #~ "Achtung! Ihre WP DSGVO Tools (GDPR) Lizenz ist abgelaufen. Bitte besuchen "
2341
+ #~ "sie die Einstellungs-Seite und verlängern Sie ihre Lizenz."
2342
+
2343
  #, fuzzy
2344
  #~| msgid "Load German template"
2345
  #~ msgid "Load English template"
public/actions/notice-action.php CHANGED
@@ -19,6 +19,16 @@ Class SPDSGVONoticeAction extends SPDSGVOAjaxAction{
19
  SPDSGVOSettings::set('google_gdpr_refresh_notice', '1');
20
  }
21
 
 
 
 
 
 
 
 
 
 
 
22
  die;
23
  }
24
  }
19
  SPDSGVOSettings::set('google_gdpr_refresh_notice', '1');
20
  }
21
 
22
+ if ($noticeKey == 'license-invalid-notice')
23
+ {
24
+ SPDSGVOSettings::set('show_invalid_license_notice', '0');
25
+ }
26
+
27
+ if ($noticeKey == 'license-revoke-notice')
28
+ {
29
+ SPDSGVOSettings::set('show_revoke_license_notice', '0');
30
+ }
31
+
32
  die;
33
  }
34
  }
public/class-sp-dsgvo-public.php CHANGED
@@ -259,6 +259,8 @@ class SPDSGVOPublic
259
  return; // dont show popup to google
260
  }
261
 
 
 
262
  if (SPDSGVOSettings::get('cookie_notice_display') == 'policy_popup') :
263
  $overlay_class = 'dsgvo-popup-overlay sp-dsgvo-framework dsgvo-overlay-hidden';
264
  if(!hasUserAcceptedPopup()) {
@@ -445,8 +447,9 @@ class SPDSGVOPublic
445
  //error_log('writeGoogleAnalytics: '.SPDSGVOSettings::get('ga_enable_analytics'));
446
  if (SPDSGVOSettings::get('ga_enable_analytics') === '1') :
447
  /* i592995 */
448
-
449
- $ga_code = SPDSGVOSettings::get('ga_code', '');
 
450
  if($ga_code == '' || SPDSGVOSettings::get('own_code') !== '1') {
451
  $ga_code = googleAnalyticsScript(true);
452
  }
@@ -484,7 +487,8 @@ class SPDSGVOPublic
484
  {
485
  if (SPDSGVOSettings::get('fb_enable_pixel') === '1') :
486
  /* i592995 */
487
- $code = SPDSGVOSettings::get('fb_pixel_code', '');
 
488
  if($code == '' || SPDSGVOSettings::get('own_code') !== '1') {
489
  $code = facebookPixelScript(true);
490
  }
@@ -690,6 +694,8 @@ class SPDSGVOPublic
690
 
691
  public function wooAddCustomFields( $checkout)
692
  {
 
 
693
  if (SPDSGVOSettings::get('woo_show_privacy_checkbox') === '1') {
694
  echo '<div id="cb-spdsgvo-privacy-policy"><h3>'.__('Privacy Policy: ','shapepress-dsgvo').'</h3>';
695
 
@@ -730,7 +736,8 @@ class SPDSGVOPublic
730
 
731
  function wooAddCustomCheckout() {
732
 
733
-
 
734
  // Check if set, if its not set add an error.
735
  if (SPDSGVOSettings::get('woo_show_privacy_checkbox') === '1' && !$_POST['cb-spdsgvo-privacy-policy'])
736
  wc_add_notice( __('Consent to the privacy policy is mandatory.','shapepress-dsgvo'),'error' );
@@ -738,6 +745,8 @@ class SPDSGVOPublic
738
 
739
  function wooUpdateOrderMeta($order_id)
740
  {
 
 
741
  if (SPDSGVOSettings::get('woo_show_privacy_checkbox') === '1') {
742
  if ($_POST['cb-spdsgvo-privacy-policy']) update_post_meta( $order_id, __('Privacy Policy accepted','shapepress-dsgvo'), esc_attr($_POST['cb-spdsgvo-privacy-policy']));
743
  }
259
  return; // dont show popup to google
260
  }
261
 
262
+ if (isValidPremiumEdition() == false) return;
263
+
264
  if (SPDSGVOSettings::get('cookie_notice_display') == 'policy_popup') :
265
  $overlay_class = 'dsgvo-popup-overlay sp-dsgvo-framework dsgvo-overlay-hidden';
266
  if(!hasUserAcceptedPopup()) {
447
  //error_log('writeGoogleAnalytics: '.SPDSGVOSettings::get('ga_enable_analytics'));
448
  if (SPDSGVOSettings::get('ga_enable_analytics') === '1') :
449
  /* i592995 */
450
+ $ga_code = "";
451
+
452
+ if (isValidPremiumEdition() == true) $ga_code = SPDSGVOSettings::get('ga_code', '');
453
  if($ga_code == '' || SPDSGVOSettings::get('own_code') !== '1') {
454
  $ga_code = googleAnalyticsScript(true);
455
  }
487
  {
488
  if (SPDSGVOSettings::get('fb_enable_pixel') === '1') :
489
  /* i592995 */
490
+ $code = "";
491
+ if (isValidPremiumEdition() == true) $code = SPDSGVOSettings::get('fb_pixel_code', '');
492
  if($code == '' || SPDSGVOSettings::get('own_code') !== '1') {
493
  $code = facebookPixelScript(true);
494
  }
694
 
695
  public function wooAddCustomFields( $checkout)
696
  {
697
+ if (isValidPremiumEdition() == false) return;
698
+
699
  if (SPDSGVOSettings::get('woo_show_privacy_checkbox') === '1') {
700
  echo '<div id="cb-spdsgvo-privacy-policy"><h3>'.__('Privacy Policy: ','shapepress-dsgvo').'</h3>';
701
 
736
 
737
  function wooAddCustomCheckout() {
738
 
739
+ if (isValidPremiumEdition() == false) return;
740
+
741
  // Check if set, if its not set add an error.
742
  if (SPDSGVOSettings::get('woo_show_privacy_checkbox') === '1' && !$_POST['cb-spdsgvo-privacy-policy'])
743
  wc_add_notice( __('Consent to the privacy policy is mandatory.','shapepress-dsgvo'),'error' );
745
 
746
  function wooUpdateOrderMeta($order_id)
747
  {
748
+ if (isValidPremiumEdition() == false) return;
749
+
750
  if (SPDSGVOSettings::get('woo_show_privacy_checkbox') === '1') {
751
  if ($_POST['cb-spdsgvo-privacy-policy']) update_post_meta( $order_id, __('Privacy Policy accepted','shapepress-dsgvo'), esc_attr($_POST['cb-spdsgvo-privacy-policy']));
752
  }
public/shortcodes/subject-access-request/subject-access-request-action.php CHANGED
@@ -20,7 +20,8 @@ Class SPDSGVOSubjectAccessRequestAction extends SPDSGVOAjaxAction{
20
  'dsgvo_accepted' => $this->get('dsgvo_checkbox')
21
  ));
22
 
23
- if (SPDSGVOSettings::get('sar_email_notification') === '1'
 
24
  && SPDSGVOSettings::get('admin_email') !== ''
25
  && $this->has('process_now') == false) {
26
  // Send Email
20
  'dsgvo_accepted' => $this->get('dsgvo_checkbox')
21
  ));
22
 
23
+ if (isValidPremiumEdition() == TRUE
24
+ && SPDSGVOSettings::get('sar_email_notification') === '1'
25
  && SPDSGVOSettings::get('admin_email') !== ''
26
  && $this->has('process_now') == false) {
27
  // Send Email
sp-dsgvo.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP DSGVO Tools (GDPR)
17
  * Plugin URI: https://wp-dsgvo.eu
18
  * Description: WP DSGVO Tools (GDPR) help you to fulfill the GDPR (DGSVO) compliance guidance (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">GDPR</a>)
19
- * Version: 2.2.13
20
  * Author: Shapepress eU
21
  * Author URI: https://www.shapepress.com
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -28,7 +28,7 @@ if (! defined('WPINC')) {
28
  die();
29
  }
30
 
31
- define('sp_dsgvo_VERSION', '2.2.13');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  /* i592995 */
34
  define('sp_dsgvo_URL', plugin_dir_url( __FILE__ ));
16
  * Plugin Name: WP DSGVO Tools (GDPR)
17
  * Plugin URI: https://wp-dsgvo.eu
18
  * Description: WP DSGVO Tools (GDPR) help you to fulfill the GDPR (DGSVO) compliance guidance (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">GDPR</a>)
19
+ * Version: 2.2.14
20
  * Author: Shapepress eU
21
  * Author URI: https://www.shapepress.com
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
28
  die();
29
  }
30
 
31
+ define('sp_dsgvo_VERSION', '2.2.14');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  /* i592995 */
34
  define('sp_dsgvo_URL', plugin_dir_url( __FILE__ ));