diff options
Diffstat (limited to 'lib/plugins/config/settings/config.metadata.php')
-rw-r--r-- | lib/plugins/config/settings/config.metadata.php | 301 |
1 files changed, 155 insertions, 146 deletions
diff --git a/lib/plugins/config/settings/config.metadata.php b/lib/plugins/config/settings/config.metadata.php index 5774f13bb..59c3b8853 100644 --- a/lib/plugins/config/settings/config.metadata.php +++ b/lib/plugins/config/settings/config.metadata.php @@ -1,4 +1,5 @@ <?php + /** * Metadata for configuration manager plugin * @@ -80,62 +81,77 @@ * @author Chris Smith <chris@jalakai.co.uk> */ -$meta['_basic'] = array('fieldset'); -$meta['title'] = array('string'); -$meta['start'] = array('string','_caution' => 'warning','_pattern' => '!^[^:;/]+$!'); // don't accept namespaces -$meta['lang'] = array('dirchoice','_dir' => DOKU_INC.'inc/lang/'); -$meta['template'] = array('dirchoice','_dir' => DOKU_INC.'lib/tpl/','_pattern' => '/^[\w-]+$/'); -$meta['tagline'] = array('string'); -$meta['sidebar'] = array('string'); -$meta['license'] = array('license'); -$meta['savedir'] = array('savedir','_caution' => 'danger'); -$meta['basedir'] = array('string','_caution' => 'danger'); -$meta['baseurl'] = array('string','_caution' => 'danger'); -$meta['cookiedir'] = array('string','_caution' => 'danger'); -$meta['dmode'] = array('numeric','_pattern' => '/0[0-7]{3,4}/'); // only accept octal representation -$meta['fmode'] = array('numeric','_pattern' => '/0[0-7]{3,4}/'); // only accept octal representation -$meta['allowdebug'] = array('onoff','_caution' => 'security'); +$meta['_basic'] = ['fieldset']; +$meta['title'] = ['string']; +$meta['start'] = ['string', '_caution' => 'warning', '_pattern' => '!^[^:;/]+$!']; // don't accept namespaces +$meta['lang'] = ['dirchoice', '_dir' => DOKU_INC . 'inc/lang/']; +$meta['template'] = ['dirchoice', '_dir' => DOKU_INC . 'lib/tpl/', '_pattern' => '/^[\w-]+$/']; +$meta['tagline'] = ['string']; +$meta['sidebar'] = ['string']; +$meta['license'] = ['license']; +$meta['savedir'] = ['savedir', '_caution' => 'danger']; +$meta['basedir'] = ['string', '_caution' => 'danger']; +$meta['baseurl'] = ['string', '_caution' => 'danger']; +$meta['cookiedir'] = ['string', '_caution' => 'danger']; +$meta['dmode'] = ['numeric', '_pattern' => '/0[0-7]{3,4}/']; // only accept octal representation +$meta['fmode'] = ['numeric', '_pattern' => '/0[0-7]{3,4}/']; // only accept octal representation +$meta['allowdebug'] = ['onoff', '_caution' => 'security']; -$meta['_display'] = array('fieldset'); -$meta['recent'] = array('numeric'); -$meta['recent_days'] = array('numeric'); -$meta['breadcrumbs'] = array('numeric','_min' => 0); -$meta['youarehere'] = array('onoff'); -$meta['fullpath'] = array('onoff','_caution' => 'security'); -$meta['typography'] = array('multichoice','_choices' => array(0,1,2)); -$meta['dformat'] = array('string'); -$meta['signature'] = array('string'); -$meta['showuseras'] = array( - 'multichoice', - '_choices' => array('loginname', 'username', 'username_link', 'email', 'email_link') -); -$meta['toptoclevel'] = array('multichoice','_choices' => array(1,2,3,4,5)); // 5 toc levels -$meta['tocminheads'] = array('multichoice','_choices' => array(0,1,2,3,4,5,10,15,20)); -$meta['maxtoclevel'] = array('multichoice','_choices' => array(0,1,2,3,4,5)); -$meta['maxseclevel'] = array('multichoice','_choices' => array(0,1,2,3,4,5)); // 0 for no sec edit buttons -$meta['camelcase'] = array('onoff','_caution' => 'warning'); -$meta['deaccent'] = array('multichoice','_choices' => array(0,1,2),'_caution' => 'warning'); -$meta['useheading'] = array('multichoice','_choices' => array(0,'navigation','content',1)); -$meta['sneaky_index'] = array('onoff'); -$meta['hidepages'] = array('regex'); +$meta['_display'] = ['fieldset']; +$meta['recent'] = ['numeric']; +$meta['recent_days'] = ['numeric']; +$meta['breadcrumbs'] = ['numeric', '_min' => 0]; +$meta['youarehere'] = ['onoff']; +$meta['fullpath'] = ['onoff', '_caution' => 'security']; +$meta['typography'] = ['multichoice', '_choices' => [0, 1, 2]]; +$meta['dformat'] = ['string']; +$meta['signature'] = ['string']; +$meta['showuseras'] = ['multichoice', '_choices' => ['loginname', 'username', 'username_link', 'email', 'email_link']]; +$meta['toptoclevel'] = ['multichoice', '_choices' => [1, 2, 3, 4, 5]]; // 5 toc levels +$meta['tocminheads'] = ['multichoice', '_choices' => [0, 1, 2, 3, 4, 5, 10, 15, 20]]; +$meta['maxtoclevel'] = ['multichoice', '_choices' => [0, 1, 2, 3, 4, 5]]; +$meta['maxseclevel'] = ['multichoice', '_choices' => [0, 1, 2, 3, 4, 5]]; // 0 for no sec edit buttons +$meta['camelcase'] = ['onoff', '_caution' => 'warning']; +$meta['deaccent'] = ['multichoice', '_choices' => [0, 1, 2], '_caution' => 'warning']; +$meta['useheading'] = ['multichoice', '_choices' => [0, 'navigation', 'content', 1]]; +$meta['sneaky_index'] = ['onoff']; +$meta['hidepages'] = ['regex']; -$meta['_authentication'] = array('fieldset'); -$meta['useacl'] = array('onoff','_caution' => 'danger'); -$meta['autopasswd'] = array('onoff'); -$meta['authtype'] = array('authtype','_caution' => 'danger'); -$meta['passcrypt'] = array('multichoice','_choices' => array( - 'smd5','md5','apr1','sha1','ssha','lsmd5','crypt','mysql','my411','kmd5','pmd5','hmd5', - 'mediawiki','bcrypt','djangomd5','djangosha1','djangopbkdf2_sha1','djangopbkdf2_sha256', - 'sha512','argon2i','argon2id' -)); -$meta['defaultgroup']= array('string'); -$meta['superuser'] = array('string','_caution' => 'danger'); -$meta['manager'] = array('string'); -$meta['profileconfirm'] = array('onoff'); -$meta['rememberme'] = array('onoff'); -$meta['disableactions'] = array( - 'disableactions', - '_choices' => array( +$meta['_authentication'] = ['fieldset']; +$meta['useacl'] = ['onoff', '_caution' => 'danger']; +$meta['autopasswd'] = ['onoff']; +$meta['authtype'] = ['authtype', '_caution' => 'danger']; +$meta['passcrypt'] = ['multichoice', + '_choices' => [ + 'smd5', + 'md5', + 'apr1', + 'sha1', + 'ssha', + 'lsmd5', + 'crypt', + 'mysql', + 'my411', + 'kmd5', + 'pmd5', + 'hmd5', + 'mediawiki', + 'bcrypt', + 'djangomd5', + 'djangosha1', + 'djangopbkdf2_sha1', + 'djangopbkdf2_sha256', + 'sha512', + 'argon2i', + 'argon2id'] +]; +$meta['defaultgroup'] = ['string']; +$meta['superuser'] = ['string', '_caution' => 'danger']; +$meta['manager'] = ['string']; +$meta['profileconfirm'] = ['onoff']; +$meta['rememberme'] = ['onoff']; +$meta['disableactions'] = ['disableactions', + '_choices' => [ 'backlink', 'index', 'recent', @@ -150,105 +166,98 @@ $meta['disableactions'] = array( 'wikicode', 'check', 'rss' - ), - '_combine' => array( - 'subscription' => array('subscribe', 'unsubscribe'), - 'wikicode' => array('source', 'export_raw') - ) -); -$meta['auth_security_timeout'] = array('numeric'); -$meta['securecookie'] = array('onoff'); -$meta['samesitecookie'] = array('multichoice','_choices' => array('','Lax','Strict','None')); -$meta['remote'] = array('onoff','_caution' => 'security'); -$meta['remoteuser'] = array('string'); -$meta['remotecors'] = array('string', '_caution' => 'security'); + ], + '_combine' => [ + 'subscription' => ['subscribe', 'unsubscribe'], + 'wikicode' => ['source', 'export_raw'] + ] +]; +$meta['auth_security_timeout'] = ['numeric']; +$meta['securecookie'] = ['onoff']; +$meta['samesitecookie'] = ['multichoice', '_choices' => ['', 'Lax', 'Strict', 'None']]; +$meta['remote'] = ['onoff', '_caution' => 'security']; +$meta['remoteuser'] = ['string']; +$meta['remotecors'] = ['string', '_caution' => 'security']; -$meta['_anti_spam'] = array('fieldset'); -$meta['usewordblock']= array('onoff'); -$meta['relnofollow'] = array('onoff'); -$meta['indexdelay'] = array('numeric'); -$meta['mailguard'] = array('multichoice','_choices' => array('visible','hex','none')); -$meta['iexssprotect']= array('onoff','_caution' => 'security'); +$meta['_anti_spam'] = ['fieldset']; +$meta['usewordblock'] = ['onoff']; +$meta['relnofollow'] = ['onoff']; +$meta['indexdelay'] = ['numeric']; +$meta['mailguard'] = ['multichoice', '_choices' => ['visible', 'hex', 'none']]; +$meta['iexssprotect'] = ['onoff', '_caution' => 'security']; -$meta['_editing'] = array('fieldset'); -$meta['usedraft'] = array('onoff'); -$meta['locktime'] = array('numeric'); -$meta['cachetime'] = array('numeric'); +$meta['_editing'] = ['fieldset']; +$meta['usedraft'] = ['onoff']; +$meta['locktime'] = ['numeric']; +$meta['cachetime'] = ['numeric']; -$meta['_links'] = array('fieldset'); -$meta['target____wiki'] = array('string'); -$meta['target____interwiki'] = array('string'); -$meta['target____extern'] = array('string'); -$meta['target____media'] = array('string'); -$meta['target____windows'] = array('string'); +$meta['_links'] = ['fieldset']; +$meta['target____wiki'] = ['string']; +$meta['target____interwiki'] = ['string']; +$meta['target____extern'] = ['string']; +$meta['target____media'] = ['string']; +$meta['target____windows'] = ['string']; -$meta['_media'] = array('fieldset'); -$meta['mediarevisions'] = array('onoff'); -$meta['gdlib'] = array('multichoice','_choices' => array(0,1,2)); -$meta['im_convert'] = array('im_convert'); -$meta['jpg_quality'] = array('numeric','_pattern' => '/^100$|^[1-9]?[0-9]$/'); //(0-100) -$meta['fetchsize'] = array('numeric'); -$meta['refcheck'] = array('onoff'); +$meta['_media'] = ['fieldset']; +$meta['mediarevisions'] = ['onoff']; +$meta['gdlib'] = ['multichoice', '_choices' => [0, 1, 2]]; +$meta['im_convert'] = ['im_convert']; +$meta['jpg_quality'] = ['numeric', '_pattern' => '/^100$|^[1-9]?\d$/']; //(0-100) +$meta['fetchsize'] = ['numeric']; +$meta['refcheck'] = ['onoff']; -$meta['_notifications'] = array('fieldset'); -$meta['subscribers'] = array('onoff'); -$meta['subscribe_time'] = array('numeric'); -$meta['notify'] = array('email', '_multiple' => true); -$meta['registernotify'] = array('email', '_multiple' => true); -$meta['mailfrom'] = array('email', '_placeholders' => true); -$meta['mailreturnpath'] = array('email', '_placeholders' => true); -$meta['mailprefix'] = array('string'); -$meta['htmlmail'] = array('onoff'); -$meta['dontlog'] = array( - 'disableactions', - '_choices' => array( - 'error', - 'debug', - 'deprecated', - ), -); +$meta['_notifications'] = ['fieldset']; +$meta['subscribers'] = ['onoff']; +$meta['subscribe_time'] = ['numeric']; +$meta['notify'] = ['email', '_multiple' => true]; +$meta['registernotify'] = ['email', '_multiple' => true]; +$meta['mailfrom'] = ['email', '_placeholders' => true]; +$meta['mailreturnpath'] = ['email', '_placeholders' => true]; +$meta['mailprefix'] = ['string']; +$meta['htmlmail'] = ['onoff']; +$meta['dontlog'] = ['disableactions', '_choices' => ['error', 'debug', 'deprecated']]; -$meta['_syndication'] = array('fieldset'); -$meta['sitemap'] = array('numeric'); -$meta['rss_type'] = array('multichoice','_choices' => array('rss','rss1','rss2','atom','atom1')); -$meta['rss_linkto'] = array('multichoice','_choices' => array('diff','page','rev','current')); -$meta['rss_content'] = array('multichoice','_choices' => array('abstract','diff','htmldiff','html')); -$meta['rss_media'] = array('multichoice','_choices' => array('both','pages','media')); -$meta['rss_update'] = array('numeric'); -$meta['rss_show_summary'] = array('onoff'); -$meta['rss_show_deleted'] = array('onoff'); +$meta['_syndication'] = ['fieldset']; +$meta['sitemap'] = ['numeric']; +$meta['rss_type'] = ['multichoice', '_choices' => ['rss', 'rss1', 'rss2', 'atom', 'atom1']]; +$meta['rss_linkto'] = ['multichoice', '_choices' => ['diff', 'page', 'rev', 'current']]; +$meta['rss_content'] = ['multichoice', '_choices' => ['abstract', 'diff', 'htmldiff', 'html']]; +$meta['rss_media'] = ['multichoice', '_choices' => ['both', 'pages', 'media']]; +$meta['rss_update'] = ['numeric']; +$meta['rss_show_summary'] = ['onoff']; +$meta['rss_show_deleted'] = ['onoff']; -$meta['_advanced'] = array('fieldset'); -$meta['updatecheck'] = array('onoff'); -$meta['userewrite'] = array('multichoice','_choices' => array(0,1,2),'_caution' => 'danger'); -$meta['useslash'] = array('onoff'); -$meta['sepchar'] = array('sepchar','_caution' => 'warning'); -$meta['canonical'] = array('onoff'); -$meta['fnencode'] = array('multichoice','_choices' => array('url','safe','utf-8'),'_caution' => 'warning'); -$meta['autoplural'] = array('onoff'); -$meta['compress'] = array('onoff'); -$meta['cssdatauri'] = array('numeric','_pattern' => '/^\d+$/'); -$meta['gzip_output'] = array('onoff'); -$meta['send404'] = array('onoff'); -$meta['compression'] = array('compression','_caution' => 'warning'); -$meta['broken_iua'] = array('onoff'); -$meta['xsendfile'] = array('multichoice','_choices' => array(0,1,2,3),'_caution' => 'warning'); -$meta['renderer_xhtml'] = array('renderer','_format' => 'xhtml','_choices' => array('xhtml'),'_caution' => 'warning'); -$meta['readdircache'] = array('numeric'); -$meta['search_nslimit'] = array('numeric', '_min' => 0); -$meta['search_fragment'] = array('multichoice','_choices' => array('exact', 'starts_with', 'ends_with', 'contains'),); -$meta['trustedproxy'] = array('regex'); +$meta['_advanced'] = ['fieldset']; +$meta['updatecheck'] = ['onoff']; +$meta['userewrite'] = ['multichoice', '_choices' => [0, 1, 2], '_caution' => 'danger']; +$meta['useslash'] = ['onoff']; +$meta['sepchar'] = ['sepchar', '_caution' => 'warning']; +$meta['canonical'] = ['onoff']; +$meta['fnencode'] = ['multichoice', '_choices' => ['url', 'safe', 'utf-8'], '_caution' => 'warning']; +$meta['autoplural'] = ['onoff']; +$meta['compress'] = ['onoff']; +$meta['cssdatauri'] = ['numeric', '_pattern' => '/^\d+$/']; +$meta['gzip_output'] = ['onoff']; +$meta['send404'] = ['onoff']; +$meta['compression'] = ['compression', '_caution' => 'warning']; +$meta['broken_iua'] = ['onoff']; +$meta['xsendfile'] = ['multichoice', '_choices' => [0, 1, 2, 3], '_caution' => 'warning']; +$meta['renderer_xhtml'] = ['renderer', '_format' => 'xhtml', '_choices' => ['xhtml'], '_caution' => 'warning']; +$meta['readdircache'] = ['numeric']; +$meta['search_nslimit'] = ['numeric', '_min' => 0]; +$meta['search_fragment'] = ['multichoice', '_choices' => ['exact', 'starts_with', 'ends_with', 'contains']]; +$meta['trustedproxy'] = ['regex']; $meta['_feature_flags'] = ['fieldset']; -$meta['defer_js'] = ['onoff']; -$meta['hidewarnings'] = ['onoff']; +$meta['defer_js'] = ['onoff']; +$meta['hidewarnings'] = ['onoff']; -$meta['_network'] = array('fieldset'); -$meta['dnslookups'] = array('onoff'); -$meta['jquerycdn'] = array('multichoice', '_choices' => array(0,'jquery', 'cdnjs')); -$meta['proxy____host'] = array('string','_pattern' => '#^(|[a-z0-9\-\.+]+)$#i'); -$meta['proxy____port'] = array('numericopt'); -$meta['proxy____user'] = array('string'); -$meta['proxy____pass'] = array('password','_code' => 'base64'); -$meta['proxy____ssl'] = array('onoff'); -$meta['proxy____except'] = array('string'); +$meta['_network'] = ['fieldset']; +$meta['dnslookups'] = ['onoff']; +$meta['jquerycdn'] = ['multichoice', '_choices' => [0, 'jquery', 'cdnjs']]; +$meta['proxy____host'] = ['string', '_pattern' => '#^(|[a-z0-9\-\.+]+)$#i']; +$meta['proxy____port'] = ['numericopt']; +$meta['proxy____user'] = ['string']; +$meta['proxy____pass'] = ['password', '_code' => 'base64']; +$meta['proxy____ssl'] = ['onoff']; +$meta['proxy____except'] = ['string']; |