PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Helpers/Update/Configuration.php +16 -23 10.2.2 → 11.1.0 View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2
3 3 namespace AcyMailing\Helpers\Update;
4 4
5 +use AcyMailing\Helpers\CronHelper;
6 +
5 7 trait Configuration
6 8 {
7 9 public function addPref(): bool
8 10 {
@@ -31,10 +33,8 @@
31 33
32 34 $allPref['add_names'] = '1';
33 35 $allPref['encoding_format'] = '8bit';
34 36 $allPref['charset'] = 'UTF-8';
35 - $allPref['word_wrapping'] = '150';
36 - $allPref['hostname'] = '';
37 37 $allPref['embed_images'] = '0';
38 38 $allPref['embed_files'] = '0';
39 39 $allPref['editor'] = 'codemirror';
40 40 $allPref['multiple_part'] = '1';
@@ -47,9 +47,10 @@
47 47 if (!in_array($allPref['smtp_secured'], ['tls', 'ssl'])) {
48 48 $allPref['smtp_secured'] = '';
49 49 }
50 50
51 - $allPref['social_icons'] = json_encode([
51 + $allPref['social_icons'] = json_encode(
52 + [
52 53 'facebook' => ACYM_IMAGES.'logo/facebook.png',
53 54 'twitter' => ACYM_IMAGES.'logo/twitter.png',
54 55 'x' => ACYM_IMAGES.'logo/x.png',
55 56 'instagram' => ACYM_IMAGES.'logo/instagram.png',
@@ -65,9 +66,9 @@
65 66 $allPref['queue_nbmail'] = '40';
66 67 $allPref['queue_nbmail_auto'] = '70';
67 68 $allPref['queue_type'] = 'auto';
68 69 $allPref['queue_try'] = '3';
69 - $allPref['queue_pause'] = '120';
70 + $allPref['queue_pause'] = '30';
70 71 $allPref['allow_visitor'] = '1';
71 72 $allPref['require_confirmation'] = '1';
72 73 $allPref['priority_newsletter'] = '3';
73 74 $allPref['allowed_files'] = 'zip,doc,docx,pdf,xls,txt,gzip,rar,jpg,jpeg,gif,xlsx,pps,csv,bmp,ico,odg,odp,ods,odt,png,ppt,swf,xcf,mp3,wma';
@@ -72,9 +73,8 @@
72 73 $allPref['priority_newsletter'] = '3';
73 74 $allPref['allowed_files'] = 'zip,doc,docx,pdf,xls,txt,gzip,rar,jpg,jpeg,gif,xlsx,pps,csv,bmp,ico,odg,odp,ods,odt,png,ppt,swf,xcf,mp3,wma';
74 75 $allPref['confirm_redirect'] = '';
75 76 $allPref['subscription_message'] = '1';
76 - $allPref['notification_unsuball'] = '';
77 77 $allPref['cron_next'] = '1251990901';
78 78 $allPref['confirmation_message'] = '1';
79 79 $allPref['welcome_message'] = '1';
80 80 $allPref['unsub_message'] = '1';
@@ -81,35 +81,27 @@
81 81 $allPref['cron_last'] = '0';
82 82 $allPref['cron_fromip'] = '';
83 83 $allPref['cron_report'] = '';
84 84 $allPref['cron_frequency'] = '900';
85 - $allPref['cron_sendreport'] = '2';
86 - $allPref['cron_fullreport'] = '1';
87 - $allPref['cron_savereport'] = '2';
85 + $allPref['cron_sendreport'] = CronHelper::SEND_REPORT_ONLY_ON_ERROR;
86 + $allPref['cron_savereport'] = CronHelper::SEND_REPORT_ONLY_ON_ACTION;
87 + $allPref['direct_queue_statistics'] = 0;
88 88 $allPref['uploadfolder'] = str_replace('\\', '/', ACYM_UPLOAD_FOLDER);
89 - $allPref['notification_created'] = '';
90 - $allPref['notification_accept'] = '';
91 - $allPref['notification_refuse'] = '';
92 - $allPref['forward'] = '0';
93 - $allPref['priority_followup'] = '2';
94 - $allPref['unsub_redirect'] = '';
95 - $allPref['use_sef'] = '0';
96 - $allPref['css_frontend'] = '';
97 - $allPref['css_backend'] = '';
98 89 $allPref['last_import'] = '';
99 - $allPref['unsub_reasons'] = serialize(['UNSUB_SURVEY_FREQUENT', 'UNSUB_SURVEY_RELEVANT']);
100 90 $allPref['security_key'] = acym_generateKey(30);
91 + $allPref['api_key'] = acym_generateKey(30);
92 + $allPref['cron_security'] = 1;
93 + $allPref['cron_key'] = acym_generateKey(30);
101 94 $allPref['export_excelsecurity'] = 1;
102 95 $allPref['gdpr_export'] = 0;
103 96 $allPref['gdpr_delete'] = 0;
104 - $allPref['anonymous_tracking'] = '0';
105 - $allPref['anonymizeold'] = '0';
97 + $allPref['dont_track_by_default'] = 0;
98 + $allPref['user_tracking_control'] = 0;
106 99 $allPref['trackingsystem'] = 'acymailing';
107 100 $allPref['trackingsystemexternalwebsite'] = 1;
108 101 $allPref['generate_name'] = 1;
109 102 $allPref['allow_modif'] = 'data';
110 103 $allPref['from_as_replyto'] = '1';
111 - $allPref['templates_installed'] = '0';
112 104 $allPref['bounceVersion'] = self::BOUNCE_VERSION;
113 105 $allPref['numberThumbnail'] = 2;
114 106 $allPref['daily_hour'] = '12';
115 107 $allPref['daily_minute'] = '00';
@@ -134,9 +126,9 @@
134 126
135 127 $allPref['Starter'] = ACYM_STARTER;
136 128 $allPref['Essential'] = ACYM_ESSENTIAL;
137 129 $allPref['Enterprise'] = ACYM_ENTERPRISE;
138 - $allPref['previous_version'] = '10.2.2';
130 + $allPref['previous_version'] = '11.1.0';
139 131
140 132 $allPref['display_built_by'] = acym_level(ACYM_ESSENTIAL) ? 0 : 1;
141 133 $allPref['php_overrides'] = 0;
142 134
@@ -157,9 +149,9 @@
157 149 $results = null;
158 150 }
159 151
160 152 if ($results === null) {
161 - acym_display(isset($e) ? $e->getMessage() : substr(strip_tags(acym_getDBError()), 0, 200).'...', 'error');
153 + acym_display(isset($e) ? $e->getMessage() : substr(acym_stripTags(acym_getDBError()), 0, 200).'...', 'error');
162 154
163 155 return false;
164 156 }
165 157
@@ -173,8 +165,9 @@
173 165
174 166 $this->isUpdating = true;
175 167 $this->previousVersion = $results['version']->value;
176 168
169 + //We update the version properly as it's a new one which is now used.
177 170 $query = 'REPLACE INTO `#__acym_configuration` (`name`,`value`) VALUES ("level",'.acym_escapeDB($this->level).')';
178 171 $query .= ',("version",'.acym_escapeDB($this->version).')';
179 172 $query .= ',("installcomplete","0")';
180 173 $query .= ',("previous_version",'.acym_escapeDB($this->previousVersion).')';