You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

86 lines
3.7 KiB

<?php
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
function prefs_smarty_list()
{
return [
'smarty_notice_reporting' => [
'name' => tra('Include Smarty notices in the PHP error report'),
'hint' => tra('In most cases, Smarty notices can be safely ignored. However, they may be useful in the development process when unexpected issues occur.'),
'type' => 'flag',
'description' => tr('Tiki will display <a href="https://www.smarty.net">Smarty</a> notices with the PHP error messages.'),
'default' => 'n',
],
'smarty_security' => [
'name' => tra('Smarty security'),
'description' => tra('Do not allow PHP code in Smarty templates.'),
'warning' => tra('You should leave this on unless you know what you are doing.'),
'type' => 'flag',
'perspective' => false,
'default' => 'y',
],
'smarty_security_modifiers' => [
'name' => tr('Extra Smarty modifiers'),
'description' => tr('Make additional PHP functions available as Smarty modifiers. This may be needed for custom templates.'),
'warning' => tr('There may be security implications. Make sure you know what you are doing.'),
'type' => 'text',
'separator' => ',',
'perspective' => false,
'default' => '',
'dependencies' => [
'smarty_security',
],
],
'smarty_security_functions' => [
'name' => tr('Extra Smarty functions'),
'description' => tr('Make additional PHP functions available as Smarty functions. This may be needed for custom templates.'),
'warning' => tr('There may be security implications. Make sure you know what you are doing.'),
'type' => 'text',
'separator' => ',',
'perspective' => false,
'default' => '',
'dependencies' => [
'smarty_security',
],
],
'smarty_security_dirs' => [
'name' => tr('Extra Smarty directories'),
'description' => tr('Make additional directories available as Smarty directories. This may be needed for custom icons (clear temp/cache after changing).'),
'warning' => tr('There may be security implications. Make sure you know what you are doing.'),
'type' => 'text',
'separator' => ',',
'perspective' => false,
'default' => '',
'dependencies' => [
'smarty_security',
],
],
'smarty_compilation' => [
'name' => tra('Smarty compilation'),
'description' => tra('Indicates when the template cache should be refreshed.'),
'type' => 'list',
'options' => [
'modified' => tra('Modified'),
'never' => tra('Never check (performance)'),
'always' => tra('Always (development, slow)'),
],
'default' => 'modified',
],
'smarty_cache_perms' => [
'name' => tra('Smarty cache permissions'),
'description' => tra('Permissions that enable Smarty to write to the templates_c directory.'),
'type' => 'list',
'options' => [
0644 => tra('User writable (0644)'),
0664 => tra('User & group writable (0664)'),
],
'default' => 0644,
'keywords' => 'file perms templates',
],
];
}