1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8function prefs_profile_list() 9{ 10 return [ 11 'profile_sources' => [ 12 'name' => tra('Repository URLs'), 13 'description' => tra('List of URLs for the profile repositories that will be used'), 14 'type' => 'textarea', 15 'size' => 5, 16 'hint' => tra('Enter multiple repository URLs, one per line.'), 17 'default' => 'http://profiles.tiki.org/profiles', 18 ], 19 'profile_channels' => [ 20 'name' => tra('Data channels'), 21 'description' => tra('Data channels are templates that can be applied from a post request. They can be used to automate work on more complex installations.'), 22 'type' => 'textarea', 23 'size' => 5, 24 'hint' => tra('Data channels create a named pipe to run profiles from user space. One channel per line. Each line is comma delimited and contains __channel name, domain, profile, allowed groups, (optional) $profilerequest:input$ matches to groups__.'), 25 'help' => 'http://profiles.tiki.org/Data+Channels', 26 'warning' => tra('There are security considerations related to using data channels. Make sure the profile page is controlled by administrators only.'), 27 'default' => '', 28 ], 29 'profile_unapproved' => [ 30 'name' => tra('Developer mode'), 31 'description' => tra('For profiles under an approval workflow, always use the latest version, even if not approved.'), 32 'type' => 'flag', 33 'warning' => tra('Make sure you review the profiles you install.'), 34 'default' => 'n', 35 ], 36 'profile_autoapprove_wikiplugins' => [ 37 'name' => tra('Automatically approve wiki-plugins on pages installed by profiles'), 38 'description' => tra('Some wiki-plugins require admin approval before they are executable. If turned on, then all wiki-plugins that are on wiki pages created via profiles are automatically approved.'), 39 'warning' => tra('Make sure your profiles are not executable or editable by untrusted users.'), 40 'type' => 'flag', 41 'default' => 'n', 42 'tags' => ['advanced'], 43 ], 44 ]; 45} 46