Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
b275546
2task
alikon May 7, 2023
dda25ac
Update plugins/task/privacyconsent/privacyconsent.xml
alikon May 7, 2023
3c3c85e
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon May 7, 2023
c1b9e8c
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon May 7, 2023
8aef2ee
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon May 7, 2023
e25641d
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon May 7, 2023
11d80e8
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon May 7, 2023
a6eb623
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon May 7, 2023
56aea53
Update plugins/task/privacyconsent/privacyconsent.xml
alikon May 14, 2023
9c3049b
Merge branch '5.0-dev' into add2scheduler-privacy
alikon May 14, 2023
0e469a8
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 10, 2023
e6d195c
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 12, 2023
26c23cf
remove plg_system_privacyconsents
alikon Jun 13, 2023
066990a
Update base.sql
alikon Jun 13, 2023
eb7ca95
Update base.sql
alikon Jun 13, 2023
c08ca1a
re-add system privacyconsent
alikon Jun 13, 2023
e87782c
consentexpirationdays
alikon Jun 13, 2023
3479301
re-add system privacyconsent
alikon Jun 13, 2023
84c2b07
move 2 task
alikon Jun 13, 2023
6543c14
update & core plugin
alikon Jun 13, 2023
4e7318b
nomore expiration fieldset
alikon Jun 13, 2023
4c862a9
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 24, 2023
d3784e9
redesign
alikon Jun 24, 2023
c315a2e
Merge branch 'add2scheduler-privacy' of https://github.com/alikon/joo…
alikon Jun 24, 2023
ac957e3
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 24, 2023
445aa2c
mail
alikon Jun 24, 2023
bb1d997
Merge branch 'add2scheduler-privacy' of https://github.com/alikon/joo…
alikon Jun 24, 2023
9bc7f52
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 25, 2023
52517e0
mail_templates
alikon Jun 25, 2023
24eb761
Update libraries/src/Extension/ExtensionHelper.php
alikon Jun 25, 2023
c068e49
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 25, 2023
765dc04
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
c46c0b5
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
0842120
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
1fd0c2f
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
c4e744d
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
dd31eff
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
78277b1
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 25, 2023
9523b4d
Update plugins/task/privacyconsent/src/Extension/PrivacyConsent.php
alikon Jun 26, 2023
7d51450
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 26, 2023
b7d5fbc
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 26, 2023
28d0a4c
migratePrivacyconsentConfiguration
alikon Jun 26, 2023
b08dc83
Merge branch 'add2scheduler-privacy' of https://github.com/alikon/joo…
alikon Jun 26, 2023
f6f7283
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 26, 2023
39ceb62
PrivacyConsent migr
alikon Jun 26, 2023
9b58f41
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jun 26, 2023
f2736b7
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Jul 2, 2023
b1cd814
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Jul 5, 2023
eb8db88
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Aug 1, 2023
f4129cb
Rename 5.0.0-2023-06-13.sql to 5.0.0-2023-08-03.sql
alikon Aug 1, 2023
7a2bb32
Rename 5.0.0-2023-03-13.sql to 5.0.0-2023-08-03.sql
alikon Aug 1, 2023
cfb5030
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Aug 7, 2023
5f26266
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Aug 8, 2023
a907d51
Merge branch '5.0-dev' into add2scheduler-privacy
alikon Aug 26, 2023
76fe197
Rename 5.0.0-2023-08-03.sql to 5.0.0-2023-08-23.sql
alikon Aug 26, 2023
eedbdf8
Rename 5.0.0-2023-08-03.sql to 5.0.0-2023-08-23.sql
alikon Aug 26, 2023
a883428
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Aug 26, 2023
a349b6e
userfactory
alikon Aug 28, 2023
0daca7d
userfactory
alikon Aug 28, 2023
32d3c7b
delete mail_template
alikon Aug 28, 2023
8079f5b
delete mail_template
alikon Aug 28, 2023
14ff53d
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 1, 2023
da8a9c1
Rename 5.0.0-2023-08-23.sql to 5.0.0-2023-08-30.sql
richard67 Sep 1, 2023
969d8e4
Rename 5.0.0-2023-08-23.sql to 5.0.0-2023-08-30.sql
richard67 Sep 1, 2023
87940ee
Deprecate language strings
richard67 Sep 1, 2023
78e6151
One more deprecated language string
richard67 Sep 1, 2023
94396dd
Do not add task when consent expiration was disabled
richard67 Sep 1, 2023
75b0dbc
Use Registry when using get method later.
richard67 Sep 1, 2023
3a98c21
My mistake from previous commit
richard67 Sep 1, 2023
d39745d
Add missing use statement for my previos commits
richard67 Sep 1, 2023
0cee5fe
Cachetimeout was given in days in the system plugin, and default was 30.
richard67 Sep 1, 2023
50bf3d6
Don't migrate if the system plugin was not found
richard67 Sep 1, 2023
5a81838
Single quotes
richard67 Sep 2, 2023
0cf9f73
Remove extra reference assignment for dispatcher argument
richard67 Sep 2, 2023
e267a3f
Rename 5.0.0-2023-08-30.sql to 5.0.0-2023-09-02.sql
richard67 Sep 2, 2023
11d8276
Rename 5.0.0-2023-08-30.sql to 5.0.0-2023-09-02.sql
richard67 Sep 2, 2023
b49fe06
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 2, 2023
cf92794
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 2, 2023
6edd491
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 2, 2023
a294e6b
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 2, 2023
464fa5a
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 2, 2023
5441152
Fix lastrun default on update
richard67 Sep 3, 2023
a22ecd7
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 3, 2023
3e14111
Merge branch '5.0-dev' into add2scheduler-privacy
richard67 Sep 3, 2023
8ddf28d
Fix previous conflict resolution
richard67 Sep 3, 2023
e35d7f0
Forgotten fix
richard67 Sep 3, 2023
d827f71
Use the right language strings in the form
richard67 Sep 3, 2023
25c8a4b
Fix update SQL scripts missing column value
richard67 Sep 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -2346,11 +2346,86 @@ public function postflight($action, $installer)
return false;
}

if (!$this->migratePrivacyconsentConfiguration()) {
return false;
}

$this->setGuidedToursUid();

return true;
}

/**
* Migrate privacyconsents system plugin configuration
*
* @return boolean True on success
*
* @since 5.0.0
*/
private function migratePrivacyconsentConfiguration(): bool
{
$db = Factory::getDbo();

try {
// Get the PrivacyConsent system plugin's parameters
$row = $db->setQuery(
$db->getQuery(true)
->select($db->quotename('enabled'), $db->quoteName('params'))
->from($db->quoteName('#__extensions'))
->where($db->quoteName('type') . ' = ' . $db->quote('plugin'))
->where($db->quoteName('folder') . ' = ' . $db->quote('system'))
->where($db->quoteName('element') . ' = ' . $db->quote('privacyconsent'))
)->loadObject();
} catch (Exception $e) {
echo Text::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $e->getCode(), $e->getMessage()) . '<br>';

return false;
}

// If not existing or disbled there is nothing to migrate
if (!$row || !$row->enabled) {
return true;
}

$params = new Registry($row->params);

// If consent expiration was disbled there is nothing to migrate
if (!$params->get('enabled', 0)) {
return true;
}

/** @var SchedulerComponent $component */
$component = Factory::getApplication()->bootComponent('com_scheduler');

/** @var TaskModel $model */
$model = $component->getMVCFactory()->createModel('Task', 'Administrator', ['ignore_request' => true]);
$task = [
'title' => 'PrivacyConsent',
'type' => 'privacy.consent',
'execution_rules' => [
'rule-type' => 'interval-days',
'interval-days' => $params->get('cachetimeout', 30),
'exec-time' => gmdate('H:i', $params->get('lastrun', time())),
'exec-day' => gmdate('d'),
],
'state' => 1,
'params' => [
'consentexpiration' => $params->get('consentexpiration', 360),
'remind' => $params->get('remind', 30),
],
];

try {
$model->save($task);
} catch (Exception $e) {
echo Text::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $e->getCode(), $e->getMessage()) . '<br>';

return false;
}

return true;
}

/**
* Migrate TinyMCE editor plugin configuration
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
INSERT INTO `#__extensions` (`name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
('plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0);

INSERT INTO `#__mail_templates` (`template_id`, `extension`, `language`, `subject`, `body`, `htmlbody`, `attachments`, `params`) VALUES
('plg_task_privacyconsent.request.reminder', 'plg_task_privacyconsent', '', 'PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT', 'PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_BODY', '', '', '{"tags":["sitename","url","tokenurl","formurl","token"]}'),
('plg_task_updatenotification.mail', 'plg_task_updatenotification', '', 'PLG_TASK_UPDATENOTIFICATION_EMAIL_SUBJECT', 'PLG_TASK_UPDATENOTIFICATION_EMAIL_BODY', '', '', '{"tags":["newversion","curversion","sitename","url","link","releasenews"]}');

DELETE FROM `#__mail_templates` WHERE `template_id` = 'plg_system_updatenotification.mail';
DELETE FROM `#__mail_templates` WHERE `template_id` IN ('plg_system_privacyconsent.request.reminder', 'plg_system_updatenotification.mail');

DELETE FROM `#__postinstall_messages` WHERE `condition_file` = 'site://plugins/system/updatenotification/postinstall/updatecachetime.php';
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
INSERT INTO "#__extensions" ("name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "checked_out", "checked_out_time", "ordering", "state") VALUES
('plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0),
('plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', NULL, NULL, 0, 0);

INSERT INTO "#__mail_templates" ("template_id", "extension", "language", "subject", "body", "htmlbody", "attachments", "params") VALUES
('plg_task_privacyconsent.request.reminder', 'plg_task_privacyconsent', '', 'PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT', 'PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_BODY', '', '', '{"tags":["sitename","url","tokenurl","formurl","token"]}'),
('plg_task_updatenotification.mail', 'plg_task_updatenotification', '', 'PLG_TASK_UPDATENOTIFICATION_EMAIL_SUBJECT', 'PLG_TASK_UPDATENOTIFICATION_EMAIL_BODY', '', '', '{"tags":["newversion","curversion","sitename","url","link","releasenews"]}');

DELETE FROM "#__mail_templates" WHERE "template_id" = 'plg_system_updatenotification.mail';
DELETE FROM "#__mail_templates" WHERE "template_id" IN ('plg_system_privacyconsent.request.reminder', 'plg_system_updatenotification.mail');

DELETE FROM "#__postinstall_messages" WHERE "condition_file" = 'site://plugins/system/updatenotification/postinstall/updatecachetime.php';
20 changes: 11 additions & 9 deletions administrator/language/en-GB/plg_system_privacyconsent.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@

PLG_SYSTEM_PRIVACYCONSENT="System - Privacy Consent"
PLG_SYSTEM_PRIVACYCONSENT_BODY="<p>The user consented to storing their user information using the IP address <strong>%s</strong></p><p>The user agent string of the user's browser was:<br>%s</p><p>This information was automatically recorded when the user submitted their details on the website and checked the confirm box</p>"
PLG_SYSTEM_PRIVACYCONSENT_CACHETIMEOUT_DESC="How often the check is performed."
PLG_SYSTEM_PRIVACYCONSENT_CACHETIMEOUT_LABEL="Periodic check (days)"
PLG_SYSTEM_PRIVACYCONSENT_CONSENT="User <a href='{accountlink}'>{username}</a> consented to the privacy policy."
PLG_SYSTEM_PRIVACYCONSENT_CONSENTEXPIRATION_DESC="Number of days after which the privacy consent shall expire."
PLG_SYSTEM_PRIVACYCONSENT_CONSENTEXPIRATION_LABEL="Expiration"
PLG_SYSTEM_PRIVACYCONSENT_EMAIL_REMIND_BODY="Your Privacy Consent given at {URL} will expire in few days, you can renew the privacy consent for this website.\n\nIn order to do this, you can complete one of the following tasks:\n\n1. Visit the following URL: {TOKENURL}\n\n2. Copy your token from this email, visit the referenced URL, and paste your token into the form.\nURL: {FORMURL}\nToken: {TOKEN}\n\nPlease note that this token is only valid for this account."
PLG_SYSTEM_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT="Privacy Consent at {SITENAME}"
PLG_SYSTEM_PRIVACYCONSENT_EXPIRATION_FIELDSET_LABEL="Expiration"
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ARTICLE_DESC="Select the article from the list or create a new one."
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ARTICLE_LABEL="Privacy Article"
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ENABLED_DESC="When enabled it performs checks for consent expiration."
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ENABLED_LABEL="Enable"
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ERROR="Agreement to the site's Privacy Policy is required."
PLG_SYSTEM_PRIVACYCONSENT_FIELD_LABEL="Privacy Policy"
PLG_SYSTEM_PRIVACYCONSENT_FIELD_MENU_ITEM_LABEL="Privacy Menu Item"
Expand All @@ -36,7 +29,16 @@ PLG_SYSTEM_PRIVACYCONSENT_OPTION_DO_NOT_AGREE="I do not agree"
PLG_SYSTEM_PRIVACYCONSENT_REDIRECT_MESSAGE_DEFAULT="Please confirm that you consent to this website storing your information by agreeing to the privacy policy."
PLG_SYSTEM_PRIVACYCONSENT_REDIRECT_MESSAGE_DESC="Custom message to be displayed on redirect. If left blank then the default message will be used."
PLG_SYSTEM_PRIVACYCONSENT_REDIRECT_MESSAGE_LABEL="Redirect Message"
PLG_SYSTEM_PRIVACYCONSENT_REMINDBEFORE_DESC="Number of days to send a reminder before the expiration of the privacy consent."
PLG_SYSTEM_PRIVACYCONSENT_REMINDBEFORE_LABEL="Remind"
PLG_SYSTEM_PRIVACYCONSENT_SUBJECT="Privacy Policy"
PLG_SYSTEM_PRIVACYCONSENT_XML_DESCRIPTION="Basic plugin to request user's consent to the site's privacy policy. Existing users who have not consented yet will be redirected on login to update their profile."

; All the following strings are deprecated and will be removed with 6.0
PLG_SYSTEM_PRIVACYCONSENT_CACHETIMEOUT_DESC="How often the check is performed."
PLG_SYSTEM_PRIVACYCONSENT_CACHETIMEOUT_LABEL="Periodic check (days)"
PLG_SYSTEM_PRIVACYCONSENT_CONSENTEXPIRATION_DESC="Number of days after which the privacy consent shall expire."
PLG_SYSTEM_PRIVACYCONSENT_CONSENTEXPIRATION_LABEL="Expiration"
PLG_SYSTEM_PRIVACYCONSENT_EXPIRATION_FIELDSET_LABEL="Expiration"
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ENABLED_DESC="When enabled it performs checks for consent expiration."
PLG_SYSTEM_PRIVACYCONSENT_FIELD_ENABLED_LABEL="Enable"
PLG_SYSTEM_PRIVACYCONSENT_REMINDBEFORE_DESC="Number of days to send a reminder before the expiration of the privacy consent."
PLG_SYSTEM_PRIVACYCONSENT_REMINDBEFORE_LABEL="Remind"
47 changes: 47 additions & 0 deletions administrator/language/en-GB/plg_task_privacyconsent.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
; Joomla! Project
; (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

PLG_TASK_PRIVACYCONSENT="Task - Privacy Consents"
PLG_TASK_PRIVACYCONSENT_CONSENTEXPIRATIONDAYS_DESC="Number of days after which the privacy consent shall expire."
PLG_TASK_PRIVACYCONSENT_CONSENTEXPIRATIONDAYS_LABEL="Expiration"
PLG_TASK_PRIVACYCONSENT_INVALIDATE_TITLE ="Expiration of privacy consents"
PLG_TASK_PRIVACYCONSENT_INVALIDATE_DESC ="Manage the expiration of privacy consents"
PLG_TASK_PRIVACYCONSENT_REMIND_DESC="Manage the remind of expiration of privacy consents"
PLG_TASK_PRIVACYCONSENT_REMIND_TITLE="Remind"
PLG_TASK_PRIVACYCONSENT_BODY="<p>The user consented to storing their user information using the IP address <strong>%s</strong></p><p>The user agent string of the user's browser was:<br>%s</p><p>This information was automatically recorded when the user submitted their details on the website and checked the confirm box</p>"
PLG_TASK_PRIVACYCONSENT_CACHETIMEOUT_DESC="How often the check is performed."
PLG_TASK_PRIVACYCONSENT_CACHETIMEOUT_LABEL="Periodic check (days)"
PLG_TASK_PRIVACYCONSENT_CONSENT="User <a href='{accountlink}'>{username}</a> consented to the privacy policy."

PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_BODY="Your Privacy Consent given at {URL} will expire in few days, you can renew the privacy consent for this website.\n\nIn order to do this, you can complete one of the following tasks:\n\n1. Visit the following URL: {TOKENURL}\n\n2. Copy your token from this email, visit the referenced URL, and paste your token into the form.\nURL: {FORMURL}\nToken: {TOKEN}\n\nPlease note that this token is only valid for this account."
PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT="Privacy Consent at {SITENAME}"
PLG_TASK_PRIVACYCONSENT_EXPIRATION_FIELDSET_LABEL="Expiration"
PLG_TASK_PRIVACYCONSENT_FIELD_ARTICLE_DESC="Select the article from the list or create a new one."
PLG_TASK_PRIVACYCONSENT_FIELD_ARTICLE_LABEL="Privacy Article"
PLG_TASK_PRIVACYCONSENT_FIELD_ENABLED_DESC="When enabled it performs checks for consent expiration."
PLG_TASK_PRIVACYCONSENT_FIELD_ENABLED_LABEL="Enable"
PLG_TASK_PRIVACYCONSENT_FIELD_ERROR="Agreement to the site's Privacy Policy is required."
PLG_TASK_PRIVACYCONSENT_FIELD_LABEL="Privacy Policy"
PLG_TASK_PRIVACYCONSENT_FIELD_MENU_ITEM_LABEL="Privacy Menu Item"
PLG_TASK_PRIVACYCONSENT_FIELD_TYPE_ARTICLE="Article"
PLG_TASK_PRIVACYCONSENT_FIELD_TYPE_LABEL="Privacy Type"
PLG_TASK_PRIVACYCONSENT_FIELD_TYPE_MENU_ITEM="Menu Item"
PLG_TASK_PRIVACYCONSENT_LABEL="Website Privacy"
PLG_TASK_PRIVACYCONSENT_MAIL_REQUEST_REMINDER_DESC="Reminder to renew the privacy consent for this website."
PLG_TASK_PRIVACYCONSENT_MAIL_REQUEST_REMINDER_TITLE="System - Privacy Consent: Renew Consent"
PLG_TASK_PRIVACYCONSENT_NOTE_FIELD_DEFAULT="By signing up to this website and agreeing to the Privacy Policy you agree to this website storing your information."
PLG_TASK_PRIVACYCONSENT_NOTE_FIELD_DESC="A summary of the site's privacy policy. If left blank then the default message will be used."
PLG_TASK_PRIVACYCONSENT_NOTE_FIELD_LABEL="Short Privacy Policy"
PLG_TASK_PRIVACYCONSENT_NOTIFICATION_USER_PRIVACY_EXPIRED_MESSAGE="Privacy consent has expired for %1$s."
PLG_TASK_PRIVACYCONSENT_NOTIFICATION_USER_PRIVACY_EXPIRED_SUBJECT="Privacy Consent Expired"
PLG_TASK_PRIVACYCONSENT_OPTION_AGREE="I agree"
PLG_TASK_PRIVACYCONSENT_OPTION_DO_NOT_AGREE="I do not agree"
PLG_TASK_PRIVACYCONSENT_REDIRECT_MESSAGE_DEFAULT="Please confirm that you consent to this website storing your information by agreeing to the privacy policy."
PLG_TASK_PRIVACYCONSENT_REDIRECT_MESSAGE_DESC="Custom message to be displayed on redirect. If left blank then the default message will be used."
PLG_TASK_PRIVACYCONSENT_REDIRECT_MESSAGE_LABEL="Redirect Message"
PLG_TASK_PRIVACYCONSENT_REMINDBEFORE_DESC="Number of days to send a reminder before the expiration of the privacy consent."
PLG_TASK_PRIVACYCONSENT_REMINDBEFORE_LABEL="Remind"
PLG_TASK_PRIVACYCONSENT_SUBJECT="Privacy Policy"
PLG_TASK_PRIVACYCONSENT_XML_DESCRIPTION="Task for remind expired consents and delete expired consents"
7 changes: 7 additions & 0 deletions administrator/language/en-GB/plg_task_privacyconsent.sys.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; Joomla! Project
; (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

PLG_TASK_PRIVACYCONSENT="Task - Privacy Consents"
PLG_TASK_PRIVACYCONSENT_XML_DESCRIPTION="Task for remind expired consents and delete expired consents."
7 changes: 4 additions & 3 deletions installation/sql/mysql/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,10 @@ INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`,
(0, 'plg_task_checkfiles', 'plugin', 'checkfiles', 'task', 0, 1, 1, 0, 1, '', '{}', '', 1, 0),
(0, 'plg_task_globalcheckin', 'plugin', 'globalcheckin', 'task', 0, 1, 1, 0, 0, '', '{}', '', 2, 0),
(0, 'plg_task_requests', 'plugin', 'requests', 'task', 0, 1, 1, 0, 1, '', '{}', '', 3, 0),
(0, 'plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 5, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 6, 0),
(0, 'plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
(0, 'plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', 5, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 6, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 7, 0),
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 1, 0),
(0, 'plg_multifactorauth_yubikey', 'plugin', 'yubikey', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 2, 0),
(0, 'plg_multifactorauth_webauthn', 'plugin', 'webauthn', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 3, 0),
Expand Down
2 changes: 1 addition & 1 deletion installation/sql/mysql/supports.sql
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ INSERT INTO `#__mail_templates` (`template_id`, `extension`, `language`, `subjec
('com_users.registration.admin.new_notification', 'com_users', '', 'COM_USERS_EMAIL_ACCOUNT_DETAILS', 'COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY', '', '', '{"tags":["name","sitename","siteurl","username"]}'),
('com_users.registration.user.admin_activated', 'com_users', '', 'COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_SUBJECT', 'COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY', '', '', '{"tags":["name","sitename","siteurl","username"]}'),
('com_users.registration.admin.verification_request', 'com_users', '', 'COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_SUBJECT', 'COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_BODY', '', '', '{"tags":["name","sitename","email","username","activate"]}'),
('plg_system_privacyconsent.request.reminder', 'plg_system_privacyconsent', '', 'PLG_SYSTEM_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT', 'PLG_SYSTEM_PRIVACYCONSENT_EMAIL_REMIND_BODY', '', '', '{"tags":["sitename","url","tokenurl","formurl","token"]}'),
('plg_task_privacyconsent.request.reminder', 'plg_task_privacyconsent', '', 'PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_SUBJECT', 'PLG_TASK_PRIVACYCONSENT_EMAIL_REMIND_BODY', '', '', '{"tags":["sitename","url","tokenurl","formurl","token"]}'),
('com_messages.new_message', 'com_messages', '', 'COM_MESSAGES_NEW_MESSAGE', 'COM_MESSAGES_NEW_MESSAGE_BODY', '', '', '{"tags":["subject","message","fromname","sitename","siteurl","fromemail","toname","toemail"]}'),
('plg_system_tasknotification.failure_mail', 'plg_system_tasknotification', '', 'PLG_SYSTEM_TASK_NOTIFICATION_FAILURE_MAIL_SUBJECT', 'PLG_SYSTEM_TASK_NOTIFICATION_FAILURE_MAIL_BODY', '', '', '{"tags": ["task_id", "task_title", "exit_code", "exec_data_time", "task_output"]}'),
('plg_system_tasknotification.fatal_recovery_mail', 'plg_system_tasknotification', '', 'PLG_SYSTEM_TASK_NOTIFICATION_FATAL_MAIL_SUBJECT', 'PLG_SYSTEM_TASK_NOTIFICATION_FATAL_MAIL_BODY', '', '', '{"tags": ["task_id", "task_title"]}'),
Expand Down
7 changes: 4 additions & 3 deletions installation/sql/postgresql/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,10 @@ INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder",
(0, 'plg_task_checkfiles', 'plugin', 'checkfiles', 'task', 0, 1, 1, 0, 1, '', '{}', '', 1, 0),
(0, 'plg_task_globalcheckin', 'plugin', 'globalcheckin', 'task', 0, 1, 1, 0, 0, '', '{}', '', 2, 0),
(0, 'plg_task_requests', 'plugin', 'requests', 'task', 0, 1, 1, 0, 1, '', '{}', '', 3, 0),
(0, 'plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 5, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 6, 0),
(0, 'plg_task_privacyconsent', 'plugin', 'privacyconsent', 'task', 0, 1, 1, 0, 1, '', '{}', '', 4, 0),
(0, 'plg_task_rotatelogs', 'plugin', 'rotatelogs', 'task', 0, 1, 1, 0, 1, '', '{}', '', 5, 0),
(0, 'plg_task_sitestatus', 'plugin', 'sitestatus', 'task', 0, 1, 1, 0, 1, '', '{}', '', 6, 0),
(0, 'plg_task_updatenotification', 'plugin', 'updatenotification', 'task', 0, 1, 1, 0, 1, '', '{}', '', 7, 0),
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 1, 0),
(0, 'plg_multifactorauth_yubikey', 'plugin', 'yubikey', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 2, 0),
(0, 'plg_multifactorauth_webauthn', 'plugin', 'webauthn', 'multifactorauth', 0, 1, 1, 0, 1, '', '', '', 3, 0),
Expand Down
Loading