Lecteur Markdown
GDPR_DOCUMENTATION_EN
Feature: GDPR #
User interface for exercising GDPR rights: access to personal data, downloading the export and requesting account anonymisation. Relies on the `moderation` plugin infrastructure.
---
Installation and Configuration #
Via FTP: Upload the `gdpr/` directory into `/plugins/`.
Via package manager: Select `gdpr` from the available plugins list.
Paths:
- Main plugin: `/plugins/gdpr/gdpr.php`
- Configuration: `/plugins/gdpr/conf/gdpr.conf.inc.php`
- Library: `/plugins/gdpr/lib/gdpr.lib.inc.php`
Configuration parameters (`gdpr.conf.inc.php`):
| Variable | Default | Description |
|---|---|---|
| `$basedatadisplay` | `'yes'` | Display in management interface |
| `$basedisplevel` | `BASE_LEVEL_USER` | Accessible to all logged-in members |
| `$ftype` | `4` | Plugin type (community) |
The plugin reuses the level constants from the `moderation` plugin.
---
Usage #
Accessible to any logged-in user. Presents:
1. The list of exportable data modules — read from the JSON configurations of the `moderation` plugin.
2. A download button — redirects to `moderation.mod` with `action=download_my_data`.
3. An anonymisation button — redirects to `moderation.mod` with `action=anonymize_account`.
Anonymisation replaces personal data (name, email, avatar, etc.) with neutral, irreversible values.
---
Hooks and Entry Points #
This plugin displays an interface and delegates actions to the `moderation` plugin handlers:
?obj=moderation.mod&action=download_my_data — JSON data export
?obj=moderation.mod&action=anonymize_account — Account anonymisation
---
Dependencies #
- moderation plugin — required. The `gdpr` plugin includes `moderation` locales and calls `moderation_get_all_configs()` to list modules.
- Action handlers are provided by `moderation`, not by `gdpr`.