1<?php 2/** 3 * Default configuration for the Delete Page Guard plugin 4 * 5 * Each key defined here will be used as a default when the plugin is 6 * installed. Administrators can override these values via the 7 * Configuration Manager. See metadata.php for descriptions. 8 * 9 * @license GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html) - see LICENSE.md 10 * @author Johann Duscher <jonny.dee@posteo.net> 11 * @copyright 2025 Johann Duscher 12 */ 13 14// Newline separated list of PCRE regular expressions. A page whose ID 15// (or relative file path, depending on match_target) matches any of 16// these patterns cannot be deleted by empty save. 17// Example patterns: 18// ^start$ - Protects the main start page 19// ^sidebar$ - Protects any sidebar pages 20// ^users:[^:]+:start$ - Protects user start pages (users:alice:start) 21// ^wiki:(syntax|dokuwiki)$ - Protects specific wiki documentation pages 22$conf['patterns'] = ''; 23 24// Which attribute to match against: 'id' matches against the page ID 25// (colon separated), 'filepath' matches against the relative file path 26// below the data directory. Default is 'id'. 27$conf['match_target'] = 'id'; 28 29// Comma separated list of additional user groups that may delete 30// protected pages. Administrators always bypass the block. Example: 31// 'manager,editor' 32$conf['exempt_groups'] = ''; 33 34// When true, whitespace‑only content is treated as empty. When false, 35// only truly empty strings trigger deletion. Default is on. 36$conf['trim_mode'] = 1;